Documentation Center

  • Trial Software
  • Product Updates

removeLabel

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

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

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

Syntax

p = Simulink.ModelManagement.Project.CurrentProject()
labelObj = Simulink.ModelManagement.Project.Label(categoryName,labelName);
p.removeLabel(labelObj)

Description

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

labelObj = Simulink.ModelManagement.Project.Label(categoryName,labelName); creates a label object named labelObj in category categoryName.

p.removeLabel(labelObj) removes the label from the category.

Input Arguments

categoryName

The name of the category from which the label is to be removed.

labelName

The name of the label.

Examples

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

  1. Create an instance of the CurrentProject class.

    p = Simulink.ModelManagement.Project.CurrentProject();
  2. Create a label object.

    labelObj= Simulink.ModelManagement.Project.Label('Owner','John');
  3. Remove the label from the category.

    p.removeLabel(labelObj);

See Also

Was this topic helpful?