API Accessing Member Type Definitions in Robot Structural Analysis with Excel VBA: Seeking Guidance

vidas.zaltauskas
Explorer

API Accessing Member Type Definitions in Robot Structural Analysis with Excel VBA: Seeking Guidance

vidas.zaltauskas
Explorer
Explorer

Hello,

I am seeking assistance in extracting specific information related to "Member type definitions" for selected members in Robot Structural Analysis. This involves properties such as member buckling length, buckling coefficient, lateral buckling, and more. If there is anyone with experience in this area who could provide guidance, your assistance would be greatly appreciated.

Thank you for your help.

0 Likes
Reply
Accepted solutions (1)
786 Views
6 Replies
Replies (6)

Stephane.kapetanovic
Advisor
Advisor

hi @vidas.zaltauskas 

 

You can find some examples of settings here

[API] Define Membertype Adjoin Params 

[API] Steel Code Params Buckling Diagram 

Steel design report 

Steel design - CodeParams

Dynamic Member type creation with API 

 

you can get help through the approved solutions on the forum, for example by searching for API. 

 

Note that you also have files, getting started guide, Robot API SteelDesign.pdf and example delivered with the SDK located in the installation subdirectory ...\SDK.

 

You can also find information such as the API tutorial, videos (12) and useful addins already developed and the app store.

Best Regards

0 Likes

vidas.zaltauskas
Explorer
Explorer

Thank you for all the information @Stephane.kapetanovic . I've been through numerous tutorials and forum threads on this topic, and they all seem to focus on assigning parameters to elements. What I really need is to retrieve these parameters. I'm still quite new to VBA, and I can only manage to get 'Bar' parameters like name and length. I would greatly appreciate it if you could provide a brief example code on how to obtain the 'SteelCodeTypeDefinition' parameter. Thank you very much.

0 Likes

Stephane.kapetanovic
Advisor
Advisor
Accepted solution

Hi @vidas.zaltauskas

I'll answer you more briefly. 

The parameters are saved in labels not in bars as you can see in the examples. From the bars, you can apply or read them with the set and get label methods.

Best regards 

Dim Bars As RobotBarServer, Bar As RobotBar
Set Bars = RobApp.Project.Structure.Bars
Set Bar = Bars.Get(1)
Lenght = Bar.Length
  
Dim Label As RobotLabel, LabelData As IRDimMembDefData, mParams As IRDimMembParamsE32
Set Label = Bar.GetLabel(I_LT_MEMBER_TYPE)
Set LabelData = Label.Data
Set mParams = LabelData.CodeParams
With mParams
  LfY = Lenght * .BuckLengthCoeffY
  Lfz = Lenght * .BuckLengthCoeffZ
End With
0 Likes

vidas.zaltauskas
Explorer
Explorer

I've successfully achieved my goal, and I owe it all to your help. Thank you so much! By the way, could you kindly share the names of the parameters in the attached image? I'm having a bit of trouble finding them.

vidas.zaltauskas
Explorer
Explorer
Never mind, I managed to do it 🙂

carlos_scm12
Community Visitor
Community Visitor

"I've successfully achieved my goal, and I owe it all to your help. Thank you so much! By the way, could you kindly share the names of the parameters in the attached image? I'm having a bit of trouble finding them."

 

Hello,

could you share what are the names of the parameters for these ones?

 

Thank you

0 Likes