Trapezoidal load

Trapezoidal load

GBIL1196
Contributor Contributor
433 Views
9 Replies
Message 1 of 10

Trapezoidal load

GBIL1196
Contributor
Contributor

How to create a trapezoidal load programmatically?

0 Likes
Accepted solutions (1)
434 Views
9 Replies
Replies (9)
Message 2 of 10

jeremy_tammik
Alumni
Alumni

How do you achieve this manually in the UI? You need to know that first, and possibly research that unless you already know. Once that is clear, you can create a sample model manually and analyse that using RevitLookup and other database exploration tools to discover what elements are required and how they interact, their properties and relationships.

    

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 10

GBIL1196
Contributor
Contributor

I can create a uniformly distributed load using the method LineLoad.Create(doc, point1, point2, load, moment, null, null) or LineLoad.Create(doc, analyticId, Line.CreateBound(p1, p2), load, moment, null) for Revit 2024. But property IsUniform is Read Only and I don't know how to change it to create a trapezoidal load.

0 Likes
Message 4 of 10

jeremy_tammik
Alumni
Alumni

Can you create a trapezoidal load manually in the UI? How?

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 5 of 10

GBIL1196
Contributor
Contributor
In the UI I can change property Uniform Load and set the values of forces
and moments at the second point
0 Likes
Message 6 of 10

jeremy_tammik
Alumni
Alumni

Good. Now, if you so that and then analyse your mode with RevitLookup, what do you see?

   

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 7 of 10

turbatc
Autodesk
Autodesk
Accepted solution

Hi @GBIL1196 , Line Load has the second forces ForceVector2 and MomentVector2 in the API, when you change those values (different than ForceVector1/MomentVector1) the IsUniform property become unchecked.



Constantin T
Principal Engineer
0 Likes
Message 8 of 10

GBIL1196
Contributor
Contributor

I see property IsUniform=False, but I can't do that programmatically because the property is Read Only

0 Likes
Message 9 of 10

GBIL1196
Contributor
Contributor

Thank you very much. I had the same thought, but I changed the 1st vector and it did not give the desired effect.

0 Likes
Message 10 of 10

GBIL1196
Contributor
Contributor

One more question. It turned out that the end of the trapezoid load cannot be zero. How can this be overcome?

0 Likes