Generating RC column design cases with API - problem with reinforcement def.

Generating RC column design cases with API - problem with reinforcement def.

Anonymous
Not applicable
948 Views
4 Replies
Message 1 of 5

Generating RC column design cases with API - problem with reinforcement def.

Anonymous
Not applicable

Hi All,

 

I am trying to automatically generate column elements in RC design module. The internal forces have been calculated by other software, this time I am keen to use Robot for automated column rebar verification and report generation. Currently I am using the latest Robot available in company - 2016. However, I can downgrade if that helps.

 

I read this post: http://forums.autodesk.com/t5/forums/forumtopicprintpage/board-id/351/message-id/25090/print-single-...

It is kind-of what I want to do, I just feel that using ROBarShapeDb library may be an overkill if I only want to let Robot know my straight longitudinal bars and transverse rebar. Only thing I need is calculation note - no need for fancy detailing.

 

So below is my C# code. I am just trying to add one longitudinal bar just to test it.

I don't receive any error, but neither the bar appear. My job preferences are set to BS bar shapes, thus "00" should work as straight bar.

What am I doing wrong?

 

             iapp.Visible = 1;
            iapp.Interactive = 0;
            //iapp.Project.Open(Filename);
            iapp.Project.New(IRobotProjectType.I_PT_CONCRETE_COLUMN);

           
             ColumnComponent = iapp.Project.ComponentMngr.Create(IRobotProjectComponentType.I_PCT_COLUMN, "supercolumn", "1");
             RCcolumn = ColumnComponent.Data;

            //geometry
             RCcolumn.Geometry.Section = IRConcrColumnSectionType.I_CCT_COLUMN_SEC_R;
             RCcolumn.Geometry.set_Dim(IRConcrColumnDimensionType.I_CCD_COLUMN_DIM_A, 1); // b=
             RCcolumn.Geometry.set_Dim(IRConcrColumnDimensionType.I_CCD_COLUMN_DIM_B, 0.25); // h=
             RCcolumn.Geometry.set_Dim(IRConcrColumnDimensionType.I_CCD_COLUMN_DIM_EPD, 0.2); // hs= , slab thickness
             RCcolumn.Geometry.set_Dim(IRConcrColumnDimensionType.I_CCD_COLUMN_DIM_HSD, 2.85); // =h.c-h.s             
             RCcolumn.Geometry.set_Dim(IRConcrColumnDimensionType.I_CCD_COLUMN_DIM_HSP, 2.85); // =h.c-h.b            
             RCcolumn.Geometry.set_Dim(IRConcrColumnDimensionType.I_CCD_COLUMN_DIM_HSP_X, 2.85); // =h.c-h.b one direction            
            RCcolumn.Geometry.set_Dim(IRConcrColumnDimensionType.I_CCD_COLUMN_DIM_HSP_Y, 2.85); // =h.c-h.b second direction

            //materials
            RCcolumn.Concrete.CharacteristicStrength = 40000000;

            //cover
            double cover = 0.05;
            RCcolumn.CalculationOptions.Cover = cover;
            
            //loads
            IRConcrColumnLoad columnLoads = RCcolumn.Loads.Add();
            columnLoads.CaseName = "firstCase";
            columnLoads.CaseType = IRConcrColumnLoadCaseType.I_RCL_LOAD_CASE_DESIGN_ACC;
            columnLoads.N = 4000000;

            //rebar
            double diameterLong = 0.032;
            IRConcrReinforcingBar bar = RCcolumn.Reinforcement.Bars.Add("00", IRConcrBarType.I_CBT_BAR_TYPE_LON_MAIN, IRConcrBarSubtype.I_CBS_BAR_SUBTYPE_DOWN, diameterLong);
            
            
            bar.SteelType = IRConcrSteelType.I_CST_STEEL_TYPE_LONG;
            bar.SetDirections(0, 0, 0, -1, 0, 0);
           bar.Position.X = 0.05;
           bar.Position.Y = 0.05;
           bar.Position.Z = 0.05;
           


            //buckling parameters
            RCcolumn.BucklingModel.IsSwayY = false;
            RCcolumn.BucklingModel.IsSwayZ = false;
            RCcolumn.BucklingModel.IsDirectionYOff = true;
            RCcolumn.BucklingModel.IsDirectionZOff = true;
            RCcolumn.BucklingModel.KY = 0.85;
            RCcolumn.BucklingModel.KZ = 0.85;

            RCcolumn.Save();


            iapp.Interactive = 1;

 

Regards,

Marcis

0 Likes
949 Views
4 Replies
Replies (4)
Message 2 of 5

Rafal.Gaweda
Autodesk Support
Autodesk Support
I have personally never played with reinforcement by API but as far as got to know your code will not work.
Rebars must be defined by RoBarShape


Rafal Gaweda
0 Likes
Message 3 of 5

Anonymous
Not applicable

Rafal,

 

Thanks for update. I'll let you know the progress - hopefully I will manage to do this with RoBarShape.

 

Regards,

Marcis

0 Likes
Message 4 of 5

Anonymous
Not applicable

I just returned to solving this problem. And realized that RoBarShape library seems not to be included in default Robot 2016 installation.. Where is it hiding?

0 Likes
Message 5 of 5

Rafal.Gaweda
Autodesk Support
Autodesk Support
EXample path (depending on version you use change 2016 number)

"c:\Program Files\Common Files\Autodesk Shared\Structural\COM\2016\x64\ROReinf\ROBarShapeDb.dll"


Rafal Gaweda
0 Likes