Documentation

Simulink.ModelManagement.Project.CurrentProject class

Package: Simulink.ModelManagement.Project

(To be removed) Manipulate the currently open Simulink project from the command line

    Note:   Simulink.ModelManagement.Project.CurrentProject will be removed in a future release. Use simulinkproject and related functions instead. See Project Management for links to project functions.

Description

Use an instance of Simulink.ModelManagement.Project.CurrentProject class to perform the following operations.

  • Open and close Simulink projects

  • Investigate the properties of the currently open Simulink project

  • Change some properties of the currently open Simulink project

Construction

Create an instance of the class as follows.

p = Simulink.ModelManagement.Project.CurrentProject();

Methods

addFileToProject(To be removed) Add a file to the currently open Simulink project
attachLabelToFile(To be removed) Add a label to a file in the currently open Simulink project
close(To be removed) Close the currently open Simulink project
createCategory(To be removed) Create a category in the currently open Simulink project
createLabel(To be removed) Create a label in a category in the currently open Simulink project
detachLabelFromFile(To be removed) Remove a label from a file in the currently open Simulink project
export(To be removed) Export Simulink project to Zip file
getAttachedLabels(To be removed) Get a list of labels attached to a file in the currently open Simulink project
getCategories(To be removed) Get a list of the categories of file labels in the currently open Simulink project
getFilesInProject(To be removed) Get a list of files in the currently open Simulink project
getLabels(To be removed) Get a list of labels in a category in the currently open Simulink project
getProjectName(To be removed) Get the name of the currently open Simulink project
getRootDirectory(To be removed) Get the name of the root folder for the currently open Simulink project
getRootFolder(To be removed) Get the name of the root folder for the currently open Simulink project
isProjectLoaded(To be removed) Return true when a Simulink project is loaded and false when no project is loaded
loadProject(To be removed) Load an existing Simulink project and close any currently open project
removeCategory(To be removed) Remove a category from the currently open Simulink project
removeFileFromProject(To be removed) Remove a file from the currently open Simulink project
removeLabel(To be removed) Remove a label from a category in the currently open Simulink project
setProjectName(To be removed) Change the name of the currently open Simulink project

Examples

This example creates a new instance of the Simulink.ModelManagement.Project.CurrentProject class.

p = Simulink.ModelManagement.Project.CurrentProject();
Was this topic helpful?