- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everyone,
I am trying to annotate structural columns by creating aligned dimensions between their centers. However, I’m facing an issue when attempting to retrieve the reference for the "Center (Left/Right)" using the GetReferenceByName method. It doesn't always work as expected for structural columns.
Here's a simplified explanation of my approach:
- I am working with a list of structural columns (FamilyInstance objects).
- For each column, I try to get its "Center (Left/Right)" reference like this:
csharp Example :Reference centerReference = pile.GetReferenceByName("Center (Left/Right)"); - Unfortunately, this sometimes returns with different results than what I want, which stops me from continuing with my dimension creation.
My Question:
Is there a reliable way to get the center reference ( the center point) of a structural column in the Revit API? If not through GetReferenceByName, is there another method or approach I can use to determine the geometric center or reference of the column as a reference for annotation ?
Any guidance or alternative suggestions would be greatly appreciated!
Thank you in advance for your help!
Solved! Go to Solution.