How do I keep library formats when using ssc_build?
5 次查看(过去 30 天)
显示 更早的评论
How do I keep custom Simcape library blocks from reverting to basic block settings each time I use ssc_build? I use scc_build to create a custom Simscape Library, then make the library “pretty” by adding pictures, changing colors, etc. Now if I modify one *.ssc file and redo ssc_build, I lose all my block settings for the whole library. Anyway to avoid this happening or will I need to create a work around?
0 个评论
采纳的回答
Manuel
2014-11-10
Hi Bill
you cannot keep Simscape library blocks from reverting to basic block when you regenerate the blocks with ssc_build.
To avoid this, you could create a custom library "myprettylib" where you drag the blocks from your library "mylib" generated by ssc_build. You can customize the appaerance of these blocks, and their content is linked to the original Simscape library "mylib". When you modify the simscape code and regenerate, then "mylib" will be refreshed, but not "myprettylib", so you'll keep the appearence of the block.
Note that you can also customize the library name and appearance and the block icon directly with Simscape: http://www.mathworks.com/help/physmod/simscape/lang/how-to-generate-custom-block-libraries-from-simscape-component-files.html http://www.mathworks.com/help/physmod/simscape/lang/customizing-the-block-name-and-appearance.html
Regards, Manuel
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Creating Custom Components and Libraries 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!