• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

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

Scheduled Pinned Locked Moved Plugins
107 Posts 38 Posters 614.4k Views
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
    Pherim
    last edited by 27 Nov 2015, 07:04

    I'm afraid it still happens... I was just able to reproduce it two times, using only standard tools.

    1 Reply Last reply Reply Quote 0
    • A Offline
      Anton_S
      last edited by 27 Nov 2015, 07:14

      Good! Looks like you know the exact steps to reproduce it. List 'em here, please.

      1 Reply Last reply Reply Quote 0
      • P Offline
        Pherim
        last edited by 27 Nov 2015, 07:48

        Well there is not much more to it than I already wrote. I just use various tools, make groups and components and edit them, until the tools begin to stay highlighted in the toolbar - this happens all the time. Then, at some point, it eventually crashes when I right-click, possibly only or at least more often on groups or components. I tried to record a video of the process, but so far, I have not been able to produce a crash while recording. Maybe they are not happening as often now, but they definitely still do.

        1 Reply Last reply Reply Quote 0
        • A Offline
          Anton_S
          last edited by 29 Nov 2015, 18:13

          Hello everyone, AMS Library version 3.1.1 has been released. It is important to upgrade to a new version because it addresses a bug fix, which caused spike in performance, which lead to toolbar icons staying highlighted and eventually to a crash. Huge thanks to Pherim for reporting and verifying it. See first post for download links.

          1 Reply Last reply Reply Quote 0
          • P Offline
            Pherim
            last edited by 30 Nov 2015, 11:07

            Thanks again for fixing it!

            1 Reply Last reply Reply Quote 0
            • J Offline
              junaramaro
              last edited by 3 Dec 2015, 07:55

              i think it no longer has a support for xp...it shows some error 😐 ...sorry i forgot to post some pics...but it really does.i hope some xp users show the error..but i'll post it soon...or maybe its a bug...please dont stop the support for xp unlike microsoft...this is a really great plugin with lots of possibilities.... 😉

              1 Reply Last reply Reply Quote 0
              • A Offline
                Anton_S
                last edited by 3 Dec 2015, 17:53

                Opps I forgot to test it on Win XP. Ill check it out.

                1 Reply Last reply Reply Quote 0
                • A Offline
                  Anton_S
                  last edited by 5 Dec 2015, 00:54

                  Hello, junaramaro, I made it compatible with Windows XP. Thanks for reporting.

                  1 Reply Last reply Reply Quote 0
                  • J Offline
                    junaramaro
                    last edited by 5 Dec 2015, 08:08

                    Thank you so much sir... 😄 ...i'm updating now. i really love being in this community of loving and thoughtful persons...
                    thank you again master ...may the force be with you... 😆

                    i really think you have to be a jedi to come up with this wonderful things...

                    1 Reply Last reply Reply Quote 0
                    • P Offline
                      perroloco2000
                      last edited by 12 Feb 2016, 00:28

                      Hello
                      Everytime I try to hide menu bar with AMS Window Settings crash my SU 2016. I´m using AMS Window Settings 4.2.0 and AMS Library 3.1.4
                      Please help, is really useful optimize my screen when I work on the laptop
                      Thanks for your greats plugins

                      1 Reply Last reply Reply Quote 0
                      • A Offline
                        Anton_S
                        last edited by 13 Feb 2016, 20:27

                        Can you downgrade to 3.1.3 and check if the crash still occurs? Here is the download link to 3.1.3: https://drive.google.com/open?id=0B3qg8f4WrNdHci1DLTZEbVpqdzQ

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          perroloco2000
                          last edited by 14 Feb 2016, 23:20

                          I had 3.1.3 before, actually I did upgrade to 3.1.4 trying to fix this
                          Thanks

                          1 Reply Last reply Reply Quote 0
                          • L Offline
                            lionk
                            last edited by 29 Feb 2016, 23:42

                            Hi Anton_S, is there an observer to detect whether the trays in sketchup2016 is automatically shown or hidden, and its width and position?

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              Anton_S
                              last edited by 1 Mar 2016, 09:11

                              Hello lionk,

                              There is no observer that triggers when dialogs/trays are shown or hidden. There is a way, however, to detect if SU2016 trays are visible.

                              Consider the following code snippet to get all visible trays:

                              
                              # Obtain visible trays
                              visible_trays = []
                              AMS;;Sketchup.get_visible_dialogs.each { |handle|
                                cname = AMS;;Window.get_class_name(handle)
                                visible_trays << handle if cname =~ /Afx;ControlBar|Afx;MiniFrame/
                              }
                              visible_trays
                              
                              

                              As well as, the following snippet to get all visible trays along with their information, such as title, width, height, and whether its docked or floating:

                              
                              # Get tray information.
                              # Afx;ControlBar resembles a docked tray
                              # Afx;MiniFrame resembles a floating tray
                              tray_data = {}
                              AMS;;Sketchup.get_visible_dialogs.each { |handle|
                                cname = AMS;;Window.get_class_name(handle)
                                next if cname !~ /Afx;ControlBar|Afx;MiniFrame/
                                rect = AMS;;Window.get_rect(handle)
                                tray_data[handle] = {
                                  ;caption => AMS;;Window.get_caption(handle),
                                  ;docked  => cname =~ /Afx;ControlBar/ ? true ; false, # docked or floating
                                  ;width   => rect[2] - rect[0],
                                  ;height  => rect[3] - rect[1]
                                }
                              }
                              tray_data
                              
                              

                              Anton

                              1 Reply Last reply Reply Quote 0
                              • L Offline
                                lionk
                                last edited by 2 Mar 2016, 02:28

                                Thank you!
                                I want to get the status of trays in auto-hide mode, and its size and position, so I can get the accurate width or height of the view. Because the trays will overlap part of the view.
                                trays auto-hide.gif

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  atek
                                  last edited by 9 Mar 2016, 08:21

                                  i have downloaded the zip file containing a folder and .rb file. How to install the plugin

                                  1 Reply Last reply Reply Quote 0
                                  • H Offline
                                    herojack
                                    last edited by 20 Mar 2016, 06:10

                                    载入文件 C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/ams_Lib/main.rb 时出错
                                    Error: #<RuntimeError: can't modify frozen String>
                                    D:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:in require' D:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/RubyStdLib/rubygems/core_ext/kernel_require.rb:45:in require'
                                    C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/ams_Lib/main.rb:205:in <top (required)>' D:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/extensions.rb:197:in require'
                                    D:/Program Files (x86)/SketchUp/SketchUp 2014/Tools/extensions.rb:197:in load' C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/ams_Lib.rb:47:in register_extension'
                                    C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/ams_Lib.rb:47:in <module:Lib>' C:/Users/Administrator/AppData/Roaming/SketchUp/SketchUp 2014/SketchUp/Plugins/ams_Lib.rb:27:in <top (required)>'

                                    1 Reply Last reply Reply Quote 0
                                    • P Offline
                                      perroloco2000
                                      last edited by 25 Mar 2016, 02:32

                                      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 28 Mar 2016, 15:21

                                        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 30 Mar 2016, 23:00

                                          @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
                                          • 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