Can I get to the analytical element of a beam (structural framing) by referring to the beam

Can I get to the analytical element of a beam (structural framing) by referring to the beam

HadiMoosavi
Enthusiast Enthusiast
666 Views
4 Replies
Message 1 of 5

Can I get to the analytical element of a beam (structural framing) by referring to the beam

HadiMoosavi
Enthusiast
Enthusiast

Hello All,
Is there a way to get to the analytical element of a beam from the beam itself? I mean if I have an object of type "StructuralFraming", can I get its analytical element?

Accepted solutions (3)
667 Views
4 Replies
Replies (4)
Message 2 of 5

longt61
Advocate
Advocate
Accepted solution

Of course, as long as you have the beam, just call the GetAnalyticalModel() method and that 's it.

Take a look at Revit lookup for a beam here:

longt61_0-1661595484079.png

 

Message 3 of 5

RPTHOMAS108
Mentor
Mentor
Accepted solution

Depends what version of Revit you are using.

 

For 2023 and onwards you would have to use the AnalyticalToPhysicalAssociationManager within the Structure namespace and that would only report items where the association has been made.

 

So if you wanted to get the analytical stick of a framing member and one didn't exist you could in theory create one and associate it before returning the stick. Although the workflow in 2023 and on currently is to periodically generate the analytical model from physical using a Dynamo script.

 

The analytical model isn't automatically generated and maintained in the background anymore.

Message 4 of 5

longt61
Advocate
Advocate

Thanks for sharing knowledge. I still work with Revit 2019 - 2022 and do not know this. It could be a huge help for me in the future.

Message 5 of 5

jeremy_tammik
Alumni
Alumni
Accepted solution

Here is one possible workaround suggestion for the new analytical API in Revit 2023:

 

https://thebuildingcoder.typepad.com/blog/2022/04/tbc-samples-2023-and-the-new-structural-api.html#5

  

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