Measure LxW of area boundries in Revit

Hello Dynamo Community :slightly_smiling_face:

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:

  1. Categories → Select Areas

  2. All Elements of Category

  3. Area Boundaries → Extract boundary curves for each area

  4. Curve.Length → Get length of each boundary curve

  5. List.MaximumItem → Assume this is the Area_Length

  6. List.MinimumItem → Assume this is the Area_Width

  7. Convert Between Units → Convert from feet to meters

  8. Element.SetParameterByName → Write values to Area_Length and Area_Width parameters

Looking forward to any comments, suggestions you may have.

Thank you!

Hi @Jennyvla ,
Could you please share a sample file so we can analyze and improve the workflow?

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.

No need to map.

Depending on your Parameter you might need String from Object too.

PS
Next time pin your preview bubbles. That would help a lot :sweat_smile:.