I need to include the LxW of several area boundries in Revit (Not rooms, there’s no walls, etc). I am having trouble figuring out how to revise my dynamo script (See picture attached and workflow break down below).
For context
I only have area boundaries, I dont have any walls, etc.
I have created the Area_Length and Area_Width in my project parameters.
The areas are not all aligned to the X-Y axis, several are tilted.
Most areas are rectangles but some are irregular
How can I correctly calculate Area_length and Area_width for rotated or irregular areas?
Workflow I tried:
Categories → Select Areas
All Elements of Category
Area Boundaries → Extract boundary curves for each area
Curve.Length → Get length of each boundary curve
List.MaximumItem → Assume this is the Area_Length
List.MinimumItem → Assume this is the Area_Width
Convert Between Units → Convert from feet to meters
Element.SetParameterByName → Write values to Area_Length and Area_Width parameters
Looking forward to any comments, suggestions you may have.
The graph here is for dimensioning rooms, but you can likely modify it without much effort.
I think it might be a good fit here for the odd shapes (I.e. an area with a recessed alcove might report the depth of the alcove as the width since that is the shotest line and then the parameter thinks you have a room with an area of 200 but dimensions of 20x1.