removeCategory

Class: Simulink.ModelManagement.Project.CurrentProject
Package: Simulink.ModelManagement.Project

(To be removed) Remove a category from the currently open Simulink project

    Note:   Simulink.ModelManagement.Project.CurrentProject.removeCategory will be removed in a future release. Use removeCategory instead.

Syntax

p = Simulink.ModelManagement.Project.CurrentProject()
p.removeCategory(categoryName)

Description

p = Simulink.ModelManagement.Project.CurrentProject() creates an instance of the CurrentProject class.

p.removeCategory(categoryName) removes the category.

Input Arguments

categoryName

The name of the category that is to be removed.

Examples

To remove a category Owner from the currently open Simulink project, use the following commands.

  1. Create an instance of the CurrentProject class.

    p = Simulink.ModelManagement.Project.CurrentProject();
  2. Remove the category.

    p.removecategory('Owner');
Was this topic helpful?