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
Generate EC wind loads by API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hello,
I am trying to understand how to generate Eurocodes wind loads by API.
This how I proceed:
First I configure the project prefs
ProjectPrefs.SetActiveCode(IRobotCodeType.I_CT_SNO
Then I generate the loads
Dim SWCodeParams As RobotSWCodeECParams
Dim SWCombEngine As RobotSnowWindEngine
SWCombEngine = str.Cases.SnowWindEngine
SWCodeParams = SWCombEngine.CodeParams
SWCodeParams.StructureAge = 2
SWCombEngine.Params.TotalDepth = 15
SWCombEngine.Params.BaySpacing = 5
SWCombEngine.Generate()
I don't see how to configure SWCombEngine with SWCodeParams.
Your help would be very appreciated. Thanks in advance.
Francois
Re: Generate EC wind loads by API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Code names are listed in this file:
"c:\Users\All Users\Autodesk\Structural\Common Data\2013\Data\Other\norms.xls"
so correct line should be like that:
ProjectPrefs.SetActiveCode(IRobotCodeType.I_CT_SNOW_WIND_LOADS, "EC1 - French NAD")

Rafal Gaweda
Product Support
Autodesk, Inc.
Re: Generate EC wind loads by API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Ok for that but it does not change anything.
I would like to change programmatically the parameters of eurocodes wind and snow loads genereation.
If I do
Dim SWCombEngine As RobotSnowWindEngine
SWCombEngine = str.Cases.SnowWindEngine
SWCombEngine.CodeParams.WindCd = 1.5
MsgBox("WindCd " + SWCombEngine.CodeParams.WindCd.ToString)
WindCd value still remains unchanged to 1.
Maybe this cannot be done by API.
Regards,
Francois
Re: Generate EC wind loads by API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Unfortunately you are right. Due to bug in API you can not set Params, Codeparams for SW generator.
You can only get them. I will register it for correction.

Rafal Gaweda
Product Support
Autodesk, Inc.
Re: Generate EC wind loads by API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Great, I was struggling since 2 days on it to find a solution. Do you think it can be implemented in the next update of Robot?
Again thanks for your help, I think I will have more questions in the future.
Francois
Re: Generate EC wind loads by API
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
workaround : RobApp.Project.Structure.Cases.SnowWindEngine.Sh
then enter these values manually in the window

Rafal Gaweda
Product Support
Autodesk, Inc.
