• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[Plugin] UCS Manager

Scheduled Pinned Locked Moved Plugins
34 Posts 10 Posters 10.4k Views 10 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.
  • D Offline
    Didier Bur
    last edited by 15 Sept 2013, 12:51

    The attributes manager is an old thing by Google released in 2007. I have attached it here.
    But the 'list UCS' command of my plugin retrieves the attribute dictionaries of your UCS and just displays them in another way. I see that your UCS aren't registered the way they should be 😞
    Anyone on Mac encountered the same problem ?
    I've tested the plugin on a Mac and it works OK.
    Edson, can you send me a SKP with several registered UCS ?

    DB

    1 Reply Last reply Reply Quote 0
    • E Offline
      Edson
      last edited by 15 Sept 2013, 19:24

      here you have a skp file with 5 UCSs registered, from 01 to 05. if you still want me to run the attributes thing, let me know.

      you forgot to attach it.


      UCS_Manager_test.skp

      edson mahfuz, architect| porto alegre β€’ brasil
      http://www.mahfuz.arq.br

      1 Reply Last reply Reply Quote 0
      • D Offline
        Didier Bur
        last edited by 16 Sept 2013, 07:47

        @Edson:
        I'm puzzled: there's only one UCS registered in you file. I've added 2 new UCS named 02 and 03 with no problem. I send you the file back, please check if they can be listed once back on your Mac.
        P.S.: forget the attribute manager, the listing UCS command does the same job.
        Regards,


        UCS_Manager_test.skp

        DB

        1 Reply Last reply Reply Quote 0
        • E Offline
          Edson
          last edited by 16 Sept 2013, 12:56

          I am puzzled too. the UCSs you created are listed on my mac. however, I created UCS 04 and it did not register again.

          edson mahfuz, architect| porto alegre β€’ brasil
          http://www.mahfuz.arq.br

          1 Reply Last reply Reply Quote 0
          • G Offline
            gbu
            last edited by 21 Feb 2014, 11:39

            Hi Didier, will be very useful but have exactly the same problem on my mac- did you resolve? or is there an update for mac? Thanks

            1 Reply Last reply Reply Quote 0
            • T Offline
              TIG Moderator
              last edited by 15 Nov 2014, 16:45

              I have updated this tool for Didier, now to be compatible from SketchUp v8 up to v2015.
              It will also now load from any suitably set up Plugins folder [in $:], rather than just the default Plugins folder...
              The latest version [1.0.0x] is in the PluginStore http://sketchucation.com/pluginstore?pln=DBUR_UcsManager_v1_0_0

              TIG

              1 Reply Last reply Reply Quote 0
              • T Offline
                tommy.jhd
                last edited by 20 Feb 2015, 16:09

                Hello,

                TIG's update brought the following error:

                Error Loading File C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/DBUR_UcsManager/DBUR_UcsManager.rb
                uninitialized constant DBUR_Ucs::TRError Loading File DBUR_UcsManager.rb
                uninitialized constant DBUR_Ucs::TR

                ...which I think is a similar error message to what happens when you try and load UCS manager from an alternate plugin folder.
                The standard v1.0.0 loads fine (from standard plugin folder)

                Is the solution obvious?
                I've been fiddling with Didier's ArcCircle+ rb, trying and failing to get it to work from an alternate pligin location. If UCS can be fixed, I'll attempt the equivalent on ArcCircle+ - and perhaps save you the bother.

                Thanks
                T

                1 Reply Last reply Reply Quote 0
                • T Offline
                  TIG Moderator
                  last edited by 20 Feb 2015, 17:04

                  @tommy.jhd said:

                  Hello,

                  TIG's update brought the following error:

                  Error Loading File C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/DBUR_UcsManager/DBUR_UcsManager.rb
                  uninitialized constant DBUR_Ucs::TRError Loading File DBUR_UcsManager.rb
                  uninitialized constant DBUR_Ucs::TR

                  ...which I think is a similar error message to what happens when you try and load UCS manager from an alternate plugin folder.
                  The standard v1.0.0 loads fine (from standard plugin folder)

                  Is the solution obvious?
                  I've been fiddling with Didier's ArcCircle+ rb, trying and failing to get it to work from an alternate pligin location. If UCS can be fixed, I'll attempt the equivalent on ArcCircle+ - and perhaps save you the bother.

                  Thanks
                  T
                  I'll check it out...
                  Many of Didier's scripts do mess up if a non-standard Plugins folder is used...
                  I thought I found all the culprits... maybe not.

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • T Offline
                    TIG Moderator
                    last edited by 20 Feb 2015, 18:04

                    Here is an updated version.
                    http://sketchucation.com/pluginstore?pln=DBUR_UcsManager_v1_0_0
                    Please ensure that you have no other versions loading from other Plugins folder locations...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      tommy.jhd
                      last edited by 20 Feb 2015, 18:36

                      Hi TIG,
                      no sorry still exact same error message. UCS is the only plugin in the standard folder
                      (haven't tried running it from an alternate location yet) Tested on two separate desktops.

                      Is it working for you though?

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        TIG Moderator
                        last edited by 21 Feb 2015, 11:41

                        It works fine for me ???

                        Please check you only have the one copy installed.
                        An earlier version loading from another Plugins folder would mess you up, as it'll overwrite the standard folder's version.

                        Can you also post the path to your standard folder - obtained from this in the Ruby Console.
                        Sketchup.find_support_file('Plugins')

                        Also I get this:
                        DBUR_Ucs::TR

                        {"UCS Manager"=>"UCS Manager", "Save and restore User Coordinates Systems"=>"Save and restore User Coordinates Systems", "Save a User Coordinates System"=>"Save a User Coordinates System", "Restore a User Coordinates System"=>"Restore a User Coordinates System", "Delete a User Coordinates System"=>"Delete a User Coordinates System", "Save UCS"=>"Save UCS", "Restore UCS"=>"Restore UCS", "Delete UCS"=>"Delete UCS", "List UCS"=>"List UCS", "List User Coordinates Systems"=>"List User Coordinates Systems", "UCS main dialog"=>"UCS main dialog", "Pick UCS origin"=>"Pick UCS origin", "New UCS name: "=>"New UCS name: ", "Unnamed"=>"Unnamed", "Existing UCS: "=>"Existing UCS: ", "Select UCS"=>"Select UCS", "No UCS in this model."=>"No UCS in this model.", "Select existing UCS"=>"Select existing UCS", "Name: "=>"Name: ", "Origin: "=>"Origin: ", "X Axis: "=>"X Axis: ", "Y Axis: "=>"Y Axis: ", "Z Axis: "=>"Z Axis: "}

                        I'll make a slightly different version which sets up ' TR' differently, but I can't see why it fails for you !

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          TIG Moderator
                          last edited by 21 Feb 2015, 11:56

                          Here's an update http://sketchucation.com/pluginstore?pln=DBUR_UcsManager_v1_0_0 It have recast some of the code making the Translation hash - it's no longer set up inside the RBS, it's now done in the subfolder's RB before loading the RBS at all.

                          At least that way we might get different error messages πŸ˜•

                          Please retry and report back...

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            tommy.jhd
                            last edited by 23 Feb 2015, 11:49

                            Hi TIG
                            UCS manager is now loading without error - when located in standard plugins location, and in alternate locations.
                            However the following errors appear on use:
                            Error: #<NoMethodError: undefined method list_all_ucs' for DBUR_Ucs:Module> C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/DBUR_UcsManager/DBUR_UcsManager.rb:61 Error: #<NameError: uninitialized constant DBUR_Ucs::SaveUCSTool> C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/DBUR_UcsManager/DBUR_UcsManager.rb:40 C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/DBUR_UcsManager/DBUR_UcsManager.rb:61:in call'
                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/DBUR_UcsManager/DBUR_UcsManager.rb:61
                            Error: #<NameError: uninitialized constant DBUR_Ucs::RestoreUCSTool>
                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/DBUR_UcsManager/DBUR_UcsManager.rb:47
                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/DBUR_UcsManager/DBUR_UcsManager.rb:40:in call' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/DBUR_UcsManager/DBUR_UcsManager.rb:40 Error: #<NoMethodError: undefined method erase_ucs' for DBUR_Ucs:Module>
                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/DBUR_UcsManager/DBUR_UcsManager.rb:54
                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/DBUR_UcsManager/DBUR_UcsManager.rb:47:in `call'
                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/DBUR_UcsManager/DBUR_UcsManager.rb:47

                            As requested
                            Sketchup.find_support_file('Plugins')
                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins

                            ..and...

                            DBUR_Ucs::TR
                            {"Existing UCS: "=>"Existing UCS: ", "Save a User Coordinates System"=>"Save a User Coordinates System", "Origin: "=>"Origin: ", "Select UCS"=>"Select UCS", "List User Coordinates Systems"=>"List User Coordinates Systems", "Save UCS"=>"Save UCS", "Restore a User Coordinates System"=>"Restore a User Coordinates System", "Y Axis: "=>"Y Axis: ", "Delete a User Coordinates System"=>"Delete a User Coordinates System", "Unnamed"=>"Unnamed", "Pick UCS origin"=>"Pick UCS origin", "New UCS name: "=>"New UCS name: ", "Z Axis: "=>"Z Axis: ", "Name: "=>"Name: ", "List UCS"=>"List UCS", "UCS Manager"=>"UCS Manager", "X Axis: "=>"X Axis: ", "Restore UCS"=>"Restore UCS", "Save and restore User Coordinates Systems"=>"Save and restore User Coordinates Systems", "Select existing UCS"=>"Select existing UCS", "UCS main dialog"=>"UCS main dialog", "Delete UCS"=>"Delete UCS", "No UCS in this model."=>"No UCS in this model."}

                            Thank you again (sorry for taking a few day to test and get back to you)
                            T

                            1 Reply Last reply Reply Quote 0
                            • T Offline
                              TIG Moderator
                              last edited by 23 Feb 2015, 13:34

                              This is weird...
                              I'll do some more investigations...
                              πŸ˜•

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                TIG Moderator
                                last edited by 23 Feb 2015, 13:53

                                Here's an update http://sketchucation.com/pluginstore?pln=DBUR_UcsManager_v1_0_0 Some of its encrypted 'class' methods have been adjusted so they might now [hopefully] work better with earlier versions of SketchUp...

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  tommy.jhd
                                  last edited by 23 Feb 2015, 14:50

                                  Exactly the same error messages, I'm afraid.

                                  Would you like me to PM you them? (rather than saturating the thread with error messages)

                                  1 Reply Last reply Reply Quote 0
                                  • T Offline
                                    TIG Moderator
                                    last edited by 23 Feb 2015, 14:56

                                    Please copy+paste these three lines [one at a time] into the Ruby Console and report the three results...

                                    ` load('DBUR_UcsManager.rb')

                                    load('DBUR_UcsManager/DBUR_UcsManager.rb')

                                    Sketchup.load('DBUR_UcsManager/dbur_ucs.rbs')`

                                    Then, in that same session, retry using the tool...

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      tommy.jhd
                                      last edited by 23 Feb 2015, 15:17

                                      load('DBUR_UcsManager.rb')
                                      true
                                      load('DBUR_UcsManager/DBUR_UcsManager.rb')
                                      C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/DBUR_UcsManager/DBUR_UcsManager.rb:29: warning: already initialized constant TR
                                      true
                                      Sketchup.load('DBUR_UcsManager/dbur_ucs.rbs')
                                      false

                                      Tool replies same error messages as before

                                      Original version replies: true, true, false - with no elaboration or warnings

                                      1 Reply Last reply Reply Quote 0
                                      • T Offline
                                        TIG Moderator
                                        last edited by 23 Feb 2015, 16:08

                                        I'll PM you a possible solution...

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • L Offline
                                          lord anubis
                                          last edited by 21 Jun 2016, 04:15

                                          And gents, did you solve it?

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

                                          Advertisement