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
VBA cases and combinatio ns
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Hi
I already create cases in my model and I would like to add cases with VBA to this one.
3 : equipements
I only know this command but it create new cases.
Set cas = robapp.Project.Structure.Cases.CreateSimple(robapp
casdecharge, typecharge, I_CAT_STATIC_LINEAR)
Can you give the command to select cases in order to define new loads ?
I'd like also to create combinations like ?
type : linear
nature of case ELS
name COMB1
number 101
0.5 * 1 + 1 * 2 + 6 * 3
How can I make it ?
Solved! Go to Solution.
Re: VBA cases and combinatio ns
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Code for creating combination
Dim Loads As RobotCaseServer
Set Loads = RobApp.Project.Structure.Cases
Dim cmb As RobotCaseCombination
Set cmb = Loads.CreateCombination(110, "COMB1", I_CBT_ALS, I_CN_EXPLOATATION, I_CAT_COMB)
cmb.CaseFactors.New 1, 0.3
cmb.CaseFactors.New 2, 1
cmb.CaseFactors.New 6, 1

Rafal Gaweda
Product Support
Autodesk, Inc.
Re: VBA cases and combinatio ns
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Seleting case for eg adding loads:
Dim Loads As RobotCaseServer
Set Loads = RobApp.Project.Structure.Cases
Dim RCase As RobotSimpleCas
Set RCase = Loads.Get(3) '/ where 3 is real case number
then create and set records for RCase

Rafal Gaweda
Product Support
Autodesk, Inc.

