Borrar filtros
Borrar filtros

Simulink Projects File Revision Number Programatically?

4 visualizaciones (últimos 30 días)
iain Carrie
iain Carrie el 3 de Abr. de 2015
Editada: Tim Hosey el 26 de Sept. de 2016
I need to get the Simulink Projects / SVN revision number of specific files programmatically. Of course this info is available in the Simulink Project browser so should be available programmatically? I cant find documentation on this (that's not to say it doesn't exist). It would also be useful to tell if the file has been modified compared to the SVN version (currently shown as a green circle or blue square in the projects browser)

Respuestas (1)

Tim Hosey
Tim Hosey el 26 de Sept. de 2016
Editada: Tim Hosey el 26 de Sept. de 2016
This functionality was added to the Simulink Project's MATLAB API for R2016a.
The listmodifiedfiles function can be used to get the list of files that have been modified in your working copy.
Properties for source control status and file revision have also been added to the ProjectFile object instances:
>> project = simulinkproject; >> files = project.Files
files = project.Files
files =
1×33 ProjectFile array with properties:
Path
Labels
Revision
SourceControlStatus

Categorías

Más información sobre Project Management en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by