Where did AnalyticalModel::GetCurves go in 2023?

Where did AnalyticalModel::GetCurves go in 2023?

powerstrong
Contributor Contributor
364 Views
3 Replies
Message 1 of 4

Where did AnalyticalModel::GetCurves go in 2023?

powerstrong
Contributor
Contributor

Hi, I'm converting my Revit addin 2022 to 2023.

 

In previous version, we used AnalyticalModel::GetCurves() to get all curves from 2D members.

Now I can only find AnalyticalElement::GetCurve(), which return only 1 curve.

If I have a 2D AnalyticalElement, how can I get all curves in 2023?

 

this is GetCurves() document of 2022 :

https://www.revitapidocs.com/2021.1/da25ee1c-4685-20e6-728e-e5c92141edb0.htm

 

 

365 Views
3 Replies
Replies (3)
Message 2 of 4

jeremy_tammik
Alumni
Alumni

Yes, the structural API and associations changed completely between Revit 2022 and Revit 2023:

 

 

I assume that the way to handle the new approach in your add-in will depend to a large extent on how you handle the difference in the manual end-user interface.

   

Please also refer to some other recent threads on related topics, e.g.:

  

https://forums.autodesk.com/t5/revit-api-forum/how-to-get-wall-or-floor-or-familyinstance-from-an/m-...

  

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

powerstrong
Contributor
Contributor

@jeremy_tammik That's me..

0 Likes
Message 4 of 4

jeremy_tammik
Alumni
Alumni

Oh yes, so it is. Well, shall I ask the development team for you? Would you like to submit a complete minimal reproducible case to describe the problem exactly? 

  

https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b

  

They like to see exactly what the situation and your code looks like. Also, an image might help. Thank you.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open