insert MethodStatic

Insert a new SubCategory

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

@returns The Id of the newly inserted SubCategory element.

@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 SubCategoryAppearance | SubCategoryAppearance.Props The appearance settings to use for this SubCategory

Returns - string

The Id of the newly inserted SubCategory element.

Defined in

Last Updated: 13 September, 2024