Autodesk Robot Structural Analysis
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Custom Section Shape Via API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: Custom Section Shape Via API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.

Rafal Gaweda
Product Support
Autodesk, Inc.
Re: Custom Section Shape Via API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
example code:
Dim RLabel As RobotLabel
Dim RLabelData As RobotBarSectionData
Dim RLabelNSData As RobotBarSectionNonstdData
Set RLabel = RobApp.Project.Structure.Labels.Create(I_LT_BAR_SE
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

Rafal Gaweda
Product Support
Autodesk, Inc.
Re: Custom Section Shape Via API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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/RobotSectio
