[RESOLVED] Guide-Points in Groups or Components
-
I want each Guide-point as a Component!
I have something named Convert in Single Components (or Groups)
but alas that convert only one Guide-Point from a selection of guide-points in Component! (or group)
So not each guide-point as Component!
You must relaunch for a new conversion (and again only one) so not very practical!
Loose to groups curioulsly gives also only guide-point as group!

If you have some ideas don't hesitate!


-
Select Guide Points. Right click on anyone of them. Choose "Guide Points to Components"
unless file_loaded?((__FILE__)) UI.add_context_menu_handler do |menu| if Sketchup.active_model.selection.first.is_a?(Sketchup;;ConstructionPoint) menu.add_separator menu.add_item('Guide Points to Components') { Sketchup.active_model.start_operation "Guide Points to Components" cps = Sketchup.active_model.selection.grep(Sketchup;;ConstructionPoint) cps.each{|cp| grp = Sketchup.active_model.active_entities.add_group(cp) grp.to_component } Sketchup.active_model.commit_operation } end end file_loaded((__FILE__)) end -
Cool that's works!

So with your fabulous Component Random Replacement!
Here Guides-Points are 8 vertices of a box!

PS Can we have a little rb file for have it in the SDM Tools Menu ?
-
@pilou said:
PS Can we have a little rb file for have it in the SDM Tools Menu ?
Usage: Plugins>SDM Tools>CorG Tool>Guide Point to Component
Works from the Plugins menu or by Right click.
-
Excellent!

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