ssc_build doesnt recognize .slx parts?

4 views (last 30 days)
Niklas Anthony
Niklas Anthony on 8 Jul 2015
Answered: Sabin on 12 Aug 2025
So I made a few basic shapes using solids in simscape, the files are saved as *.slx. I want to be able to use these shapes in future models, like building blocks, so I think a library is best, the only problem is I cant generate a library using ssc_build, as it only recognizes .m and .ssc files.
My current directory is in */Documents/MATLAB/testsat/ if that matters. I made a folder called +package in that directory, and put all my shapes/slx parts in there, when I run ssc_build.

Answers (1)

Sabin
Sabin on 12 Aug 2025
The sscbuild function generates a Simulink .slx library file. The slx file cannot be provided as input to the function. We can add ssc, m, and svg/jpg/bmp/png (for customizeing the icon) files in the +folder.
Check out more about building custom simscape component files:

Categories

Find more on Simulink Environment Customization in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!