insert MethodStatic


insert(txn, definitionModelId, name, options?) @beta

Insert a DisplayStyle3d for use by a ViewDefinition.

insert(txn: EditTxn, definitionModelId: string, name: string, options?: DisplayStyleCreationOptions): string

@returns The Id of the newly inserted DisplayStyle3d element.

@throws IModelError if unable to insert the element.

Parameter Type Description
txn EditTxn The EditTxn to use
definitionModelId string Insert the new DisplayStyle3d into this DefinitionModel
name string The name of the DisplayStyle3d
options DisplayStyleCreationOptions Creation options

Returns - string

The Id of the newly inserted DisplayStyle3d element.



insert(iModelDb, definitionModelId, name, options?)

Deprecated  Use DisplayStyle3d.insert(txn, ...) instead.

Insert a DisplayStyle3d for use by a ViewDefinition.

insert(iModelDb: IModelDb, definitionModelId: string, name: string, options?: DisplayStyleCreationOptions): string

Parameter Type Description
iModelDb IModelDb  
definitionModelId string  
name string  
options DisplayStyleCreationOptions  

Returns - string


Defined in

Last Updated: 28 April, 2026