create MethodStatic
Create a RenderMaterial with given parameters.
create(iModelDb: IModelDb, definitionModelId: string, materialName: string, params: RenderMaterialElementParams): RenderMaterialElement
@returns The newly constructed RenderMaterial element.
@throws IModelError if unable to create the element.
Parameter | Type | Description |
---|---|---|
iModelDb | IModelDb | The iModel |
definitionModelId | string | The DefinitionModel |
materialName | string | The name/CodeValue of the RenderMaterial |
params | RenderMaterialElementParams | Parameters object which describes how to construct the RenderMaterial |
Returns - RenderMaterialElement
The newly constructed RenderMaterial element.
Defined in
- core/backend/src/Material.ts Line 93
Last Updated: 14 November, 2024
Found something wrong, missing, or unclear on this page?Raise an issue in our repo.