ViewShapeBuilder.ValidateCurve
Description:
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
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
Remarks:
Validation conditions depend on the type of view for which the shape representation is intended. For plan views, a curve is expected to be planar and non-degenerate (e.g., NOT a circle of zero radius).
Validation conditions depend on the type of view for which the shape representation is intended. For plan views, a curve is expected to be planar and non-degenerate (e.g., NOT a circle of zero radius).
Overloads (2):
ValidateCurve(Curve,DirectShapeTargetViewType)
public static bool ValidateCurve(
Curve GCurve,
DirectShapeTargetViewType targetViewType
)
-
GCurveCurve object to be validated.
-
targetViewTypeView type for which this curve is intended.
Return Value
bool
True is %GCurve% is acceptable as a part of view-specific shape representation.
-
A non-optional argument was NULL
-
A value passed for an enumeration argument is not a member of that enumeration