insert MethodStatic

Insert a new RenderMaterial into a model.

insert(iModelDb: IModelDb, definitionModelId: Id64String, materialName: string, params: RenderMaterialElement.Params): Id64String

throws IModelError if unable to insert the element.

Parameter Type Description
iModelDb IModelDb Insert into this iModel
definitionModelId Id64String Insert the new Texture into this DefinitionModel
materialName string The name/CodeValue of the RenderMaterial
params RenderMaterialElement.Params Parameters object which describes how to construct the RenderMaterial

Returns - Id64String

The Id of the newly inserted RenderMaterial element.

Defined in

Last Updated: 13 June, 2024