• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Auto Flat Text or Label

Scheduled Pinned Locked Moved SketchUp Feature Requests
sketchup
3 Posts 2 Posters 13.7k Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    pohlr1
    last edited by 23 May 2018, 18:14

    Is there a feature that automatically will label all my groups/components? I have looked and looked. See attachment for example.


    STAIRS.skp

    1 Reply Last reply Reply Quote 0
    • S Offline
      sdmitch
      last edited by 23 May 2018, 19:21

      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])
      }
      
      

      Nothing is worthless, it can always be used as a bad example.

      http://sdmitch.blogspot.com/

      1 Reply Last reply Reply Quote 0
      • P Offline
        pohlr1
        last edited by 27 Jul 2018, 01:20

        @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.

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement