Include and extraction?
-
anyone know any plugins to include a gemetria within a group or component?
Or to extraction a geometry of a group or component? -
To include entities in a definition/group manually select them, edit-copy and then edit the instance/group, then edit-paste_in_place and the entities are added. To move them into the definition/group use edit-cut instead...
To ruby include entities in an instance (could be either instance or group.definition.instances[0]) use my 'ComponentInstance-add_entities.rb' method.
To extract [copy] entities out of an instance/group you can manually edit the instance/group, use edit-copy, close the edit and then edit-paste_in_place, the origin remains unchanged.
To cut entities out of an instance/group you can manually edit the instance/group, use edit-cut, close the edit and then edit-paste_in_place, the origin remains unchanged.
I don't think there's a ruby method for this yet... However, it's relatively easy to think through...
To ruby extract [copy] entities out of an instance or group, make a copy of the instance and then instance.make_unique [or just copy the group], then list all of its.definition.entities.to_a and remove the required entities from the list and use entity.erase! on the rest, explode the instance/group and the geometry appears to have been copied out of the instance. To tidy up empty the made_unique definition of all entities so it disappears off the browser list.
To copy/cut the entities out of an instance or group, first do a ruby extract [copy] as above, and then remove the entities from the original instance.definition.entities or group.entities by using entity.erase! on them.
Hope that helps...
-
You may try to open the component (double click, or right click menu), select geometry, close component and paste.
Or do you mean something more specific?
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