AssemblyInstancePlaceInstance Method |
Places an assembly instance of a given assembly type at the specified location.
Namespace: Autodesk.Revit.DBAssembly: RevitAPI (in RevitAPI.dll) Version: 25.0.0.0 (25.0.0.0)
Syntaxpublic static AssemblyInstance PlaceInstance(
Document document,
ElementId assemblyTypeId,
XYZ location
)
Public Shared Function PlaceInstance (
document As Document,
assemblyTypeId As ElementId,
location As XYZ
) As AssemblyInstance
public:
static AssemblyInstance^ PlaceInstance(
Document^ document,
ElementId^ assemblyTypeId,
XYZ^ location
)
static member PlaceInstance :
document : Document *
assemblyTypeId : ElementId *
location : XYZ -> AssemblyInstance
Parameters
- 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
AssemblyInstance
The newly created assembly instance.
Exceptions
See Also