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: 

generating Load cases by API

8 REPLIES 8
SOLVED
Reply
Message 1 of 9
Leader_Mohamed
1242 Views, 8 Replies

generating Load cases by API

HI everyone,

I'm tyring to generate Load cases and Load Combinaions using API and it's the first time to make an API so here's some questions

 

 1- how to assign the Self Weight to the first load case that I define ? 

 2- how to get the nubmer of previous load cases to delete them then generate new ones ?

 3-how to define a Limit state combination like 1.12DL+1.28LL+1.28W ?

 

        Dim robot As New RobotApplication

        robot.Project.Structure.Cases.Delete(1)
        robot.Project.Structure.Cases.Delete(2)
        robot.Project.Structure.Cases.Delete(3)
        robot.Project.Structure.Cases.Delete(4)
        robot.Project.Structure.Cases.Delete(5)
        robot.Project.Structure.Cases.Delete(6)
        robot.Project.Structure.Cases.Delete(7)
        robot.Project.Structure.Cases.Delete(8)
        robot.Project.Structure.Cases.Delete(9)
        robot.Project.Structure.Cases.Delete(10)

        Dim caseSW As RobotSimpleCase = robot.Project.Structure.Cases.CreateSimple(1, "Self Wei ht", IRobotCaseNature.I_CN_PERMANENT, IRobotCaseAnalizeType.I_CAT_STATIC_LINEAR)
        Dim casefloorcover As RobotSimpleCase = robot.Project.Structure.Cases.CreateSimple(2, "floor cover", IRobotCaseNature.I_CN_PERMANENT, IRobotCaseAnalizeType.I_CAT_STATIC_LINEAR)
        Dim caseWallLoad As RobotSimpleCase = robot.Project.Structure.Cases.CreateSimple(3, "Wall Loads", IRobotCaseNature.I_CN_PERMANENT, IRobotCaseAnalizeType.I_CAT_STATIC_LINEAR)
        Dim caseLiveLoad As RobotSimpleCase = robot.Project.Structure.Cases.CreateSimple(4, "Live Load", IRobotCaseNature.I_CN_EXPLOATATION, IRobotCaseAnalizeType.I_CAT_STATIC_LINEAR)
        Dim CaseWxpos As RobotSimpleCase = robot.Project.Structure.Cases.CreateSimple(5, "wind X +", IRobotCaseNature.I_CN_WIND, IRobotCaseAnalizeType.I_CAT_STATIC_LINEAR)
        Dim caseWxNeg As RobotSimpleCase = robot.Project.Structure.Cases.CreateSimple(6, "wind X -", IRobotCaseNature.I_CN_WIND, IRobotCaseAnalizeType.I_CAT_STATIC_LINEAR)
        Dim caseWYpos As RobotSimpleCase = robot.Project.Structure.Cases.CreateSimple(7, "wind Y +", IRobotCaseNature.I_CN_WIND, IRobotCaseAnalizeType.I_CAT_STATIC_LINEAR)
        Dim caseWYneg As RobotSimpleCase = robot.Project.Structure.Cases.CreateSimple(8, "wind Y-", IRobotCaseNature.I_CN_WIND, IRobotCaseAnalizeType.I_CAT_STATIC_LINEAR)

 thanks in advance.

8 REPLIES 8
Message 2 of 9

another question
is IRobotCaseNature.I_CN_EXPLOATATION means Live Load case ?
Message 3 of 9


is IRobotCaseNature.I_CN_EXPLOATATION means Live Load case ?

Yes.



Rafal Gaweda
Message 4 of 9

Message 5 of 9

 

 1- how to assign the Self Weight to the first load case that I define ? 

 

Example:

 

Dim RecordNew As RobotLoadRecord
                       
                Set RecordNew = caseSW.Records.Create(I_LRT_DEAD)
                
                RecordNew.SetValue I_DRV_COEFF, 1.0
                RecordNew.SetValue I_DRV_ENTIRE_STRUCTURE, 1
                RecordNew.SetValue I_DRV_Z, -1

 

 

 

 

 



Rafal Gaweda
Message 6 of 9


 2- how to get the nubmer of previous load cases to delete them then generate new ones ?

 

Dim Rselection As RobotSelection
Set Rselection = robot.Project.Structure.Selections.CreatePredefined(I_PS_CASE_SIMPLE_CASES)
robot.Project.Structure.Cases.DeleteMany Rselection

 

 

 



Rafal Gaweda
Message 7 of 9
teixeiranh
in reply to: Rafal.Gaweda

Hi Rafa! How do I delete all load records from a sort of load cases, keeping of course the load cases free of any record (via API)?

 

For example, I want to delete all load records from cases 2 to 5.

 

Thank you!

--------------------------------------------------------------------------------------------------------------------------------
“The most powerful force on the universe is compound interest.”
Subscribe me on Youtube:
https://www.youtube.com/channel/UC6G8OOp318Z1MFzJj5T8uWw
Message 8 of 9
1234eddie
in reply to: teixeiranh
Message 9 of 9
Rafal.Gaweda
in reply to: teixeiranh

Hi @teixeiranh 

 

Either You have to delete records in loop or delete load cases and create them again.

 



Rafal Gaweda

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

Post to forums