Validates curve to be added to the view-specific shape being constructed. Called by AddCurve() to validate input.
This function may be used to pre-validate the geometry being added to avoid AddCurve() throwing an InvalidArgumentException
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.2.0.0 (26.2.0.0)
Syntax
C#
public static bool ValidateCurve( Curve GCurve, DirectShapeTargetViewType targetViewType )
Parameters
- GCurve Curve
- Curve object to be validated.
- targetViewType DirectShapeTargetViewType
- View type for which this curve is intended.
Return Value
BooleanTrue is %GCurve% is acceptable as a part of view-specific shape representation.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |
ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |