Dynamo: I can't validate if the Room is rectangular or non-rectangular

Dynamo: I can't validate if the Room is rectangular or non-rectangular

franciane_pereira9Z2WH
Enthusiast Enthusiast
498 Views
2 Replies
Message 1 of 3

Dynamo: I can't validate if the Room is rectangular or non-rectangular

franciane_pereira9Z2WH
Enthusiast
Enthusiast

Hi,
I'm using the method List.IsRectangule. Let's go to made print this case.

Captura de tela 2024-01-12 123950.png

 

In my project there are some examples of two types. But the function only returns false.
Could anyone help me, please?

 

 

0 Likes
Accepted solutions (1)
499 Views
2 Replies
Replies (2)
Message 2 of 3

jeremy_tammik
Alumni
Alumni
Accepted solution

The best place to discuss pure Dynamo issues is the Dynamo forum:

  

https://forum.dynamobim.com

  

I am not aware of any function named List.IsRectangule, so I cannot advise.

  

However, in general, if you have a list of lines with their start and endpoints, it is pretty easy to determine whether they form a rectangle or not, e.g.: they must be four, check for two pairs of equal length, some coinciding endpoints, some perpendicular, some collinear, etc.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
Message 3 of 3

franciane_pereira9Z2WH
Enthusiast
Enthusiast

Hi Jeremy,
thank you so much!

0 Likes