There are two ways to create a submodel block in a model:
You can convert an existing compound block to a submodel block by selecting Convert to Submodel from the compound block pop-up menu (available by right-clicking on a compound block), as shown in Figure 7.7. If the compound block to be converted does not have tunnels defined, then all input and output connections to the compound block are converted into tunnels automatically after the submodel is created.
You can drag the submodel block icon from the Advanced template and drop it into a Model window. Then you right-click on the
submodel block to open its Block Properties dialog box and specify the path of a previously saved compound block (.cblk
file), as shown in Figure 7.8.
As with basic blocks, you right-click on a submodel block and select Edit Label to edit the submodel label and toggle between displaying and hiding the label.