insert MethodStatic
insert(txn, parentSubjectId, name) @beta
Insert a FunctionalPartition and a FunctionalModel that breaks it down using an explicit transaction.
insert(txn: EditTxn, parentSubjectId: string, name: string): string
@returns The Id of the newly inserted FunctionalPartition and FunctionalModel (same value). *
@throws IModelError if there is an insert problem. *
| Parameter | Type | Description |
|---|---|---|
| txn | EditTxn | The EditTxn used to perform inserts. * |
| parentSubjectId | string | The FunctionalPartition will be inserted as a child of this Subject element. * |
| name | string | The name of the FunctionalPartition that the new FunctionalModel will break down. * |
Returns - string
The Id of the newly inserted FunctionalPartition and FunctionalModel (same value). *
insert(iModelDb, parentSubjectId, name)
Deprecated Use FunctionalModel.insert(txn, ...) instead, within an explicit EditTxn scope (or via withEditTxn). See EditTxn documentation for migration help.
insert(iModelDb: IModelDb, parentSubjectId: string, name: string): string
| Parameter | Type | Description |
|---|---|---|
| iModelDb | IModelDb | |
| parentSubjectId | string | |
| name | string |
Returns - string
Defined in
Last Updated: 25 April, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.