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?
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
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,
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.