sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    ⚠️ Important | Libfredo 15.6a introduces important bugfixes for Fredo's Extensions Update

    Zone object

    Scheduled Pinned Locked Moved Plugins
    3 Posts 2 Posters 365 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.
    • A Offline
      ArCAD-UK
      last edited by

      I'm looking for a solution that will provide me through the report generator with the perimeter, area and volume of a solid shape to analyse rooms. I know how to get this manually, but it would be great if this info was automatically updated with the shape so it could be quickly extracted and analysed in Excel.

      I think I can get the right results for volume straight out, and the floor, wall & ceiling areas can be extracted by assigning different materials to the various faces but I can't see any way to get the perimeter for a face in the report.

      Anyone got a solution?

      Feels like it should be a fundamental part of the S.U. report.

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

        Try

        edges=face.edges; len=0; edges.each{|e|len+=e.length}
        

        'len' is now the length of the face's perimeter in inches...

        TIG

        1 Reply Last reply Reply Quote 0
        • A Offline
          ArCAD-UK
          last edited by

          Thanks TIG but I'm struggling with Ruby. I've done basic, machine code (long time ago), Lisp & GDL (ArchiCAD).

          I did look at your volume script but I'm not sure how to add your snippet of code above.

          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