Generating RC column design cases with API - problem with reinforcement def.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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
