DatumPlaneIsLeaderValid Method |
Identifies if the leader valid or not for this DatumPlane. This method does not apply to Reference planes (which do not support leaders).
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic bool IsLeaderValid(
DatumEnds datumEnd,
View view,
Leader leader
)
Public Function IsLeaderValid (
datumEnd As DatumEnds,
view As View,
leader As Leader
) As Boolean
public:
bool IsLeaderValid(
DatumEnds datumEnd,
View^ view,
Leader^ leader
)
member IsLeaderValid :
datumEnd : DatumEnds *
view : View *
leader : Leader -> bool
Parameters
- datumEnd DatumEnds
-
The end of the datum plane.
- view View
-
The view on which the DatumPlane shows.
- leader Leader
-
The Leader for setting the datum plane.
Return Value
Boolean
True if the leader is valid for set leader, false otherwise.
Exceptions
Remarks
If the view or leader is null, it will throw ArgumentNullException;
A valid leader meets the following conditions:
- The leader's End, Elbow and Anchor should lie in the View's plane
- The End of the leader should be on the datum plane's curve(s)
- The Elbow of the leader should be between the End and Anchor
See Also