Organize Data Display in Model Explorer

Layout Options

You can control how the object property table and Search Results pane organize the layout of property information by:

  • Sorting column contents

  • Grouping by a property

  • Changing the order of property columns

  • Adding a property column

  • Hiding and removing property columns

Sorting Column Contents

To sort the column contents in ascending order, click the heading of the property column. A triangle pointing up appears in the column heading. To change the order from ascending to descending, or from descending to ascending, click the heading of the column again.

For example, if properties are in ascending order, based on the Name property (the default), click the heading of the Name column to display objects by name, in descending order.

By default, the Contents pane displays its contents in ascending order, based on the name of the object. Objects that have no values in any property columns appear at the end of the object property table.

    Note:   When you group by property, the Model Explorer applies sorting of column contents within each group.

Grouping by a Property

Organizing Contents by Property Values

When you explore a model, you might want to focus on all objects with the same property value. One approach is to group data by a property column.

For example, suppose that you want to see all of the blocks in the f14 model. You could perform the following search.

The search results obscure the whole path name for lower-level nodes:

By grouping on the Path property column, you see the whole path for lower-level nodes.

You can also collapse groups to focus on specific portions of a model.

How to Group by a Property Column

To group by a property:

  1. In the object property table, right-click the column heading of the property by which you want to group contents.

    You can group by object icons, such as a block icon ( ), which represents a type of object. Right-click the empty column heading in the first column.

  2. From the context menu, select the Group By This Column menu item.

Sorting with Grouped Data

When you group by property, the Model Explorer applies sorting of column contents within each group.

Expanding and Collapsing Grouped Data

By default, Model Explorer displays groups in expanded form. That is, all the objects in each group are visible. You can collapse and expand groups.

  • To collapse the contents of a group, click the minus sign icon for that group.

  • To expand a group, click the plus sign.

  • To collapse or expand all the groups, right-click anywhere in the object property table and select either the Collapse All Groups menu item (Shift+C) or Expand All Groups menu item (Shift+E).

Hiding the Group Column

By default, the property column that you use for grouping appears in the property table. That property also appears in the top row for each group.

To hide the group column in the property table, use one of the following approaches:

  • From the View menu, clear the Show Group Column check box.

  • Right-click a column heading in the property table and clear the Show Group Column check box.

Persistence of Grouped Data Settings

If you group by a property, that grouping is saved as part of the view definition.

When you select a different node in the Model Hierarchy pane, the contents for the new node are grouped by that same property. However, all groups are expanded, even if you had collapsed all groups before switching nodes.

Grouping Search Results

You can use grouping to organize the Search Results pane. The grouping that you apply to the Search Results pane also applies to the object property table, if that property is in the table. If the search results include a property that is not in the object property table, and you group on that property, then the Model Explorer removes the grouping setting that was in effect in the object property table.

Changing the Order of Property Columns

Object Icon and Name Columns Are Always First

The first two columns of every object property table are the object icon column (the column with a blank column heading) and the Name property column. You cannot hide, remove, or change the location of the first two columns.

How to Change the Order of Property Columns

To change the order of property columns in the object property table, use one of these approaches:

  • In the object property table, select a column heading and drag it to a new location in the table.

    This approach avoids opening the column view details section and makes it easier to move a column a short distance to the right or left.

  • In the column view details section, select one or more property columns and move them up or down in the list, using the arrow buttons to the right of the list.

    This approach allows you to move several property columns in one step, but it moves the selected columns right or left by only one column at a time.

    To move a property column by using the view details interface:

    1. In the Display column names in this order list on the right side of the column view details section, select one or more property columns that you want to move.

    2. Click the Move column left in view button ( ) or the Move column right in view button ( ).

Adding Property Columns

To add property columns to a view:

  1. If you do not have the column view details section of the Contents pane already open, then at the top of the Contents pane, select Show Details.

  2. In the list of properties on left side of the column view details section, select one or more properties that you want to add.

    • The list displays property names in alphabetical order. You can use the Find Properties search box in the column view details section to search for properties that contain the text string that you enter. You can specify the scope of the search with the From list to the right of the search box.

  3. In the list of column names on the right side, select the property column that you want to be to the left of the property columns you insert.

  4. Click the Display property as column in view button ( )

Adding a Path Property Column

The Model Explorer provides a shortcut for adding a Path property column to a view. To add a Path property column:

  1. Right-click the column heading in the object property table to the right of which you want to insert a Path column.

  2. From the context menu, select Insert Path.

Hiding or Removing Property Columns

You can choose between two approaches to hide (remove) a property column from the object property table. Hiding and removing a column both have the same result. You can:

  • Hide a column using the context menu for a column heading. This approach avoids needing to open the column view details section.

  • Remove a column using the column view details interface. This approach allows you to delete several properties in one step.

Hiding a Column Using the Column Heading Context Menu

  1. Right-click the column heading of the column that you want to remove.

  2. From the context menu, select Hide.

Removing a Column Using the Column View Details Interface

  1. If you do not have the column view details section of the Contents pane already open, then at the top of the Contents pane, select Show Details.

  2. In the column view details section of the Contents pane, in the Display column names in this order list, select one or more properties that you want to remove.

  3. Click the Remove column from view button ( ) or the Delete key.

Inserting Recently Hidden or Removed Columns

The Model Explorer maintains a list of columns you hide or remove for each view during a Simulink® session.

To add a recently hidden or removed column back into a view:

  1. Right-click the column heading of the column to the right of which you want to insert a recently hidden column.

  2. From the context menu, select Insert Recently Hidden Columns.

  3. Select the column that you want to insert.

See Hiding or Removing Property Columns.

Marking Nonexistent Properties

Usually, some of the properties that the Contents pane displays do not apply to all the displayed objects (in other words, some objects do not have values set). By default, the Model Explorer displays a dash (–) to mark properties that do not have a value.

If you want the Model Explorer to display a blank (instead of the default dash) in property cells that have no values, clear the View > Show Nonexistent Properties as "–" option. The Contents pane looks similar to the following graphic:

Was this topic helpful?