create MethodStatic
Create a new SpatialCategory
create(iModelDb: IModelDb, definitionModelId: string, name: string): SpatialCategory
@returns The newly constructed SpatialCategory element.
@throws IModelError if unable to create the element.
| Parameter | Type | Description | 
|---|---|---|
| iModelDb | IModelDb | The iModel | 
| definitionModelId | string | The DefinitionModel | 
| name | string | The name/CodeValue of the SpatialCategory | 
Returns - SpatialCategory
The newly constructed SpatialCategory element.
Defined in
- core/backend/src/Category.ts Line 307
Last Updated: 24 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.