slproject.getCurrentProjects
(Not recommended) List all top-level projects
slproject.getCurrentProjects is not recommended. Use matlab.project.rootProject instead. For more
information, see Version History.
Description
returns a list of all open top-level projects. Currently only one or zero top-level projects
can be loaded. Returns an object array of 1 or 0 projects = slproject.getCurrentProjectsProjectManager objects
projects that you can use to manipulate the project programmatically.
Use slproject.getCurrentProjects for project automation scripts.
If you execute slproject.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 use simulinkproject to get a project object, but
simulinkproject also opens and gives focus to the Project Tool. Use
simulinkproject to open projects and explore
projects interactively. Use slproject.getCurrentProjects for project
automation scripts.