Column Analytical Nodes

How do I get the analytical node locations (column start/end points) of the structural column in the model?


Here’s an example:

import clr
clr.AddReference('RevitAPI')
import Autodesk
from Autodesk.Revit.DB import *

clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.GeometryConversion)

clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument

elem = UnwrapElement(IN[0])

OUT = [[e.GetAnalyticalModel().GetCurve().GetEndPoint(r).ToPoint() for r in range(2)]for e in elem]
1 Like