- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good night,
Hi, I am a totally noob with the API Robot and all that is related with programing, I started recently.
These days, I have had thousands of doubts but thanks to the forum and looking in the API guide I have been able to figure out it. Is any Python Guide, not for C or C+?
Now I am trying to create a new section shape but I am not able to do it, even looking in the guide, I dont have a clue how the programming.I am learning taking a look to other examples.
Could you transform this lines for a Python script?
An example ( API GUIDE):
Set Label = Robot.Project.Structure.labels.Create(I_LT_BAR_SECTION, "Beam 50*50")
Dim section As RobotBarSectionData
Set section = Label.Data
section.ShapeType = I_BSST_CONCR_BEAM_RECT
Dim concrete As RobotBarSectionConcreteData
Set concrete = section.concrete
concrete.SetValue I_BSCDV_BEAM_B, 0.5
concrete.SetValue I_BSCDV_BEAM_H, 0.5
section.CalcNonstdGeometry
Robot.Project.Structure.labels.Store Label
Robot.Project.Structure.Bars.Get(1).SetLabel I_LT_BAR_SECTION, "Beam 50*50"
The last doubt, Anyone knows how to do a variable name of the section?, I want to assign different kind of section to different bars and to use a loop.
for example:
"Beam 50*50_1", the next bar "Beam 50*50_2".... "Beam 50*50_i"
Thank you very much!!
PD: It is my first post, I hope is posted in the right place.
Solved! Go to Solution.