Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

VBA cases and combinations

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
mateaus
831 Views, 8 Replies

VBA cases and combinations

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.Project.Structure.Cases.FreeNumber, _

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 ?

8 REPLIES 8
Message 2 of 9
Rafal.Gaweda
in reply to: mateaus

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
Message 3 of 9
Rafal.Gaweda
in reply to: Rafal.Gaweda

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
Message 4 of 9
bensalahsayf.edd
in reply to: mateaus

Hi Rafal Gaweda, 

How to use this combination with vba and much thank  

Capture.PNG

Message 5 of 9

Hi Rafal Gaweda

How to use this combination with VBA and much thank ...Capture.PNGnd much thank 

Tags (1)
Message 6 of 9

Message 7 of 9

Much Thank Rafal Gaweda

but how to use the group with VBA Capture.PNG

' G2 = CASE 2 + CASE 3
' Q1 = CASE 4 + CASE 5
' Q2 = CASE 6 + .... + CASE 14

Tags (1)
Message 8 of 9
bensalahsayf.edd
in reply to: mateaus

How to create relation with group in VBA and thank 

Message 9 of 9

Hi Rafal Gaweda,

 

Plz how to use the relation between 2 groups with code VBA and much thank

 

Example : 

G1 And G2

Q1 Or Q2 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report