Creates a copy of a definition shape that was created earlier.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 26.1.0.0 (26.1.0.34)
Syntax
C#
public static IList<GeometryObject> CreateGeometryInstance( Document document, string definition_id, Transform trf )
Parameters
- document Document
- Document to which the created element will be added
- definition_id String
- ID of the shape definition that was created earlier and stored via DirectShapeLibrary
- trf Transform
- Transform to be applied to the definition
Return Value
IList<GeometryObject>A collection of GeometryObjects representing a placed instance of the pre-defined shape The caller function takes ownership
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |