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: 

Robot-API with C#: number instead Type

0 REPLIES 0
Reply
Message 1 of 1
hvdsidf
257 Views, 0 Replies

Robot-API with C#: number instead Type

Hi,

 

Can we use the number instead of a prédifined type in C#.

For exemple, to create a simple load case, can we use 1 for IRobotCaseNature.I_CN_EXPLOATATION, etc...?

So I don't want to write like this:

 

RobotSimpleCase SimpleCase = robApp.Project.Structure.Cases.CreateSimple(cNumber, cName, IRobotCaseNature.I_CN_EXPLOATATION, IRobotCaseAnalizeType.I_CAT_STATIC_LINEAR);

 

but Something like this (as VBA):

RobotSimpleCase SimpleCase = robApp.Project.Structure.Cases.CreateSimple(cNumber, cName, 1, 0);

 

Thansk for your helps.

 

0 REPLIES 0

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

Post to forums  

Autodesk Design & Make Report