• Login
sketchucation logo sketchucation
  • Login
πŸ”Œ Quick Selection | Try Didier Bur's reworked classic extension that supercharges selections in SketchUp Download

Cut and Paste-in-place from within Component Instances

Scheduled Pinned Locked Moved Developers' Forum
20 Posts 7 Posters 1.4k Views 7 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.
  • J Offline
    JClements
    last edited by 1 Apr 2008, 16:01

    G:

    I'll give this a try in a bit. I think I may have problems, however, due to the way I use layers, for example I have layers for certain elements for each entity, group, etc., such as a layer for construction points-center lines and hidden edges/surfaces. Most all my groups and components contain geometry assigned to those layers.

    John | Illustrator | Beaverton, Oregon

    1 Reply Last reply Reply Quote 0
    • A Offline
      a4chitect
      last edited by 1 Apr 2008, 17:52

      Another way is to make 2 of them unique, so that you get 2 new components, then edit these new the way you have to, then use a component definition transfer ruby (applyto.rb) to sample first new comp. apply it to all the instances you want and do the same with the 2nd new comp..

      Once u download the ruby script, it is Right click on a comp. >component definitions>get def. / apply def.

      http://www.smustard.com/script/ApplyTo

      btw: thanks rick for this invaluable script

      this suggestion by jim:
      @unknownuser said:

      Selecting and replacing Component Instances can be done by right-clicking in the Component Browser
      does essentially the same, but the script by rick allows for direct clicking on components in the scene, and not having to look for the right component in the component browser

      1 Reply Last reply Reply Quote 0
      • G Offline
        Gaieus
        last edited by 1 Apr 2008, 20:37

        @jclements said:

        G:

        I'll give this a try in a bit. I think I may have problems, however, due to the way I use layers, for example I have layers for certain elements for each entity, group, etc., such as a layer for construction points-center lines and hidden edges/surfaces. Most all my groups and components contain geometry assigned to those layers.

        Give a damn to your current layers - you are going to undo everything at the end (including creating new layers AND assigning everything onto these layers).

        Think of the UNDOcommand, John!
        πŸ˜„

        Gai...

        1 Reply Last reply Reply Quote 0
        • J Offline
          JClements
          last edited by 1 Apr 2008, 20:50

          Yes, father, I will experiment with your suggestion... but give a while to do so.

          😳

          John | Illustrator | Beaverton, Oregon

          1 Reply Last reply Reply Quote 0
          • R Offline
            RickW
            last edited by 2 Apr 2008, 04:05

            I may be missing something, but can't you insert the subcomponent in the main model space directly where the instance exists within the parent component? Then, go into the parent and delete the instance after you've used it for reference positioning.

            RickW
            [www.smustard.com](http://www.smustard.com)

            1 Reply Last reply Reply Quote 0
            • G Offline
              Gaieus
              last edited by 2 Apr 2008, 08:53

              Yes Rick but his problem is that he already has several of these subcomponents and cutting / pasting in place will cut all instances but paste only the one you actually clicked on.

              Gai...

              1 Reply Last reply Reply Quote 0
              • R Offline
                RickW
                last edited by 2 Apr 2008, 16:07

                If everything is components, I think a ruby could work. If there's a combination of groups/components in the tree, then it gets very VERY messy.

                RickW
                [www.smustard.com](http://www.smustard.com)

                1 Reply Last reply Reply Quote 0
                • R Offline
                  rv1974
                  last edited by 3 Apr 2008, 06:35

                  the most elegant way is
                  to save as (export to ext. file)those blocks, simultaneosly edit them in separated files
                  and finally re-assemle (paste in place) back new definition in addition with edited one.
                  it's harder to explain than to proceed πŸ˜„

                  1 Reply Last reply Reply Quote 0
                  • R Offline
                    RickW
                    last edited by 3 Apr 2008, 15:28

                    Okay, I think I have a (non-ruby) solution:

                    1. Rename the parent component to something like "parentcomponent-old"
                    2. Go into one of the parent components, then select all, then unselect the subcomponent that was redesigned.
                    3. Make the selected objects into a new component with the original parent component name
                    4. Exit the parent component, then right-click on it and "Select all instances"
                    5. Explode them all! You'll have parent components and un-nested subcomponents, everything in its proper place.

                    RickW
                    [www.smustard.com](http://www.smustard.com)

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      JClements
                      last edited by 3 Apr 2008, 15:44

                      Rick it sure would be worth investigating. The use of components has been emphasized and encouraged as the way to go when modeling, but this issue now causes me to think twice before setting up an assembly of components. Anything that could be done to make this a more efficient process would be appreciated.

                      Regards, John

                      John | Illustrator | Beaverton, Oregon

                      1 Reply Last reply Reply Quote 0
                      • J Offline
                        JClements
                        last edited by 3 Apr 2008, 16:25

                        RV:

                        I think you've got a good procedure.

                        1- Select the 'original' component

                        2- Right-Click, choose "Save As" from the Context Menu and name it 'version 2'

                        3- Save current model and open version 2.skp

                        4- Select all geometry that needs to remain in 'original' component. Make that selection a component and call it "Original". Select the remaining geometry and make it a a different component with a unique name (lets call it 'PasteMeInPlace') and then edit it and group all the geometry within it. Save the version2.skp file.

                        5- Open the first model. Right-click on the component named 'original' and choose Reload from the Context Menu and reload with version 2.skp. Pick Smustard's "Select All Instances" from the Context Menu and then EXPLODE that set of instances.

                        6- What remains should be a new version of 'original' and the other geometry which is the component 'PasteMeInPlace'. Select it. Right-click and use Smustard's "Select All Instances" again. You can then EXPLODE all those instances if you want. .....Optionally, you could edit 'PasteMeInPlace' first and ungroup the contents before exploding all of it's instances.

                        John | Illustrator | Beaverton, Oregon

                        1 Reply Last reply Reply Quote 0
                        • J Offline
                          JClements
                          last edited by 3 Apr 2008, 16:38

                          Rick, looks like you just beat me to the punch. Thanks anyway. πŸ˜„ and to RV.

                          John | Illustrator | Beaverton, Oregon

                          1 Reply Last reply Reply Quote 0
                          • R Offline
                            RickW
                            last edited by 4 Apr 2008, 00:51

                            I think the advantage to my method (though it's substantially similar) is that you don't have to save an external file - everything is in the original model. The "save as..." and reloading seem to be extra steps that could be avoided.

                            RickW
                            [www.smustard.com](http://www.smustard.com)

                            1 Reply Last reply Reply Quote 0
                            • J Offline
                              JClements
                              last edited by 14 Nov 2014, 17:30

                              Try this script which Sdmitch created.

                              Edit a "top level" instance, make a selection (can be a group, a component, loose geometry or any combination of them), then run the script from the Edit menu > item "Cut selection within Comp Instance and Paste in Place from all Instances" (it is a long description, change if it if you want one less lengthy). You will be given an option to place the objects to be pasted onto a specific layer.

                              I tested it in SU2014 and SU2014.

                              Cut and Paste in Place.rb

                              John | Illustrator | Beaverton, Oregon

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

                              Advertisement