A simple question re Modellines

dsmith
Advocate
Advocate

A simple question re Modellines

dsmith
Advocate
Advocate

Hi

 

m trying to modify the start and end of a Modelline I created, but I cannot find out how this can be done. I know I can recreate it but I need to maintain the ID as it is uses elswhere

 

Any pointer would be great

 

Thank you in Advance

0 Likes
Reply
270 Views
2 Replies
Replies (2)

smarente1
Enthusiast
Enthusiast

The endpoint property only has a get method: 

 

https://www.revitapidocs.com/2022/fa84492f-aaea-004c-2443-d02b6ca83c1d.htm

 

And the length is read only and cannot be set. 

 

Looks like you can only recreate the model line and store the old element Id in an associative array.    

0 Likes

mhannonQ65N2
Advocate
Advocate

Try using the SetGeometryCurve method. Also, a LineSegment is not a model line.

0 Likes