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

    [Plugin] Component Edit Window v1.3 12072011

    Scheduled Pinned Locked Moved Plugins
    46 Posts 18 Posters 54.1k Views 18 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.
    • dereiD Offline
      derei
      last edited by

      I noticed different toolbars in Component Editing Window. Is that a feature included in plugin? will have just custom selected toolbars in new opened window?

      DESIGNER AND ARTIST [DEREI.UK](http://derei.uk/l)

      1 Reply Last reply Reply Quote 0
      • honoluludesktopH Offline
        honoluludesktop
        last edited by

        The component window will inherit the menus from the parent. I changed the menus in my presentation of the edit window to illustrate how the plugin functioned, in a small picture.

        1 Reply Last reply Reply Quote 0
        • EdsonE Offline
          Edson
          last edited by

          for your information, the makers of Podium have released a commercial plugin called EditinPlace that does exactly what yours does.

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

          1 Reply Last reply Reply Quote 0
          • EarthMoverE Offline
            EarthMover
            last edited by

            Great idea! I always keep a 2nd SU open for this reason. This should streamline it quite a bit. Thanks! πŸ‘

            3D Artist at Clearstory 3D Imaging
            Guide Tool at Winning With Sketchup
            Content Creator at Skapeup

            1 Reply Last reply Reply Quote 0
            • G Offline
              Ghalko
              last edited by

              Definitely dabbling in the code to use existing components, or make them if they don't exist. First foray into ruby, I already dislike that it doesn't do much with curly braces and semicolons. I usually program C and PERL. πŸ’š

              I just thought that it could be setup to save in a tree of folders, might make the code quite a bit longer, but might make saving components easy and finding them individually. Now to figure out how to only save the geometry in the components file and still load it into the trunk of the tree. 😲 My ideas are getting far beyond my grasp of ruby and the API. I should keep it simple for a bit.

              When I get somewhere with it would you like me to post it or send you the code for perusal/editing?

              Arrrggghhh! Why won't it make a face!!! Stupid, no good piece of... Oh look! The line went to the wrong point. Whew... moving on. (My fights with sketchup.)

              1 Reply Last reply Reply Quote 0
              • honoluludesktopH Offline
                honoluludesktop
                last edited by

                Post it in the Developers section, there you can get help from those who are truly gifted in SketchUp ruby, and the Api. Everything I have written, was with their help.

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

                  hi,

                  the plugin is missing in my index menu.

                  also, when i try to load the plugin via ruby console,

                  my ruby console puts the following:

                  load component_edit_window_v1.0.rb
                  Error; #<SyntaxError; (eval);48; compile error
                  (eval);48; no .<digit> floating literal anymore; put 0 before dot
                  load component_edit_window_v1.0.rb
                                                ^
                  (eval);48; syntax error, unexpected tINTEGER
                  load component_edit_window_v1.0.rb
                                                 ^>
                  (eval);48
                  
                  

                  i have su8 installed in the default location.
                  and i put the plugin into Plugins.

                  thanks for any help.
                  πŸ‘

                  as long as there is a voyage away, there's always a journey back...

                  http://artofseeing.carbonmade.com

                  1 Reply Last reply Reply Quote 0
                  • TIGT Offline
                    TIG Moderator
                    last edited by

                    You need to pass a string to 'load' πŸ€“
                    It's NOT load component_edit_window_v1.0.rb
                    BUT load 'component_edit_window_v1.0.rb'
                    πŸ˜’

                    To check the file really exists use this in the Ruby Console
                    File.exist?(File.join(Sketchup.find_support_file('Plugins'),'component_edit_window_v1.0.rb')) if 'false' then 'there's a rabbit away'!

                    If you have Vista or Win7 and don't have full permission to the subfolders within the Sketchup folder weird things can happen - you think you've added a file but the OS has actually put it into a side-folder - the 'Compatibility Files' issue... If this is the case look to see if there's a button of that name in the top window bars... Fix your permissions for all folders within the Sketchup folder so it doesn't recur...

                    TIG

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

                      twas indeed the permission issue.

                      both code snippets (load and file exist) put TRUE,
                      so now it works.πŸ˜„
                      thanks alot!

                      thats what i too call STREAMLINING!!

                      thanks a lot

                      as long as there is a voyage away, there's always a journey back...

                      http://artofseeing.carbonmade.com

                      1 Reply Last reply Reply Quote 0
                      • pilouP Offline
                        pilou
                        last edited by

                        you can now use this cool plugin by Sdmitch
                        Replace randomly components πŸ˜‰
                        (or not random if there is only one as source πŸ˜‰

                        Frenchy Pilou
                        Is beautiful that please without concept!
                        My Little site :)

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

                          I've just tested the plugin on SU8 (win7 32bit) and it only works for groups, not components - the new SU window just doesn't load.
                          Any suggestions?

                          1 Reply Last reply Reply Quote 0
                          • dereiD Offline
                            derei
                            last edited by

                            It doesn't work for me 😞
                            I tried to use it, but I get this error in console:

                            Error: #<NoMethodError: undefined methoddefinition' for #Sketchup::Group:0xe7a4c58>
                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/component_edit_window_v1.0.rb:61:in atelier_edit_instance' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/component_edit_window_v1.0.rb:60:in each'
                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/component_edit_window_v1.0.rb:60:in atelier_edit_instance' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/component_edit_window_v1.0.rb:124 (eval):3:in call'
                            (eval):3:in call' (eval):1:in get_New_Commands'
                            C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/component_edit_window_v1.0.rb:61:in call' C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/component_edit_window_v1.0.rb:61

                            DESIGNER AND ARTIST [DEREI.UK](http://derei.uk/l)

                            1 Reply Last reply Reply Quote 0
                            • TIGT Offline
                              TIG Moderator
                              last edited by

                              dereeei

                              Edit the .rb file at lines #55-56 using Notepad or similar plain text editor
                              Change

                              all_instances=componentdefinition.instances if all_instances[0]==nil

                              to read

                              all_instances=**cnt_instance.definition**.instances if all_instances**.length==1**

                              this will avoid the potential glitch, which wrongly looks at the "model.defintions[0]" instances rather than the selected instance's definition's instances - and which might inadvertently throw up a 'group', which then won't have a ".definition" method in the API...

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • dereiD Offline
                                derei
                                last edited by

                                @tig said:

                                dereeei

                                Edit the .rb file at lines #55-56 using Notepad or similar plain text editor

                                Thank you very much. All is fine.

                                DESIGNER AND ARTIST [DEREI.UK](http://derei.uk/l)

                                1 Reply Last reply Reply Quote 0
                                • TIGT Offline
                                  TIG Moderator
                                  last edited by

                                  We've decided to post an updated version of this useful tool.
                                  It corrects a rare glitch reported the the recent post.
                                  Get the updated version from here http://forums.sketchucation.com/viewtopic.php?p=296715#p296715
                                  As you probably know, sadly the script's author died a few weeks ago, he would have done it if he could 😞

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • TIGT Offline
                                    TIG Moderator
                                    last edited by

                                    Here's a version that attempts to fix a glitch on the MAC, deleting temp files
                                    Please remember to name components without characters that mess with system like NO /:<>?* or accented characters etc...
                                    Get the updated version from here http://forums.sketchucation.com/viewtopic.php?p=296715#p296715

                                    As you probably know, sadly the script's author died a few weeks ago, he would have done fixed this if he could 😞

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • jeff hammondJ Offline
                                      jeff hammond
                                      last edited by

                                      tested new version on mac. (v1.2)

                                      there's no ruby message this time (re: that other thread discussing this)

                                      i named a component 'test'
                                      context menu -> component edit window
                                      popup "insert instance: test" -> OK (in the previous version, after clicking OK is when the error message appeared in the ruby console)
                                      nada

                                      dotdotdot

                                      1 Reply Last reply Reply Quote 0
                                      • TIGT Offline
                                        TIG Moderator
                                        last edited by

                                        Sorry Jeff... It's not my baby and I have a zillion other things to do... I think we stick here for now 😒

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • jeff hammondJ Offline
                                          jeff hammond
                                          last edited by

                                          @tig said:

                                          Sorry Jeff... It's not my baby and I have a zillion other things to do... I think we stick here for now 😒

                                          nah.. it's all good..
                                          i'll make a macro later today that does this so i can try out it's functionality in real world use.. i'll post my thoughts on it afterwards

                                          dotdotdot

                                          1 Reply Last reply Reply Quote 0
                                          • TIGT Offline
                                            TIG Moderator
                                            last edited by

                                            I've made several adjustments to the code, so it should now run on MAC OK.
                                            Here's v1.3 http://forums.sketchucation.com/viewtopic.php?p=296715#p296715

                                            Please remove all earlier versions from your Plugins folder...

                                            TIG

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

                                            Advertisement