insert MethodStatic

Insert a new SubCategory

insert(iModelDb: IModelDb, parentCategoryId: string, name: string, appearance: Props | SubCategoryAppearance): string

throws IModelError if unable to insert the element.

Parameter Type Description
iModelDb IModelDb Insert into this iModel
parentCategoryId string Insert the new SubCategory as a child of this Category
name string The name of the SubCategory
appearance Props | SubCategoryAppearance The appearance settings to use for this SubCategory

Returns - string

The Id of the newly inserted SubCategory element.

Defined in

Last Updated: 12 June, 2024