[REQ] change all components to groups
-
Happy Holidays! Hey is there a plugin to change all the components in a drawing or selection to Groups???
-
@pbacot said:
Happy Holidays! Hey is there a plugin to change all the components in a drawing or selection to Groups???
A one-liner for component instances in a selection
mod=Sketchup.active_model;ent=mod.active_entities;sel=mod.selection;cis=sel.grep(Sketchup;;ComponentInstance);mod.start_operation "ToGroup";cis.each{|ci|ent.add_group(ci);ci.explode};mod.commit_operation -
Oh thanks! Happy New Year!
-
It does work.
What I have is nested components from CAD, which are no use for me in the SU model as components, except as reference. Still I must go into each level (context) to find the components. The components clutter the component list and probably make the file heavier.
-
@pbacot said:
It does work.
What I have is nested components from CAD, which are no use for me in the SU model as components, except as reference. Still I must go into each level (context) to find the components. The components clutter the component list and probably make the file heavier.
Would you want to change the nested components into groups also or just explode them?
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