Robot-API: Find storey that a élément belongs to

Robot-API: Find storey that a élément belongs to

hvdsidf
Enthusiast Enthusiast
521 Views
2 Replies
Message 1 of 3

Robot-API: Find storey that a élément belongs to

hvdsidf
Enthusiast
Enthusiast

Hi all,

 

How can I determine the storey that a element belongs to by API?

 

Thanks in advance,

HUA Van Dong

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

Rafal.Gaweda
Autodesk Support
Autodesk Support
Accepted solution

Hi @hvdsidf 

 

I would do it by comparing storey selection(s) with object number:

 

Dim RS As RobotSelection

Set RS = RobApp.Project.Structure.Selections.CreateByStorey(I_OT_NODE, "Story 1")

or by comparing RobotStorey.Objects with object number

 



Rafal Gaweda
Message 3 of 3

hvdsidf
Enthusiast
Enthusiast

Hi Rafal ,

 

Thank you very much for your hyper-rapide reply.

I understand that there is no proprety concerning the storey for a element, so we have to do like your propose.

 

Thanks alot,

HUA Van Dong

0 Likes