Duplicate of component definition
-
Is there a good and easy way to make a copy of a component definition.
I can not use make_unique since the component only has one instance.I could copy all the entities of the component into a new group and make that a component but then i have duplicate data in the model
Thx!
-
Add a new instance and make that unique?
-
Like this?
x=Sketchup.active_model.entities.add_instance(definitionname)
x.make_unique
x.definition.name="blabla"Then how do i delete the instance again so that i only have the new definition in the library?
Thx Thomthom for the quick help
-
@pout said:
Then how do i delete the instance again so that i only have the new definition in the library?
x.erase!
-
but thx , solution works perfectly, i was looking into this for half a day now and trying all kinds of things and the most simple one I didn't see
-
So what are you cooking?
-
Checking some small bugs in our plugin.
The smaller they are, the harder they are! -
What plugin go you develop Pout? I was just talking about this the other day - there are quite a few developers here that I have no idea what they are working on. I'm pretty sure I rememeber seeing somewhere what plugin is yours (one of the renderer plugins maybe?), but I do not rememeber what it is. Just curious,
Chris
-
Hey Chris,
We are the developers of the 4D Virtual Builder for Sketchup plugin
Hope you already had the time to test-drive it.Since I'm not a native Ruby developer this forum has been a great help!
Advertisement