ViewShapeBuilder.ValidateShape
Method
Description:
Validates a shape represented as a collection of geometry objects for use as a view-specific shape. The objects are expected to be either points, curves or polylines.
Validates a shape represented as a collection of geometry objects for use as a view-specific shape. The objects are expected to be either points, curves or polylines.
Syntax
public static bool ValidateShape(
IList<GeometryObject> shape,
DirectShapeTargetViewType targetViewType
)
Parameters
| Parameter | Type | Description |
|---|---|---|
| shape | IList | |
| targetViewType | DirectShapeTargetViewType |
Return Value
| Type | Description |
|---|---|
| Boolean | Returns true if %shape% may be used as a view-specific shape representation, false otherwise. |
Exceptions
| Exception | Condition |
|---|---|
| ArgumentException | targetViewType is not DirectShapeTargetViewType::Plan |
| ArgumentNullException | A non-optional argument was null |
| ArgumentOutOfRangeException | A value passed for an enumeration argument is not a member of that enumeration |