Paste In Place a Copy to Current (Active) Layer
-
I was wondering if someone would be willing to create a script that would Paste In Place a copy of a selection to the Current (Active) Layer.
Pasting in place geometry over itself in order to put the copy onto a another layer can be fiddly.
Regards, John
-
+1
Yes please that would be great.
I would like it even as a deafult beahvior of the sketch up to paste geometry on active layer.
Or make a switch for it so we can make this feature work for every scenario. -
It appears that Sketchup wont allow two entities to occupy the same location even if they are on separate levels. I think you would have to group them first. Something like this
mod = Sketchup.active_model ent = mod.active_entities sel = mod.selection org = ent.add_group sel; org.name = 'org'; org.layer = 'Layer0' new = org.copy; new.name = 'new'; new.layer = mod.active_layer new.entities.each{|e| e.layer = mod.active_layer}
-
[Update]
see posting below -
The attached will copy and paste in place a group or component to another layer.
It will appear in the Edit menu as "Paste In Place Copy of Group/Component to Layer".
Paste In Place A Copy.rbSelect a group or component and run the script. You will then be asked to choose a layer to paste the copy. The current layer will be initially displayed in the list.
Thanks Sdmitch.
Here is a test file to experiment with (SU2015 format).
Advertisement