insert MethodStatic


insert(txn, parentSubjectId, name, isPlanProjection?) @beta

Insert a PhysicalPartition and a PhysicalModel that sub-models it using an explicit transaction.

insert(txn: EditTxn, parentSubjectId: string, name: string, isPlanProjection?: boolean): string

@returns The Id of the newly inserted PhysicalPartition and PhysicalModel (same value). *

@throws IModelError if there is an insert problem. *

Parameter Type Description
txn EditTxn The EditTxn used to perform inserts.
*
parentSubjectId string The PhysicalPartition will be inserted as a child of this Subject element.
*
name string The name of the PhysicalPartition that the new PhysicalModel will sub-model.
*
isPlanProjection boolean Optional value (default is false) that indicates if the contents of this model are expected to be in an XY plane.
*

Returns - string

The Id of the newly inserted PhysicalPartition and PhysicalModel (same value). *



insert(iModelDb, parentSubjectId, name, isPlanProjection?)

Deprecated  Use PhysicalModel.insert(txn, ...) instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.

insert(iModelDb: IModelDb, parentSubjectId: string, name: string, isPlanProjection?: boolean): string

Parameter Type Description
iModelDb IModelDb  
parentSubjectId string  
name string  
isPlanProjection boolean  

Returns - string


Defined in

Last Updated: 29 April, 2026