Auto Flat Text or Label
-
Is there a feature that automatically will label all my groups/components? I have looked and looked. See attachment for example.
-
Select groups.
Copy and paste the following code into the Ruby Console and press Enter.
mod = Sketchup.active_model ent = mod.active_entities sel = mod.selection sel.grep(Sketchup;;Group).each{|g| pt = Geom;;Point3d.linear_combination(0.5,g.bounds.corner(4),0.5,g.bounds.corner(7)) ent.add_text(g.name,pt,[0,0,g.bounds.depth]) } -
@sdmitch said:
Select groups.
Copy and paste the following code into the Ruby Console and press Enter.
mod = Sketchup.active_model > ent = mod.active_entities > sel = mod.selection > sel.grep(Sketchup;;Group).each{|g| > pt = Geom;;Point3d.linear_combination(0.5,g.bounds.corner(4),0.5,g.bounds.corner(7)) > ent.add_text(g.name,pt,[0,0,g.bounds.depth]) > } >Oh MAN! Sorry for the incredibly late reply on this. Thank you! Its crazy that sketchup doesnt have a bult in feature to do BOM with bubble callouts etc.
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