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

    Note or label in acres

    Scheduled Pinned Locked Moved Plugins
    5 Posts 3 Posters 1.3k Views 3 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.
    • G Offline
      glenn
      last edited by

      I had originally posted in general SU area, might have better luck here????
      Hello,
      Does anyone know of a way to display “acres” as a system measured note or label?
      Currently, selecting a face will result in a note/label with square feet. I’d like SU to make the note in acres instead of having to do the math myself.
      Thank you,
      Glenn
      SU 7.1pro
      XPsp3

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        Hmm, I've written a snippet of code that I run at work that takes a selection of faces and determines the acres and adds a note to the model pointing to the center of the faces and displays in acres.

        I'll try to rememeber to upload here when I get back to workin tomorrow (about 14 hours from now).

        Chris

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • G Offline
          glenn
          last edited by

          Thanks Chris,
          That will be great!!!
          Glenn

          1 Reply Last reply Reply Quote 0
          • TIGT Offline
            TIG Moderator
            last edited by

            This scant 'one-liner' does it - select some face[s] and paste it into the Ruby Console, a piece of text showing the area to 3dp is placed at each face's center - but has no undo, command, menu etc etc...

            m=Sketchup.active_model;s=m.selection;s.each{|e|m.active_entities.add_text((((e.area*0.000159423).to_i)/1000.0).to_f.to_s+"acres",(e.bounds.center),[10,10,10])if e.class==Sketchup;;Face}
            

            TIG

            1 Reply Last reply Reply Quote 0
            • G Offline
              glenn
              last edited by

              Thank you Tig, works like a charm !!!!!
              Glenn

              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