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: 

setting gamma using the API

3 REPLIES 3
Reply
Message 1 of 4
ethor
471 Views, 3 Replies

setting gamma using the API

Can  you please tell me where i can find an example of settilng gamma for a bar created using the API? Lets say i want to have the bar rotated 30 degrees how would i go about that?

3 REPLIES 3
Message 2 of 4
Rafal.Gaweda
in reply to: ethor

Dim Bar as RobotBar

.......

Bar.Gamma = 90

 

 

 

http://forums.autodesk.com/t5/Autodesk-Robot-Structural/About-the-SDK-application-for-Optimization-u... -> Robot Api.pdf -> page 579, 581



Rafal Gaweda
Message 3 of 4
ve_75
in reply to: Rafal.Gaweda

Hi,

 

I tried to change the gamma value as you said, but i didn't manage to...

Is it possible to get a more complete part of code please?

 

Kind regards,

 

 

Message 4 of 4
Artur.Kosakowski
in reply to: ve_75

          RobotBar bar = r.Project.Structure.Bars.Get(1) as RobotBar;

          bar.Gamma = 30;

 

-----

 

          RobotBarSection sec = bar.GetLabel(IRobotLabelType.I_LT_BAR_SECTION) as RobotBarSection;

          RobotBarSectionData sd = sec.Data;

          sd.SetValue(IRobotBarSectionDataValue.I_BSDV_GAMMA, 30);

          r.Project.Structure.Labels.Store(sec);

 

If you find your post answered press the Accept as Solution button please. This will help other users to find solutions much faster. Thank you.



Artur Kosakowski

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

Post to forums  

Autodesk Design & Make Report