Gets the default location of the spatial element.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public XYZ GetDefaultLocation()
Return Value
XYZThe default location of the spatial element.
Exceptions
| Exception | Condition |
|---|---|
| InvalidOperationException | The spatial element does not have a valid default location. |
