insert MethodStatic
insert(txn, parentSubjectId, name) @beta
Insert a DefinitionPartition and a DefinitionModel that sub-models it.
insert(txn: EditTxn, parentSubjectId: string, name: string): string
@returns The Id of the newly inserted DefinitionModel. *
@throws IModelError if there is an insert problem. *
| Parameter | Type | Description |
|---|---|---|
| txn | EditTxn | The active EditTxn. * |
| parentSubjectId | string | The DefinitionPartition will be inserted as a child of this Subject element. * |
| name | string | The name of the DefinitionPartition that the new DefinitionModel will sub-model. * |
Returns - string
The Id of the newly inserted DefinitionModel. *
insert(iModelDb, parentSubjectId, name) @beta
Insert a DefinitionPartition and a DefinitionModel that sub-models it.
insert(iModelDb: IModelDb, parentSubjectId: string, name: string): string
@returns The Id of the newly inserted DefinitionModel. *
@throws IModelError if there is an insert problem. *
| Parameter | Type | Description |
|---|---|---|
| iModelDb | IModelDb | |
| parentSubjectId | string | The DefinitionPartition will be inserted as a child of this Subject element. * |
| name | string | The name of the DefinitionPartition that the new DefinitionModel will sub-model. * |
Returns - string
The Id of the newly inserted DefinitionModel. *
Defined in
- backend/src/Model.ts Line 710
Last Updated: 06 May, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.