Comentario
02-10-2021
12:45 PM
02-10-2021
12:45 PM
I happen to need this functionality too, but I found two ways to get a centroid in the Revit API.
Autodesk.Revit.DB.Solid has a ComputeCentroid method.
Autodesk.Revit.DB.Analysis.PolyLoop has a Centroid property.
Hopefully one of these methods work for you. I will be trying them out myself shortly.