Community
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
Solved! Go to Solution.
Solved by Rafal.Gaweda. Go to Solution.
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"