Elbow Property


Elbow point of the Leader.

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

Syntax

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

Remarks

This is the mid-point of the leader and its purpose depends on the shape of the leader. For arc-shaped leaders it defines the radius of the arc. For a kinked leader it divides the leader line and shoulder line.

Note that straight-line leaders do not have an actual elbow; however, the value can still be obtained, although it will always equal the current anchor point. Consequently, an elbow point can be set even on a straight-line leader, but doing so will automatically change the leader's shape property.

It is allowed to set the Elbow point of a kinked leader to equal either the end point or anchor point of the leader. Doing so will effectively change the leader's shape to a straight line. However, the elbow of an arc leader is never allowed to be placed on either the end or anchor point.

Exceptions

ExceptionCondition
Autodesk.Revit.ExceptionsArgumentException When setting this property: A valid point must not be father then 10 miles (approx. 16 km) from the origin. -or- When setting this property: An arc leader may not have its Elbow point placed at the current position of the leader's Anchor or End point.
Autodesk.Revit.ExceptionsArgumentNullException When setting this property: A non-optional argument was null
Autodesk.Revit.ExceptionsInvalidOperationException When setting this property: The leader is not currently owned by a valid element. A probable reason for that could be if the element has been independently deleted, or the leader has never been properly initialized.

See Also