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) Assign the release to a bar

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
hvdsidf
686 Views, 2 Replies

(API) Assign the release to a bar

Hi,

 

I don’t know how to assign the release for the bar (Robot RSA) using Visual Basic API.

(I know how to create the ”RELEASE Label” but how to assign to a bar element?) 

 

Please help me, thanks in advance,

HUA Van Dong

2 REPLIES 2
Message 2 of 3
Rafal.Gaweda
in reply to: hvdsidf

Set RobApp = New RobotApplication

    
    Dim RLabel As RobotLabel
        
    Dim RelData As RobotBarReleaseData
    Dim EndData As RobotBarEndReleaseData

    Set RLabel = RobApp.Project.Structure.Labels.Create(I_LT_BAR_RELEASE, "MY RELEASE")
    Set RelData = RLabel.Data
    Set EndData = RelData.StartNode
    EndData.RY = I_BERV_STD
    
    Set EndData = RelData.EndNode
    EndData.RX = I_BERV_STD
    
    RobApp.Project.Structure.Labels.Store RLabel
    
    Dim RBAR As RobotBar
    Barnumber =1
    Set RBAR = RobApp.Project.Structure.Bars.Get(Barnumber)
    RBAR.SetLabel I_LT_BAR_RELEASE, "MY RELEASE"

 



Rafal Gaweda
Message 3 of 3
ve_75
in reply to: Rafal.Gaweda

Ok, thank you very much.

It works perfectly.

 

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

Post to forums  

Autodesk Design & Make Report