Message 1 of 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
the @ GetAnalyticalModel() method was deleted in Revit API 2024
Solved! Go to Solution.
the @ GetAnalyticalModel() method was deleted in Revit API 2024
Solved! Go to Solution.
In Revit 2024 Autodesk has changed the Workflow of Analytical Modeling. According to Manual modeling API also Changed.
Analytical Model Classes
Analytical Classes Additions
Examples of New Classes
Analytical Member
Analytical Panel
GetAnalyticalModel Method Replacement
2023 API Changes Document URL: https://thebuildingcoder.typepad.com/files/revit_platform_api_changes_and_additions_2023_08.pdf
Example to Get Analytical Model from the Element (Make sure the Analytical Model is associated with Element)
Reference Code
///Get Analytical Model from the Element Sample
///Get Complete Analytical Associations from the Model
AnalyticalToPhysicalAssociationManager analyticalToPhysical = AnalyticalToPhysicalAssociationManager.GetAnalyticalToPhysicalAssociationManager(doc);
if (analyticalToPhysical.HasAssociation(wallId))
{
AnalyticalMember analyticalModel = doc.GetElement(analyticalToPhysical.GetAssociatedElementId(wallId)) as AnalyticalMember;
}
Hope this will Help 🙂
Hello @Mohamed_Arshad
Thanks for your detailed instructions, I followed this, and I got the expected results.
Have a good day.