API - Difference between methods

API - Difference between methods

cool.stuff
Collaborator Collaborator
701 Views
2 Replies
Message 1 of 3

API - Difference between methods

cool.stuff
Collaborator
Collaborator

Hi!

 

I've been reading about API methods to get bar forces and I have not been able to find the explanation anywhere.

What is the difference, in practice, between bar forces and BarForceServer.ValueEx and BarForceServer.Value?

 

Many thanks in advance

0 Likes
Accepted solutions (1)
702 Views
2 Replies
  • API
Replies (2)
Message 2 of 3

Stephane.kapetanovic
Mentor
Mentor
Accepted solution

hi @cool.stuff 

'ValueEx' is used to extract forces in case of code combinations or moving loads and 'Value' in case of simple cases or manual combinations

Dim BFD as IRobotBarForceData
Dim bar_num As long, case_num As long, case_cmpnt As long, point As double
Set BarForceServer = RobApp.Project.Structure.Results.Bars.Forces
With BarForceServer
  set BFD  = .ValueEx(bar_num, case_num, case_cmpnt, point) ' Code combination
  set BFD  = .Value(Value(bar_num, case_num, point) ' Others
End with

see getting internal forces from RSA to XL (API) and 866-867 of Robot Object Model pdf file.

Best Regards

Stéphane Kapetanovic

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

cool.stuff
Collaborator
Collaborator

Many thanks for the clear explanation 🙂

Best regards