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 - Parametric Section BOX-III [BUG?]

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
338 Views, 1 Reply

API - Parametric Section BOX-III [BUG?]

I have been trying to create parametric section BOX-III (picture below) from API. Other box sections (BOX I and II) work fine, but version 2015 added support for BOX III and it does not seem to work.

 

 boxIII.PNG

 

My test code is is here:

 

            IRobotApplication robot = new RobotApplication();

            IRobotLabel l = robot.Project.Structure.Labels.Create(IRobotLabelType.I_LT_BAR_SECTION, "WQ250-6-40X290-20X600");

            IRobotBarSectionData d = l.Data;
            d.Type = IRobotBarSectionType.I_BST_NS_BOX_3;
            d.ShapeType = IRobotBarSectionShapeType.I_BSST_USER_BOX_3;
            IRobotBarSectionNonstdData sectionData = d.CreateNonstd(0);
            
            double h = 250;
            double s = 6;
            double t1 = 40;
            double b1 = 290;
            double t2 = 20;
            double b2 = 600;

            double B = b2;
            double B1 = b1;
            double B2 = b1 + 2 * s;
            double H = h - t1;
            double TF = t2;
            double TF2 = t1;
            double TW = s;

            sectionData.SetValue(IRobotBarSectionNonstdDataValue.I_BSNDV_BOX_3_B, B);
            sectionData.SetValue(IRobotBarSectionNonstdDataValue.I_BSNDV_BOX_3_B1, B1);
            sectionData.SetValue(IRobotBarSectionNonstdDataValue.I_BSNDV_BOX_3_B2, B2);
            sectionData.SetValue(IRobotBarSectionNonstdDataValue.I_BSNDV_BOX_3_H, H);
            sectionData.SetValue(IRobotBarSectionNonstdDataValue.I_BSNDV_BOX_3_TF, TF);
            sectionData.SetValue(IRobotBarSectionNonstdDataValue.I_BSNDV_BOX_3_TF2, TF2);
            sectionData.SetValue(IRobotBarSectionNonstdDataValue.I_BSNDV_BOX_3_TW, TW);
            d.CalcNonstdGeometry();

            robot.Project.Structure.Labels.Store(l);

 

1 REPLY 1
Message 2 of 2
Rafal.Gaweda
in reply to: Anonymous

Uups, you are right.
Must be corrected.Thanks for reporting.


Rafal Gaweda

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

Post to forums  

Autodesk Design & Make Report