Component Table

With this macro, you can create components, select components, assign materials to components, change component colors and change component visualization modes.

This macro opens the Nastran Component Table, which displays components and their associated attributes in an interactive table. You can also configure the table; only configured items are displayed in the table.

Most actions are available from shortcut (right-click) menus. You can also find options in the drop-down menus. Before performing actions such as changing the values of component data, you must select Editable from the Table menu. Once the components are writable, you can modify the values of existing components. The following sections describe how to use the Component Table in both read-only mode and editable mode.

Use the Component Table in Read-Only Mode

When you open the Component Table, existing components are listed in a table using a default configuration. This configuration displays the component name, component ID number, properties on component, component color, thickness, property on element, material name, material ID, material type, and the visualization status of each component. The Nodes and Elems display is turned off by default. When activated, the total numbers of elements and nodes are shown at the bottom of the table.

The display of the data in the Component Table can be customized according to your preferences. You can:
  • Change which columns are displayed
  • Change the order of the columns
  • Sort the components by column data, ascending or descending
  • Filter which components are displayed based on column data values (see below)

You can save your settings by creating a configuration file. From the Table menu, open the Configure submenu and select the Save CFG-File option. This configuration file saves the set of table configuration options so you can use them again. By default, a configuration file (comptable.cfg) is saved in the working directory for each component table session and settings from this file are applied each time the table is built.

Use the Component Table in Editable Mode

When you switch the Component Tablefrom the default read-only mode to editable mode, by selecting Editable from the Table menu, you can perform all the actions described in the section above, plus edit the attributes of the components listed in the table. To change the value of an attribute, select the attribute in the Assign Values drop-down, type the new value in the adjacent field, and click Set.

Create a New Component

  1. From the Table menu of the Component Table, select New.
    The Component Create dialog opens.
  2. Type a name in the Component Name field.
  3. Select a material type for the component from the Mat Name drop-down field, or click the adjacent New button to define a new material and select it.
  4. Click Properties to assign a property, or click the adjacent New button to define a new property and select it.
  5. Click Create.
    A panel opens on which you must confirm the component creation.
  6. Click return.
    The new component appears in the Component Table.

Create a New Material or Edit an Existing Material

  1. From the Assign Values drop-down field, select Mat Name.
  2. Click New to create a new material or select a material from the HM-Mats drop-down field and click Edit to edit that material.

Assign a Value to Multiple Components

  1. Select the components that you want to change.
    You can use Control+click and Shift+click to select non-adjacent and adjacent rows in the table, respectively. Other options are available in the Selection menu.
  2. Select the column type you want to change from the Assign Values drop-down field.
  3. Type the new value in the adjacent field.
  4. Click Assign.
    The selected column types are updated to the new value you specified.

Filter the List of Components in the Table

The Component Table includes advanced filtering features based on the available columns of data.

If your model contains a large number of components, you can filter the components to quickly see components that are of interest to you.

  1. From the Table pull-down menu, select Filter….
    The Filter dialog opens.
  2. Type a search string, with optional wildcard characters (*), in the fields for the columns you want to search.
    For example, to search for all components that begin with the letter ‘c’ and have ‘steel’ as the material type, you would complete the dialog, as shown below:

    Figure 1.
    Search strings are case-sensitive.
  3. Click Apply in the Filter dialog.
    The filter is applied to the Component Table and only those components that match the search criteria are shown.
  4. To remove filtering and display all the components, click Show All on the Filter dialog. You can also keep the Filter dialog open after applying filter changes by selecting the Table menu and selecting Configure and Filter on top.

Customize the Contents of the Table

To customize what appears in the table, you can specify which columns of data appear in the table.

  1. From the Table menu, select Configure and Columns….
    The Configure dialog opens.
  2. The Configure dialog contains a list of column types that are available. Select the checkboxes for the data you want to view.
  3. Click OK.

Export Data in CSV or HTML Format

  1. From the Table menu, click Save and then either CSV or HTML, depending on which type of data file you prefer.
  2. If you chose CSV, you must select delimiter Comma (,)… or delimiter Semi-colon (;)…, depending on which character you want to be the data delimiter in the output file.
    The Select Output File dialog opens, on which you can select an existing file to overwrite or type the name of the file you are creating.
  3. Click Save.
    The data file is saved in the location you specified.