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: 

API - Circular Column Get Section Data

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
347 Views, 2 Replies

API - Circular Column Get Section Data

Hi folks,

 

In our structural model we have circular columns.

 

When I try to get sizes(width and height) with the following code the values that I get are zero.

 

Why would this be happening? Any ideas are much appreciated!

 

RobotSelection barSelection = robApp.Project.Structure.Selections.CreateFull(IRobotObjectType.I_OT_BAR);
IRobotCollection barCollection = (IRobotCollection)robApp.Project.Structure.Bars.GetMany(barSelection);

RobotBar RB = barCollection.Get(i);

var sectionData = RB.GetLabel(IRobotLabelType.I_LT_BAR_SECTION).Data;
sectionHeight = sectionData.GetValue(IRobotBarSectionDataValue.I_BSDV_D);
sectionWidth = sectionData.GetValue(IRobotBarSectionDataValue.I_BSDV_BF);
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

Sorry, I've mistakenly posted this question to the Revit forum. It should have been posted to the Robot forum.

Message 3 of 3
Rafal.Gaweda
in reply to: Anonymous

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

Post to forums  

Autodesk Design & Make Report