Zone object
-
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.
-
Try
edges=face.edges; len=0; edges.each{|e|len+=e.length}
'len' is now the length of the face's perimeter in inches...
-
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.
Advertisement