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!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement