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