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

Last Updated: 28 April, 2026