ViewShapeBuilder.ValidateCurve(Curve, DirectShapeTargetViewType)
Method
Description:
Validates curve to be added to the view-specific shape being constructed. Called by AddCurve() to validate input.
Validates curve to be added to the view-specific shape being constructed. Called by AddCurve() to validate input.
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).
Parameters
Parameter | Type | Description |
---|---|---|
GCurve | Curve | Curve object to be validated. |
targetViewType | DirectShapeTargetViewType | View type for which this curve is intended. |
Return Value
Type | Description |
---|---|
Boolean | True 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 |