Places an assembly instance of a given assembly type at the specified location.
Namespace: Autodesk.Revit.DB
Assembly: RevitAPI (in RevitAPI.dll) Version: 24.0.0.0 (24.0.0.0)
Since: 2012
Syntax
C# |
---|
|
Visual Basic |
---|
|
Visual C++ |
---|
|
Parameters
- document
- Type: Autodesk.Revit.DBDocument
The document for the new assembly instance.
- assemblyTypeId
- Type: Autodesk.Revit.DBElementId
The id of the assembly type to be used for the instance.
- location
- Type: Autodesk.Revit.DBXYZ
The placement location for the instance in project coordinates.
Return Value
The newly created assembly instance.Exceptions
Exception | Condition |
---|---|
Autodesk.Revit.ExceptionsArgumentNullException | A non-optional argument was null |