Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public static Point PointReference(Element familyinstance)
{
FamilyInstance fam = (FamilyInstance)familyinstance.InternalElement;
Options options = new Options();
options.ComputeReferences = true;
options.IncludeNonVisibleObjects = true;
var result = fam.get_Geometry(options)
.OfType<Autodesk.Revit.DB.Point>()
.FirstOrDefault();
if (result == null) return null;
return result.Coord.ToPoint();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment