Hello Everyone
I’m trying to create a script that would give the Length and Width as a string of rectangular Areas
I created the script and it’s working if the area boundary is not touching any other boundary
Like this:
However in this situation the script reads the rectangle as having more than 4 points
I want to eliminate any point that is not a corner point in this node here:
Area Boundary - RectangleWxL.dyn (96.7 KB)
Attached is the dynamo file
Hope someone can help
Thank you all
It would be good to start with why the area is non-rectangular if it’s supposed to be. How are you getting the area boundary and what is it supposed to represent?
Hi Nick
the areas are either rectangular or triangular, the goal is to divide a large area and be able to represent it graphically using dimensions:
The script would save adding lengths and widths to those rectangle (and triangles) by including them into the tag.
The issue is that it works for Area 1 and Area 2 but not for Area 3 :
Pull the area boundaries, convert to polycurves, get the bounding box by minimum volume, transform the min and max point by the inverse or it’s coordinate system, build a vector between the two points, and pull the X (length) and Y (width) components.
Hey
Thanks for this suggestion
bounding box was the key, the coordinate system was a bit complicated for me and while trying to figure it out I stumbled upon the cuboid node which did the trick
With the bounding box width and length and with the area calculated by revit for the “area” elements
I could filter rectangles and triangles
Thanks again!