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.
Solved! Go to Solution.
Solved by Rafal.Gaweda. Go to Solution.
is IRobotCaseNature.I_CN_EXPLOATATION means Live Load case ?
Yes.
3-how to define a Limit state combination like 1.12DL+1.28LL+1.28W ?
Examples:
http://forums.autodesk.com/t5/Robot-Structural-Analysis/API-Buckling-combination/td-p/4331271
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
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
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!
Hi @teixeiranh
Either You have to delete records in loop or delete load cases and create them again.