TagHeadPosition Property


The position of the tag's head.

Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since:  2017

Syntax

C#
public XYZ TagHeadPosition { get; set; }
Visual Basic
Public Property TagHeadPosition As XYZ
	Get
	Set
Visual C++
public:
property XYZ^ TagHeadPosition {
	XYZ^ get ();
	void set (XYZ^ value);
}

Remarks

Returns the end point of the tag leader. Leader end point must be located inside of a room, space or an area. Use Room.IsPointInRoom or Space.IsPointInSpace method to check whether the leaderEnd is located in the host element or not.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException When setting this property: Head position of the tag with no leader could not be located outside of the host element.
Autodesk.Revit.ExceptionsArgumentNullException When setting this property: A non-optional argument was null
Autodesk.Revit.ExceptionsInvalidOperationException When setting this property: SpatialElementTag is pinned. -or- When setting this property: SpatialElementTag is orphaned.

See Also

ArchiLabs Desktop

Put AI to work inside Revit.

Give Desktop your instructions and project files to build Revit families, update model elements, and create views and schedules. Works directly in Revit and AutoCAD.

Explore Desktop →