Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I've inserted an Adaptive Family Instance in my model using the Revit API and now need to add some annotations on a view. The adaptive family required a start and end point (P1 and P2) to insert, is there a way I can convert the element.Location prooperty to a LocationCurve in Revit 2023?
I have tried casting:
var locationCurve = element.Location as LocationCurve;
but this throws a Null Reference Exception. If anyone knows a way to do this in my version of Revit I would really appreciate the help 🙂
Thanks
Jack
Solved! Go to Solution.