insert MethodStatic


insert(txn, definitionModelId, name) @beta

Insert a DisplayStyle2d for use by a ViewDefinition.

insert(txn: EditTxn, definitionModelId: string, name: string): string

@returns The Id of the newly inserted DisplayStyle2d element.

@throws IModelError if unable to insert the element.

Parameter Type Description
txn EditTxn The EditTxn to use
definitionModelId string Insert the new DisplayStyle2d into this DefinitionModel
name string The name of the DisplayStyle2d

Returns - string

The Id of the newly inserted DisplayStyle2d element.



insert(iModelDb, definitionModelId, name)

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

Insert a DisplayStyle2d for use by a ViewDefinition.

insert(iModelDb: IModelDb, definitionModelId: string, name: string): string

Parameter Type Description
iModelDb IModelDb  
definitionModelId string  
name string  

Returns - string


Defined in

Last Updated: 29 April, 2026