API - Get all connected bars by node

API - Get all connected bars by node

Xyz_Zyx
Contributor Contributor
1,212 Views
2 Replies
Message 1 of 3

API - Get all connected bars by node

Xyz_Zyx
Contributor
Contributor

Hello,

How to get all connected bars by node if the selected node is not start/end node of any bar?

Please see attached picture.
- When I select node 6 and click Select Adjoining Bars/Objects --> Result is bars: 1,3 and nodes 1,2,5,6 (This is what I'm trying to achieve)

- When I use NodeServer.GetConnectedBars("6") --> Result is bar 3

  - What should I do that the result would be 1 and 3

I tried to tweak the code which is for panels, but could't get nodelist from bars.

http://forums.autodesk.com/t5/robot-structural-analysis/api-robot-api-compatibility-between-robot-20...


GetConnectedByNode.png

 

-Ofa

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

Rafal.Gaweda
Autodesk Support
Autodesk Support
Accepted solution

You have to run Model Generation then check bar calculation elements of bars (RobotBar.Elements) and their nodes too.

See project files here:
http://forums.autodesk.com/t5/robot-structural-analysis/api-addin-for-short-calculation-elements-det...
as an example



Rafal Gaweda
0 Likes
Message 3 of 3

Xyz_Zyx
Contributor
Contributor

Got it!

Thank you very much, once again.

 

-Ofa

0 Likes