How would one enter a custom cross section via the api? For example I have an i beam with a height of 10, a width of 5, a flange thickness of 1 and a web thickness of 1. I have found IRobotBarSectionSpecialDataValue, but im not sure what dimensions the enum values relate to. Would i have to create a database to hold this section? What is the method for use of IRobotBarSectionSpecialData? Can i import a DXF of the shape as i can using the interface? Can you please provide a short example if it is not to much trouble?
Solved! Go to Solution.
Solved by Rafal.Gaweda. Go to Solution.
Can i import a DXF of the shape as i can using the interface?
There is no API in Section Builder module so this approach will not work.
example code:
Dim RLabel As RobotLabel
Dim RLabelData As RobotBarSectionData
Dim RLabelNSData As RobotBarSectionNonstdData
Set RLabel = RobApp.Project.Structure.Labels.Create(I_LT_BAR_SECTION, "my_section")
Set RLabelData = RLabel.Data
Set RLabelNSData = RLabelData.CreateNonstd(0)
RLabelData.Type = I_BST_NS_I
RLabelData.ShapeType = I_BSST_USER_I_BISYM
RLabelNSData.SetValue I_BSNDV_I_B, 0.2
RLabelNSData.SetValue I_BSNDV_I_H, 0.4
RLabelNSData.SetValue I_BSNDV_I_TF, 0.01
RLabelNSData.SetValue I_BSNDV_I_TW, 0.01
RobApp.Project.Structure.Labels.Store RLabel
Ethor,
maybe this can be proven handy. It's an excel spreadsheet i put together some time ago (using the SDK documentation) to generate custom I-sections. http://odysseasgeorgiou.com/Components/RobotSections.xlsm
There is any API support for Section Builder module in the latest version?
There is no API for Section Builder
Can't find what you're looking for? Ask the community or share your knowledge.