DirectShapeLibrary.AddDefinitionType
Method
Description:
Add a definition to be reused by instances. Adding a definition type will change how the instances are created. When asked to create a definition, the library object will look for a corresponding type object.
Add a definition to be reused by instances. Adding a definition type will change how the instances are created. When asked to create a definition, the library object will look for a corresponding type object.
Parameters
| Parameter | Type | Description |
|---|---|---|
| id | String | ID of the definition to be added. Must be unique. |
| typeId | ElementId | Element id of the DirectShapeType element that will be used as a definition. |
Return Value
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | A non-optional argument was null |