The physical location of the element.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 26.4.0.0 (26.4.0.0)
Syntax
C#
public XYZ Point { get; set; }Property Value
XYZ
Remarks
Setting this property is not supported for
some elements supporting LocationPoints, such as SpotDimensions.
Example
C#
void LocationMove(FamilyInstance column)
{
LocationPoint columnPoint = column.Location as LocationPoint;
if (null != columnPoint)
{
XYZ newLocation = new XYZ(10, 20, 0);
columnPoint.Point = newLocation;
}
}
VB
Private Sub LocationMove(column As FamilyInstance)
Dim columnPoint As LocationPoint = TryCast(column.Location, LocationPoint)
If columnPoint IsNot Nothing Then
Dim newLocation As New XYZ(10, 20, 0)
columnPoint.Point = newLocation
End If
End Sub
See Also
Reference