Revit 2023 API |
FamilyInstance..::..GetReferenceType Method |
FamilyInstance Class See Also |
Gets the type of the reference plane or reference line in the instance's family corresponding to the given family instance reference.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 23.0.0.0 (23.1.0.0)
Since:
2018
Syntax
C# |
---|
public FamilyInstanceReferenceType GetReferenceType( Reference reference ) |
Visual Basic |
---|
Public Function GetReferenceType ( _ reference As Reference _ ) As FamilyInstanceReferenceType |
Visual C++ |
---|
public: FamilyInstanceReferenceType GetReferenceType( Reference^ reference ) |
Parameters
- reference
- Type: Autodesk.Revit.DB..::..Reference
The family instance reference.
Return Value
Returns the type of the reference plane or reference line in the instance's family corresponding to the given family instance reference. Returns FamilyInstanceReferenceType.NotAReference if the instance reference doesn't correspond to a reference plane or line in the family.
Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.Exceptions..::..ArgumentNullException | A non-optional argument was null |