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.
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.
Can you create a trapezoidal load manually in the UI? How?
Good. Now, if you so that and then analyse your mode with RevitLookup, what do you see?
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.
I see property IsUniform=False, but I can't do that programmatically because the property is Read Only
Thank you very much. I had the same thought, but I changed the 1st vector and it did not give the desired effect.
One more question. It turned out that the end of the trapezoid load cannot be zero. How can this be overcome?