sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    Mac User? | Join the Rayscaper Beta for Mac Learn More

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

    Scheduled Pinned Locked Moved Plugins
    108 Posts 39 Posters 686.2k Views 39 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.
    • A
      Anton_S
      last edited by

      Hi perecollo2000. Try the new version. I think it should be fixed now.

      1 Reply Last reply
      Reply Quote 0
      • P
        perroloco2000
        last edited by

        hi Anton .... YOU SOLVED IT!!!
        100% working, thank you very much for your work, and quick reply
        your plugins really help my work on the laptop screen
        great autor, thanks

        1 Reply Last reply
        Reply Quote 0
        • P
          pnickles
          last edited by

          Forgive me but I'm a newb who can barely work his way through/around Extensions.

          I'm unable to get the MSphysics to load/run. It is registered under Plugins but I receive the following message when I open Sketchup2016. I've tried copying/pasting the "main.rb" file into every imaginable Plugin folder but it still fails to see/find the file.?

          (I installed the AMS Library v3.2.2 AFTER I installed the MSphysics extension but the order of installation shouldn't matter, correct?)

          I'm running Win8 via Parallels, SU2016.


          Error message


          Folder showing MAIN.RB file in MSPhysics folder

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

            Pnickles, you got it into the correct plugins folder, but placed the content improperly.
            I suggest deleteding whatever you placed in the plugins folder manually (including MSPhysics which is placed improperly based on your screenshot) and starting over with the following instructions. Download ams_Lib_3.2.2.zip, extract it, and place ams_Lib folder and ams_Lib.rb file into the plugins folder. Same applies to MSPhysics_0.5.0.zip. It should look something like this:


            plugins_location.png

            1 Reply Last reply
            Reply Quote 0
            • P
              pnickles
              last edited by

              Different error messages now. See attached. Perhaps it's because I'm running Win8 via Parallels?


              Error_1.png


              Error_2.png


              3.png


              4.png

              1 Reply Last reply
              Reply Quote 0
              • Bryan KB
                Bryan K
                last edited by

                Are there how to use instructions somewhere?

                See my portfolio at https://delphiscousin.blogspot.com/

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

                  Bryan, in case you're wondering if it's a plugin, well it's not. AMS library is more of a dependency for a few of my other plugins.

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

                    How to get the version number?

                    AMS.ver ?

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

                      Use AMS::Lib::VERSION It returns a string like "3.3.0".

                      1 Reply Last reply
                      Reply Quote 0
                      • Bryan KB
                        Bryan K
                        last edited by

                        @anton_s said:

                        Bryan, in case you're wondering if it's a plugin, well it's not. AMS library is more of a dependency for a few of my other plugins.

                        Thanks Anton, but what I'm looking for is how to use it. It's installed without a problem but I need some kind of instructions or tutorial on how to use the controls.

                        Thanks.

                        See my portfolio at https://delphiscousin.blogspot.com/

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

                          The first post contains a link to the library's documentation. I not particularly sure if that's what you desire though.

                          1 Reply Last reply
                          Reply Quote 0
                          • Bryan KB
                            Bryan K
                            last edited by

                            Anton, thanks. I found some great video tutorials. https://www.youtube.com/user/samketner/videos?sort=dd%26amp;view=0%26amp;shelf_id=0

                            My new problem is that the UI menu is not displaying correctly nor or the contents.. There are no tabs and the menu window is not resizable so I cannot access the contents at the bottom of the screen.

                            Here is a screen shot.

                            Any ideas?


                            MS Physics UI.JPG

                            See my portfolio at https://delphiscousin.blogspot.com/

                            1 Reply Last reply
                            Reply Quote 0
                            • L
                              ladyquestio
                              last edited by

                              I keep getting this error. What is happening?
                              http://tanyaloser.tripod.com/loaderror10.JPG

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

                                Hmm. I'm not getting any errors in my SU8. Are you using the latest versions of both plugins? If not, try completely removing both and installing once again.

                                Edit: Actually I'm getting a similar error when I attempt to start MSPhysics simulation in SU8. I haven't been able to determine the cause, so try sticking to SU2013+.

                                Edit: I will ensure the compatibility with SU version prior to 2013 at some point.

                                1 Reply Last reply
                                Reply Quote 0
                                • L
                                  ladyquestio
                                  last edited by

                                  Anton:
                                  I removed all the files as per instruction. Defragged the HD. then reloaded SU8 . I have a video of what happens.
                                  Watch and see. then Tell me what I did wrong.
                                  https://youtu.be/nUL87J2N79A

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

                                    Sorry, I forgot to test it on Windows XP. It should be fixed now. Upgrade to AMS Library, version 3.5.2.

                                    1 Reply Last reply
                                    Reply Quote 0
                                    • G
                                      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
                                        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
                                          Headcase6969
                                          last edited by

                                          Mac=NOPE!

                                          1 Reply Last reply
                                          Reply Quote 0
                                          • A
                                            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

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better đź’—

                                            Register Login
                                            • 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