insert MethodStatic
Insert a new SpatialCategory
insert(iModelDb: IModelDb, definitionModelId: Id64String, name: string, defaultAppearance: Props): Id64String
throws IModelError if unable to insert the element.
Parameter | Type | Description |
---|---|---|
iModelDb | IModelDb | Insert into this iModel |
definitionModelId | Id64String | Insert the new SpatialCategory into this DefinitionModel |
name | string | The name of the SpatialCategory |
defaultAppearance | Props | The appearance settings to use for the default SubCategory of this SpatialCategory |
Returns - The Id of the newly inserted SpatialCategory element.
Defined in
Last Updated: 08 January, 2020