RVTDocs.com
Namespace: Autodesk.Revit.DB Class: DirectShape

DirectShape.SetShape(IList<GeometryObject>)

Method
Description:
Builds the shape of this object from the supplied collection of GeometryObjects. The objects are copied. If the new shape is identical to the old one, the old shape will be kept.
Syntax
public void SetShape(
	IList<GeometryObject> pGeomArr
)
Parameters
Parameter Type Description
pGeomArr IList Shape of this object expressed as a collection of GeometryObjects. The supported types of GeometryObjects are: Solid, Mesh, GeometryInstance, Point and Curve.
Return Value
Exceptions
Exception Condition
ArgumentException At least one member of pGeomArr does not satisfy DirectShape validation criteria.
ArgumentNullException A non-optional argument was null