sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] AMS Library 3.7.1b (29 May 2021)

    Scheduled Pinned Locked Moved Plugins
    107 Posts 38 Posters 615.5k Views 38 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • G Offline
      GalvinHRO
      last edited by

      with the AMS library i can get the name of the default tray but not the object itself or the child dialogs like "Materials" or "Entity Info" anybody knows if this feature exist or a workaround. If not is it possible to make one with the win32API?

      Thanks

      1 Reply Last reply Reply Quote 0
      • A Offline
        Anton_S
        last edited by

        Galvin,

        The Tray window structure in SU2018 is as follows:
        Tray Window Structure.png
        Provided that you have the handle of the tray, you can then obtain the first two levels of child windows, and then iterate through all windows of that child window to get all the dialogs.

        With AMS Library, you can use the following function to get all trays:

        
        trays = AMS;;Sketchup.get_active_dialogs.find_all { |handle|
          AMS;;Window.get_class_name(handle) =~ /Afx;MiniFrame/i
        }
        
        # => [133134]
        
        

        Then once you have the trays, you can get the first two levels of child windows:

        
        trays.each { |tray|
          c1 = AMS;;Window.get_related(tray, 5) # GW_CHILD
          next unless c1
          c2 = AMS;;Window.get_related(c1, 5) # GW_CHILD
          next unless c2
          dialogs = AMS;;Window.get_child_windows(c2, false, false)
          panes = dialogs.find_all { |dialog|
            AMS;;Window.get_class_name(dialog) =~ /CPanelHeader/i
          }
          panes.each { |pane|
            # First child window contains pane caption
            c3 = AMS;;Window.get_related(pane, 5) # GW_CHILD
            next unless c3
            puts AMS;;Window.get_caption(c3)
          }
        }
        
        # => Layers
        # => Shadows
        # => Fog
        # => Materials
        # => Soften Edges
        # => Styles
        # => Entity Info
        
        

        Note that this will not work with sketchup versions prior to 14.

        Anton

        1 Reply Last reply Reply Quote 0
        • H Offline
          Headcase6969
          last edited by

          Mac=NOPE!

          1 Reply Last reply Reply Quote 0
          • A Offline
            April Zylith
            last edited by

            MSPhysics_v1.0.3 does not work on SU 2019.

            What should I do?
            System:
            OS: Windows 10 Pro 64 bit.
            App: Sketchup Pro 2019 64 bit.


            When open SU 2019, Showing These errors.


            When open SU 2019, Showing These errors.

            1 Reply Last reply Reply Quote 0
            • Dave RD Offline
              Dave R
              last edited by

              @april zylith said:

              MSPhysics_v1.0.3 does not work on SU 2019.

              What should I do?

              You're right. It doesn't work. What can you do? Be patient. The author has been working on an update and will release it when it is ready.

              Etaoin Shrdlu

              %

              (THERE'S NO PLACE LIKE)

              G28 X0.0 Y0.0 Z0.0

              M30

              %

              1 Reply Last reply Reply Quote 0
              • Y Offline
                young77
                last edited by

                Hi...
                I just want to make sure is this plugin doesnt work for sketchup 2021 ?
                is there any possible way to make this enable to run in skp 2021 ?

                thanks,
                Hp

                1 Reply Last reply Reply Quote 0
                • P Offline
                  pipinek
                  last edited by

                  @young77 said:

                  Hi...
                  I just want to make sure is this plugin doesnt work for sketchup 2021 ?
                  is there any possible way to make this enable to run in skp 2021 ?

                  thanks,
                  Hp

                  Splendid plugin,

                  any updates for SSU 2021. Even paid?

                  Thank you in advance if any

                  1 Reply Last reply Reply Quote 0
                  • Q Offline
                    qifu123
                    last edited by

                    I need some help, AMS Library 3.6.0h In sketchup 2021 error

                    载入文件 C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib/main.rb 时出错
                    Error: #<IOError: The required, staged c extension file, "C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib/libraries/stage/win64/2.7/ams_lib.so", is missing!>
                    C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib/extension_manager.rb:204:in block in require_all' C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib/extension_manager.rb:201:in each'
                    C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib/extension_manager.rb:201:in require_all' C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib/main.rb:148:in <top (required)>'
                    C:/Program Files/SketchUp/SketchUp 2021/Tools/extensions.rb:197:in require' C:/Program Files/SketchUp/SketchUp 2021/Tools/extensions.rb:197:in load'
                    C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib.rb:32:in register_extension' C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib.rb:32:in module:Lib'
                    C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib.rb:7:in <module:AMS>' C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib.rb:5:in <top (required)>'

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      pibuz
                      last edited by

                      Same here. AMS lib is not compatible with SU2021, or so it seems..
                      It's a pity.. 😞

                      WEB (ita) - https://filipposcarso.wixsite.com/ordinentropico

                      1 Reply Last reply Reply Quote 0
                      • W Offline
                        wikii
                        last edited by

                        AMS lib is not compatible with SU2021.

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          Anton_S
                          last edited by

                          Updated for 2021

                          1 Reply Last reply Reply Quote 0
                          • F Offline
                            Francis sket master
                            last edited by

                            Dear Anton_S

                            After installation of MSPhysics & AMS Library by sketchUcation extensionstore v4.1.0 following is the error message keep pops up as I start sketchup pro 2021. Anticipating your answer with solutions. Thank you very much in advance.
                            ==================================================================================================***
                            C:/Users/bernard/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/MSPhysics/main_entry.rb file load error
                            Error: #<IOError: The required, staged c extension file, "C:/Users/bernard/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/MSPhysics/libraries/stage/win64/2.7/msp_lib.so", is missing!>
                            C:/Users/bernard/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib/extension_manager.rb:219:in block in require_all' C:/Users/bernard/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib/extension_manager.rb:216:in each'
                            C:/Users/bernard/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib/extension_manager.rb:216:in require_all' C:/Users/bernard/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/MSPhysics/main.rb:70:in <top (required)>'
                            C:/Program Files/SketchUp/SketchUp 2021/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require' C:/Program Files/SketchUp/SketchUp 2021/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require'
                            C:/Users/bernard/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/MSPhysics/main_entry.rb:15:in <top (required)>' C:/Program Files/SketchUp/SketchUp 2021/Tools/extensions.rb:197:in require'
                            C:/Program Files/SketchUp/SketchUp 2021/Tools/extensions.rb:197:in load' C:/Users/bernard/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/MSPhysics.rb:21:in register_extension'
                            C:/Users/bernard/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/MSPhysics.rb:21:in <module:MSPhysics>' C:/Users/bernard/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/MSPhysics.rb:5:in <top (required)>'

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              DeKlusser
                              last edited by

                              I am only getting a lot of errors like:
                              Error Loading File C:/Users/Simon/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/MSPhysics/main_entry.rb
                              Error: #<IOError: The required, staged c extension file, "C:/Users/Simon/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/MSPhysics/libraries/stage/win64/2.7/msp_lib.so", is missing!>
                              C:/Users/Simon/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib/extension_manager.rb:219:in block in require_all' C:/Users/Simon/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib/extension_manager.rb:216:in each'
                              C:/Users/Simon/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/ams_Lib/extension_manager.rb:216:in require_all' C:/Users/Simon/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/MSPhysics/main.rb:70:in <top (required)>'
                              C:/Program Files/SketchUp/SketchUp 2021/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require' C:/Program Files/SketchUp/SketchUp 2021/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:92:in require'
                              C:/Users/Simon/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/MSPhysics/main_entry.rb:15:in <top (required)>' C:/Program Files/SketchUp/SketchUp 2021/Tools/extensions.rb:197:in require'
                              C:/Program Files/SketchUp/SketchUp 2021/Tools/extensions.rb:197:in load' C:/Users/Simon/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/MSPhysics.rb:21:in register_extension'
                              C:/Users/Simon/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/MSPhysics.rb:21:in <module:MSPhysics>' C:/Users/Simon/AppData/Roaming/SketchUp/SketchUp 2021/SketchUp/Plugins/MSPhysics.rb:5:in <top (required)>'

                              1 Reply Last reply Reply Quote 0
                              • Dave RD Offline
                                Dave R
                                last edited by

                                @deklusser said:

                                I am only getting a lot of errors like:

                                Your load errors come from MSPhysics which does not work in SketchUp 2021. Anton has indicated he's working on an update but he hasn't released it yet.

                                Your profile says you are still using Sketchup 2018. Please update that information. Thanks.

                                Etaoin Shrdlu

                                %

                                (THERE'S NO PLACE LIKE)

                                G28 X0.0 Y0.0 Z0.0

                                M30

                                %

                                1 Reply Last reply Reply Quote 0
                                • B Offline
                                  Beltrama01
                                  last edited by

                                  I'm looking forward to an update to run MSPhysics in sketchup 2021

                                  1 Reply Last reply Reply Quote 0
                                  • X Offline
                                    xaliuyi Newcomers
                                    last edited by

                                    this plugin is very good:thumb:

                                    1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      rcatedra
                                      last edited by massimo

                                      Hello all. I'm using this plugins since 2015 and it's amazing. Now i'm learning an advanced programming features, and I noticed when I uses for instance the key ('a') function into an slider controller, I have the following error (ruby console): "Nomethoderror: undefined method 'key' for AMS::Keyboard:Module"

                                      I attach a picture to see my settings. Any clue about this? I've tried to uninstall and install the AMS library and msphysics several times. I have Sketchup 2016 version and the 3.7.1b AMS version
                                      Thanks on advance!

                                      error_ams.png

                                      1 Reply Last reply Reply Quote 0
                                      • W Offline
                                        wikii @Anton_S
                                        last edited by

                                        @Anton_S
                                        AMS lib is not compatible with SU2024.
                                        Will you update it?

                                        K 1 Reply Last reply Reply Quote 0
                                        • K Offline
                                          kuikeil @wikii
                                          last edited by

                                          @wikii My extension also uses this lib, and I urge the author to make it compatible with 2024.

                                          Rich O BrienR 1 Reply Last reply Reply Quote 0
                                          • Rich O BrienR Online
                                            Rich O Brien Moderator @kuikeil
                                            last edited by

                                            @kuikeil Anton is aware that some of his tools need updating.

                                            Download the free D'oh Book for SketchUp 📖

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 4 / 6
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement