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?
Advertisement