insert MethodStatic
insert(txn, definitionModelId, name, modelSelectorId, categorySelectorId, displayStyleId, range, standardView?) @beta
Insert an OrthographicViewDefinition
insert(txn: EditTxn, definitionModelId: string, name: string, modelSelectorId: string, categorySelectorId: string, displayStyleId: string, range: Range3d, standardView?: StandardViewIndex): string
@returns The Id of the newly inserted OrthographicViewDefinition element
@throws IModelError if there is an insert problem.
| Parameter | Type | Description |
|---|---|---|
| txn | EditTxn | |
| definitionModelId | string | Insert the new OrthographicViewDefinition into this DefinitionModel |
| name | string | The name/CodeValue of the view |
| modelSelectorId | string | The ModelSelector that this view should use |
| categorySelectorId | string | The CategorySelector that this view should use |
| displayStyleId | string | The DisplayStyle3d that this view should use |
| range | Range3d | Defines the view origin and extents |
| standardView | StandardViewIndex | Optionally defines the view's rotation |
Returns - string
The Id of the newly inserted OrthographicViewDefinition element
insert(iModelDb, definitionModelId, name, modelSelectorId, categorySelectorId, displayStyleId, range, standardView?)
Deprecated Use OrthographicViewDefinition.insert(txn, ...) instead.
insert(iModelDb: IModelDb, definitionModelId: string, name: string, modelSelectorId: string, categorySelectorId: string, displayStyleId: string, range: Range3d, standardView?: StandardViewIndex): string
| Parameter | Type | Description |
|---|---|---|
| iModelDb | IModelDb | |
| definitionModelId | string | |
| name | string | |
| modelSelectorId | string | |
| categorySelectorId | string | |
| displayStyleId | string | |
| range | Range3d | |
| standardView | StandardViewIndex |
Returns - string
Defined in
- backend/src/ViewDefinition.ts Line 728
Last Updated: 25 April, 2026
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.