DirectShape.IsValidShape(IList<GeometryObject>, DirectShapeTargetViewType)
Method
Description:
Validates view-specific shape to be stored in a DirectShape. Expects a non-default view type.
Validates view-specific shape to be stored in a DirectShape. Expects a non-default view type.
Parameters
Parameter | Type | Description |
---|---|---|
shape | IList | Shape of this object expressed as a collection of GeometryObjects. For viewType = DirectShapeTargetViewType::Default, the supported types of GeometryObjects are: Solid, Mesh, GeometryInstance, Point and Curve. For viewType = DirectShapeTargetViewType::Plan, the supported types of GeometryObjects are: Point and Curve. |
viewType | DirectShapeTargetViewType | The view type this shape is intended for. |
Return Value
Type | Description |
---|---|
Boolean | True if the supplied shape passes the validation criteria. |
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 |