Get several closed curve array from several walls

Get several closed curve array from several walls

Anonymous
Not applicable
542 Views
1 Reply
Message 1 of 2

Get several closed curve array from several walls

Anonymous
Not applicable

Hi Expert,

 

Now, I have one requirement to create several floor according to the multi-selected walls, for example, we select the walls that they has the collection style as "日" or "田", I want to get two or four small closed spaces, and then use the closed curve array to create two or four floors. So, whether there is API to get the closed curve as this requirement? From the SDK sample -- GenerateFloor, I can get the closed curve as "口". whether I  need to get the inject point by myself, and then caculate all possible curves?

 

Appreciate for any suggestion.

 

thanks,

Gavin

0 Likes
543 Views
1 Reply
Reply (1)
Message 2 of 2

jeremytammik
Autodesk
Autodesk

Dear Gavin,

 

Sorry, I do not understand what you are after.

 

It is easy to retrieve the wall center line from its Location property by casting that to a LocationCurve object.

 

There are lots of examples of doing this on The Building Coder and elsewhere.

 

That should give you all you need.

 

I hope this helps.

 

Best regards,

 

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes