How do I prevent components in a Simulink custom library submodel from being indexed for quick insert?

When creating a library with submodel blocks, they all expand to sublibraries by default as I understand. So all components inside, even standard blocks, are beeing added as entites to pick. This quickly clutters the quick insert context menu if I dubbel-click in a model and also the library browser.
I have found this related very old answer
Is that answer still valid? Do we still have to mask submodels or creating scripts to avoid this?
Feels like work-arounds for something that should be easier. Maybe there is a simpler way nowadays? Like a checkbox to tick somewhere.
Note that I am not looking for a way to prevent inspection of the submodels, just to prevent their contents from beeing indexed and expanded in the library broswer and quick inster menus.

1 Comment

Hi Markus,
I was looking for the same thing but I could not find anything from MathWorks Documentation. There is no check-box to restrict the custom library contents to spill over.
The workaround provided in the answer is still valid.
Regards,
Matt.

Sign in to comment.

Answers (0)

Categories

Products

Release

R2025b

Asked:

on 9 Jul 2026

Edited:

on 23 Jul 2026 at 4:06

Community Treasure Hunt

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

Start Hunting!