Change Simulink Library Lock Status from within the Library?
2 次查看(过去 30 天)
显示 更早的评论
Hi,
I understand, I can change the library status of a Simulink library programmatically.
My question is: can I do that from within the library as well?
Background: users can download the library together with some other files (including documentation PDFs) from a repository. I would like to do automate some initial settings (e.g. links to PDFs) when the user opens the library for the first time after download.
0 个评论
回答(3 个)
Fangjun Jiang
2019-1-23
Open your library model, in menu File, library properties, library properties,
In the Callbacks panel, you could add a callback to the PreLoadFcn or PostLoadFcn, "winopen('abc.pdf')".
Note the file will be open every time the library is loaded.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!