Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

API Selections Bars

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
betadine
903 Views, 6 Replies

API Selections Bars

Hi,

 

Is there a way to get a selection of bars from a list of nodes?

 

Could you give me some help to do this?

 

Thank you in advance

6 REPLIES 6
Message 2 of 7
Rafal.Gaweda
in reply to: betadine

Dim RNA As RobotNumbersArray
        Dim BarSelection  As RobotSelection
       Set BarSelection  = Robapp.Project.Structure.Selections.Create(I_OT_BAR)
        Set RNA = Robapp.Project.Structure.Nodes.GetConnectedBars(Nodeselection.ToText)
        Dim  selbar as String

        For I = 1 To RNA.Count
            selbar = selbar + " " + Str(RNA.Get(I))
        Next I
        BarSelection.FromText selbar

 



Rafal Gaweda
Message 3 of 7
betadine
in reply to: Rafal.Gaweda

Thanks for the help. It works nice.

 

I'm newer in programming and in API and i've some difficults to understanding the logical of this API. Is there any document easier to understand than the Robot API.pdf?

Message 4 of 7
Rafal.Gaweda
in reply to: betadine
Message 5 of 7
rdrmolina
in reply to: Rafal.Gaweda

It´s possible select bar or nodes by location with API?

Message 6 of 7
Romanich
in reply to: rdrmolina

Hi @rdrmolina,

Yes, it is possible to select nodes by coordinates X, Y, Z.

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.

Roman Zhelezniak

Robot Evangelist & Passionate Civil Structural Engineer

LinkedIn | Robot & Хобот | App Store for Robot
EESignature


Message 7 of 7
Rafal.Gaweda
in reply to: rdrmolina

Hi @rdrmolina

 

Just to be sure you understood @Romanich's answer correctly : you need to write such procedure by your own.

The only implemented geometrical selection in API is ByStorey



Rafal Gaweda

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report