BuildingCoder.CmdDimensionInstanceOrigin.GetFamilyInstancePointReference C# (CSharp) Method

GetFamilyInstancePointReference() static private method

Retrieve the given family instance's non-visible geometry point reference.
static private GetFamilyInstancePointReference ( FamilyInstance fi ) : System.Reference
fi FamilyInstance
return System.Reference
        static Reference GetFamilyInstancePointReference(
            FamilyInstance fi)
        {
            return fi.get_Geometry( _opt )
            .OfType<Point>()
            .Select<Point, Reference>( x => x.Reference )
            .FirstOrDefault();
        }