insertModel Method
Insert a new model into the iModel.
insertModel(props: ModelProps): string
@returns The newly inserted model's Id.
@throws EditTxnError if this EditTxn is not active.
@throws IModelError if insertion fails.
| Parameter | Type | Description |
|---|---|---|
| props | ModelProps | The data for the new model. |
Returns - string
The newly inserted model's Id.
Defined in
- backend/src/EditTxn.ts Line 443
Last Updated: 28 April, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.