placeTemplate3d Method

Place a template from the sourceDb at the specified placement in the target model within the targetDb.

placeTemplate3d(sourceTemplateModelId: string, targetModelId: string, placement: Placement3d): Promise<Map<string, string>>

note Required References like the SpatialCategory must be remapped before calling this method.

Parameter Type Description
sourceTemplateModelId string The Id of the template model in the sourceDb
targetModelId string The Id of the target model (must be a subclass of GeometricModel3d) where the cloned component will be inserted.
placement Placement3d The placement for the cloned component.

Returns - Promise<Map<string, string>>

The mapping of sourceElementIds from the template model to the instantiated targetElementIds in the targetDb in case further processing is required.

Defined in

Last Updated: 30 November, 2023