API Reference > imodeljs-backend > Categories > DrawingCategory > insert insert MethodStatic Insert a new DrawingCategory 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 DrawingCategory into this DefinitionModel name string The name of the DrawingCategory defaultAppearance Props The appearance settings to use for the default SubCategory of this DrawingCategory Returns - Id64String The Id of the newly inserted DrawingCategory element. Defined in core/backend/src/Category.ts Line 197 Last Updated: 13 June, 2024