- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I am Alejandro, a structural analyst of lightweight façade structures. A few weeks ago I started to use the Robot API to automate the creation of simple models.
I have problems when creating a trapezoidal load defined by more than two points (three or four). I write the code I am using:
Dim CaseWind As RobotSimpleCase
Set CaseWind = s.Cases.CreateSimple(3, "WIND_LOAD1", I_CN_WIND, I_CAT_STATIC_LINEAR)
Uniform = CaseWind.Records.New(I_LLT_BEAM_LOAD_TRAPEZOIDAL3)
Set LoadRecord = CaseWind.Records.Get(Uniform)
LoadRecord.SetValue I_BTRV_PX1, 0
LoadRecord.SetValue I_BTRV_PX2, 0
LoadRecord.SetValue I_BTRV_PX3, 0
LoadRecord.SetValue I_BTRV_PY1, 0
LoadRecord.SetValue I_BTRV_PY2, 1000
LoadRecord.SetValue I_BTRV_PY3, 0
LoadRecord.SetValue I_BTRV_PZ1, 0
LoadRecord.SetValue I_BTRV_PZ2, 0
LoadRecord.SetValue I_BTRV_PZ3, 0
LoadRecord.SetValue I_BTRV_X1, 0
LoadRecord.SetValue I_BTRV_X2, (longitudTrav - A)
LoadRecord.SetValue I_BTRV_X3, A
I have read the API documentation but have not been able to find the answer.
Thank you very much in advance.
Solved! Go to Solution.