DirectShapeType.AppendShape(IList<GeometryObject>)
Method
Description:
Appends the collection of GeometryObjects into the model shape representation stored in this DirectShape.
Appends the collection of GeometryObjects into the model shape representation stored in this DirectShape.
Remarks:
The existing shape will not be cleared by this function, and intersecting or overlapped geometry will not be joined with the appended geometry. It is up to the caller to ensure that the combination of geometry will have the correct appearance in Revit.
The existing shape will not be cleared by this function, and intersecting or overlapped geometry will not be joined with the appended geometry. It is up to the caller to ensure that the combination of geometry will have the correct appearance in Revit.
Parameters
Parameter | Type | Description |
---|---|---|
pGeomArr | IList | Shape expressed as a collection of GeometryObjects. The supported types of GeometryObjects are: Solid, Mesh, GeometryInstance, Point, Curve and PolyLine. |
Return Value
Exceptions
Exception | Condition |
---|---|
ArgumentException | At least one member of pGeomArr does not satisfy DirectShapeType validation criteria. |
ArgumentNullException | A non-optional argument was null |