create MethodStatic

Create a RenderMaterial with given parameters.

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

throws IModelError if unable to create the element.

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

Returns - The newly constructed RenderMaterial element.

Defined in

Last Updated: 08 January, 2020