Using Packages

Although you can partition libraries by placing them in separate model files, packages provide a way to organize libraries within the same model file. Packages can be hierarchical and can contain libraries or other packages:

Packages

When generating C++ code, packages will map to namespaces.

If you have numerous nested packages you may want to review arranging figures on how to automatically resize and reposition your packages and package contents so they don't overlap.