AssemblyInstance.PlaceInstance
Method
Description:
Places an assembly instance of a given assembly type at the specified location.
Places an assembly instance of a given assembly type at the specified location.
Syntax
public static AssemblyInstance PlaceInstance(
Document document,
ElementId assemblyTypeId,
XYZ location
)
Parameters
Parameter | Type | Description |
---|---|---|
document | Document | The document for the new assembly instance. |
assemblyTypeId | ElementId | The id of the assembly type to be used for the instance. |
location | XYZ | The placement location for the instance in project coordinates. |
Return Value
Type | Description |
---|---|
AssemblyInstance | The newly created assembly instance. |
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | A non-optional argument was null |