Discussion Groups

Robot Structural Analysis

Reply
Contributor
ethor
Posts: 19
Registered: ‎10-13-2011
Accepted Solution

Custom Section Shape Via API

310 Views, 5 Replies
12-07-2011 09:13 PM

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?

 

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,300
Registered: ‎04-26-2010

Re: Custom Section Shape Via API

12-07-2011 11:45 PM in reply to: ethor

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
Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,300
Registered: ‎04-26-2010

Re: Custom Section Shape Via API

12-08-2011 05:01 AM in reply to: ethor

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



Rafal Gaweda
Please use plain text.
Active Member
odysseasg
Posts: 10
Registered: ‎02-24-2011

Re: Custom Section Shape Via API

12-14-2011 05:32 AM in reply to: ethor

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

 

 

Please use plain text.
Active Member
altiscad
Posts: 9
Registered: ‎08-05-2008

Re: Custom Section Shape Via API

07-02-2013 05:20 AM in reply to: ethor

There is any API support for Section Builder module in the latest version?

Regards, Gabi

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,300
Registered: ‎04-26-2010

Re: Custom Section Shape Via API

07-02-2013 05:34 AM in reply to: altiscad

There is any API support for Section Builder module in the latest version?

 

There is no API for Section Builder

 



Rafal Gaweda
Please use plain text.