Get 'adjoining members' property of node from Robot using VBA
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I would like to get the 'adjoining members' property of a node from Robot using VBA. My question is very similar to this question by Ofa Hindersson: https://forums.autodesk.com/t5/robot-structural-analysis-forum/api-get-all-connected-bars-by-node/td...
Unfortunately I do not understand the answer for this question, and the links seem to do something different. I have the following ideas to get what i need, and the ones mentioned first seem the cleanest, easiest to program and fastest to run:
1) Get the 'Adjoining members' property of a node directly from Robot. This property is the first shown in the Inspector window, directly after the node number, and in the 'object properties' it is mentioned after the coordinates as an 'additional' property. So it does exist in Robot.
2) Use the 'select similar' > 'Select adjoining bars/objects' from VBA. If I hoover over a node, and right-click, the menu has this additional option. Is there any way to activate it from VBA?
3) Create a node table in Robot, with a column for 'Adjoining bars', and transfer it to VBA/Excel. This would be more time consuming; 1] Activate the 'Adjoining bars' column 2] create node table 3] Transfer table to VBA 4] find column for 'Adjoining bars' 5] Look up desired results 6] delete table again.
4) Use elements as suggested for Ofa Hindersson. This method seems to be very complex to program, and may be very slow to run for large models. If I understand it correctly, the idea is to select a node, and then loop through all calculation nodes in the middle of all bars and see if they are equal to the node I am looking for.
Is it possible to use any of the methods?
Thank you very much in advance for any help,
Rick
