[Robot Api] Apply load to a Chain of bars

[Robot Api] Apply load to a Chain of bars

BadrDerouiche
Contributor Contributor
2,190 Views
2 Replies
Message 1 of 3

[Robot Api] Apply load to a Chain of bars

BadrDerouiche
Contributor
Contributor

Hello there, 
I'm Developing a macro using Robot API and I would like to apply trapezoidal load on chain of bars,

For now the probleme is how to define the chain of bars.

I already looked at the API and still no idea if it's possible to do it or not. 
Any help or orientation will be appreciated.

Thanks.

Badr

BadrDerouiche_0-1687947471455.png

 

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

Stephane.kapetanovic
Mentor
Mentor
Accepted solution

hi @BadrDerouiche 

This code assumes you have already created Case1 and Bars "1to7"

 

Public Sub CreateTrapezoidalLoadsonSuperbar()
  With New RobotApplication
    With .Project.Structure
      With .Bars
        Num = .FreeNumber
       .CreateSuperBar Num, "1to7"
      End With
      With .Cases.Get(1).Records
        With .Create(I_LRT_BAR_TRAPEZOIDALE)
          .Objects.FromText CStr(Num)
          .SetValue IRobotBarTrapezoidaleRecordValues.I_BTRV_PZ2, -5
        End With
      End With
    End With
  End With
End Sub

 

Best Regards

Stephanekapetanovic_0-1687954060696.png

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to accept the solution and leave a < like !
EESignature
Message 3 of 3

BadrDerouiche
Contributor
Contributor
I missed the key word SuperBars.
This is really helpful, Thank you.