slproject.getCurrentProjects
List all top-level万博1manbetx项目
Syntax
项目= slproject.getCurrentProjects
Description
returns a list of all top-level projects open in Simulink®Project. Currently only one or zero top-level projects can be loaded. Returns an object array of 1 or 0项目
= slproject.getCurrentProjectsProjectManager
objects项目
that you can use to manipulate the project programmatically. Useslproject.getCurrentProjects
for project automation scripts.
If you executeslproject.getCurrentProjects
inside a project shortcut, it returns only the project that the shortcut belongs to. If the shortcut belongs to a referenced project, it returns the referenced project.
Examples
Output Arguments
Tips
Alternatively, you can usesimulinkproject
to get a project object, butsimulinkproject
also opens and gives focus to the Simulink Project Tool. Usesimulinkproject
to open projects and explore projects interactively. Useslproject.getCurrentProjects
for project automation scripts.