(API) - List of nodes by Strorey

(API) - List of nodes by Strorey

hvdsidf
Enthusiast Enthusiast
516 Views
1 Reply
Message 1 of 2

(API) - List of nodes by Strorey

hvdsidf
Enthusiast
Enthusiast

Hello,

 

I use the code below to take list of the objects by storey with no problem:

Dim oSel As RobotSelection = str.Selections.CreateByStorey(IRobotObjectType.I_OT_OBJECT, Storey.Name)

 

But I do the same code but for the NODES (see code here below), it give the wrong selection for the list of node BY STOREY:

Dim nSel As RobotSelection = str.Selections.CreateByStorey(IRobotObjectType.I_OT_NODE, Storey.Name)

 

Robot's error?

 

So that I have to do the list by looping and by comparing all of the nodes with there Z with STOREY.TopLevel.

 

But it takes time when excecuting.

 

Someone can tell why the code below doesn't work well?

Dim nSel As RobotSelection = str.Selections.CreateByStorey(IRobotObjectType.I_OT_NODE, Storey.Name)

 

Best regards,

Dong HUA

0 Likes
Accepted solutions (1)
517 Views
1 Reply
Reply (1)
Message 2 of 2

Rafal.Gaweda
Autodesk Support
Autodesk Support
Accepted solution

Hi @hvdsidf 

 


Robot's error?

 

Seems so.

Sorry.

I will register it for fixing.



Rafal Gaweda