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!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

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

    Scheduled Pinned Locked Moved Plugins
    107 Posts 38 Posters 621.3k 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.
    • P Offline
      perroloco2000
      last edited by

      hi again Anton
      i have new portatil (with fresh windows 10 install)
      i´m not able to install AMS library (not 3.2.0. not 3.1.3.). trying with the .rbz by preferencs or extracting .zip in plugins folder same result: crash SU2016 or get the same error as herojack posted
      any help will be welcome in the way to use your nice plugins
      thanks

      Error al cargar archivo C:/Users/XXX/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ams_Lib/main.rb
      Error: #<RuntimeError: can't modify frozen String>
      C:/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:in require' C:/Program Files/SketchUp/SketchUp 2016/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:in require'
      C:/Users/XXX/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ams_Lib/main.rb:205:in <top (required)>' C:/Program Files/SketchUp/SketchUp 2016/Tools/extensions.rb:197:in require'
      C:/Program Files/SketchUp/SketchUp 2016/Tools/extensions.rb:197:in load' C:/Users/XXX/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ams_Lib.rb:47:in register_extension'
      C:/Users/XXX/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ams_Lib.rb:47:in <module:Lib>' C:/Users/XXX/AppData/Roaming/SketchUp/SketchUp 2016/SketchUp/Plugins/ams_Lib.rb:27:in <top (required)>'

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

        hello Anton_S:
        I have a question,if I want to set a dialog,and the WedDialogs are on top one more time,but
        sketchup is activated, in other words,like (dlg.show_modal + AMS::Sketchup.activate),what should I do?

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

          @Atek to install the plugin, place ams_lib folder and the ams_lib.rb into the plugins folder.
          The plugins folder is located in the following locations:

          • For SU8 and below the plugins folder is located in
            C:\Program Files (x86)\Google\Google SketchUp [n]\
          • For SU2013 the plugins folder is located in
            C:\Program Files (x86)\SketchUp\SketchUp 2013\
          • For SU2014+ the plugins folder is located in
            C:\Users[User Name]\AppData\Roaming\SketchUp\SketchUp 20XY\SketchUp
            I will post these instructions into the main post.

          @Perojack, @Perroloco2000 I will look into the error. Thanks for reporting.

          @Ying2014 If I understood you correctly you want to activate the dialog. For that there is an existing function, WebDialog.#bring_to_front. Can you elaborate a bit more if I didn't understand your question?

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

            @Anton_s,I want WebDialog to have been in the front until end of a program ,because I want to make the WebDialog as a mask,I can do something to model which I wan't people to see the process. WebDialog.#bring_to_front can't always in the front。

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

              Here is the code Ying:

              title = "My Dialog"
              dlg = UI;;WebDialog.new(title)
              dlg.show
              hwnd = AMS;;Sketchup.find_window_by_caption(title)
              AMS;;Window.set_pos(hwnd, -1, 0,0,0,0, 0x0023) # The -1 here does the trick
              

              Though upgrade to 3.2.1 first as there was a small bug in that function.


              @Perojack, @Perroloco2000 I think the error is fixed now. Try the new version.

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

                @Anton_S,thank you very much!It is helpful.

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

                  thanks for answer Anton
                  AMS Library 3.2.1. is working, no error
                  But I still have my past problem with AMS Window Settings: everytime i hide menu bar crash SU.
                  The others functions of the plugin are working but impossible hide menu bar without crash.
                  please help to optimize my screen

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

                    @Perroloco2000 give me a list of plugins your using, a list of shortcuts (Preferences->Shortcuts->Export...), sketchup version, sketchup localization (en, fr, or whatever) and windows version so that I could attempt to reproduce the crash and pin it down on my own machine.

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

                      SketchUp Make 2016 16.1.1449 64-bits (spanish). Windows 10 Home 1511 (10586.164)
                      I have a fresh install of windows 10 (last version) and SketchUp (last version). I still haven´t other plugins, and didn´t modify default shortcuts.
                      I installed AMS Library 3.2.1. (all works)
                      I installed AMS Window Settings 4.2.0. all functions works but when I hide menu bar the crash come. Thanks

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

                        Ok I am able to reproduce it with Spanish localization. I even get frozen strings errors, which I have no idea what's causing them and how to prevent them. I will look into into it and do my best to fix it.

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          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 Offline
                            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 Offline
                              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 Offline
                                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 Offline
                                  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 Offline
                                    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 Offline
                                      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 Offline
                                        wikii
                                        last edited by

                                        How to get the version number?

                                        AMS.ver ?

                                        1 Reply Last reply Reply Quote 0
                                        • A Offline
                                          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 Offline
                                            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
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 5
                                            • 6
                                            • 3 / 6
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement