Creating/Modifying a Table    

This task shows you how to create and edit a table by adding text, inserting columns and/or rows, merging cells, inverting lines and/or columns, switching lines and columns, and inserting views. You can also split a table, import a table, and insert a view in a table.

Choose a task:

 

Creating a Table                                                                        

Create a new sheet and a new view.
  1. Click Table in the Annotations toolbar.

  2. Click a point in the drawing to specify the table position.

    Tables cannot be associative. Selecting an element in the drawing does not make the table associative to this element.
  3. In the Table Editor dialog box that appears, enter the number of columns and rows you want for the table.

     

    • The line height corresponds to the height of a string.
    • The line width corresponds to 5 times the height of a string.
  4. Click OK to validate the table creation.

 

Editing and Modifying a Table                                                    

Create a table as explained earlier in this task.
  1. Select the table and drag it to another position.

  2. Double-click the table to switch it to edition mode.

    You cannot move a table while it is in edition mode.

    While in edition mode, you can:

    • Select a column by clicking above the column when the symbol appears.

    • Select a line by clicking on the left-hand side of the row when the symbol appears.

    • Select the entire table by clicking in the corner cells of the table when the symbol appears.

    • Select a cell by clicking in the cell when the symbol appears. You can move to other cells by using the arrow keys.

      • Click the left mouse button and drag to select multiple cells.

      • Hold down Shift and drag the left mouse button or use the arrow keys to select multiple cells.

    • You can use the following keys for faster cell selection:

      • Home : brings the selection to a cell in the first column of the table.

      • End : brings the selection to a cell in the last column of the table.

      • PageUp : brings the selection to a cell in the first row of the table.

      • PageDown : brings the selection to a cell in the last row of the table.

      • Multiple cell selection is possible by using Shift+ above mentioned four keys (Home, End, PageUp and PageDown).

    • Leave edition mode by clicking outside the table.

  3. To access the general contextual menu, right-click the corner of the frame around the table.
     

    This contextual menu allows you to:

    • invert columns.

    • invert rows.

    • turn rows into columns and columns into rows.

    • fit the text in the cells by automatically defining the optimal cell size.

    • extend the table by adding columns and/or rows to it.

  4. Choose Invert rows in the contextual menu. Rows are inverted, i.e., the last row becomes the first one, the first row becomes the last one, etc.

  5. Choose Invert columns in the contextual menu. Columns are inverted.

  6. Select Invert columns / rows in the contextual menu. Rows and Columns are inverted:

  7. Right-click a column or row to access the related contextual menu, which lets you:

    • Insert a column/row.

    • Delete a column/row.

    • Clear the content of a column/row.

    • Split the table (in case of row contextual menu).

    • Modify the size of a column/row by either:

      •  setting a new size for the column/row.

      • "autofitting" the size (the optimal cell size is automatically defined in order for text to fit in it).

    • The size of a column or row and the text properties depends on the insertion point in the table. If you insert a column/row:

      • in the middle of a table, the size and text properties are the same as the preceding column/row.

      • at the beginning of the table, the size is the same as the first column/row and the text properties are the same as the current text style.

    • The minimum value for a column width is twice the value of the horizontal margin of the cells. By default, this horizontal margin is valued 2mm.

  8. Right-click two cells and choose Merge.
     

    You cannot merge a cell that has already been merged.
  9. Select the new cell formed by the two cells you have merged and choose Unmerge to split them in two cells again.

  10. Double-click the text of a cell or press F2 key. The Text Editor dialog box appears: modify the text. Press Shift+Enter to add new line in the Text Editor if needed. Click OK or press Enter to validate the text.

  11. To choose vertical and horizontal text alignment, use the Anchor point tool . Align the text of a cell on the right using .

  12. Right-click a cell, and select Properties from the contextual menu. The properties available are the same as those available for texts. Refer to Editing Text Properties for more information.

  13. On the Font tab, specify a color, red for example, and click OK. The text in the selected cell is now red.

    When editing cell properties, note that a number of properties do not apply to the selected cell, but to the table and all its cells.
    • On the Text tab:
      • X and Y position
      • (Orientation) Reference
      • Orientation
      • Blank Background
    • On the Graphic tab (Lines and Curves section):
      • Color
      • Linetype
      • Thickness
  • The top or bottom row style or left or right column style can be customized by the Administrator in cell formats (Tools > Standards > Drafting > [standard name] > Styles > Table > Default > Cell Formats).

  • When the administrator creates a top or bottom row style or left or right column style, a new node is created in the standards xml file under the Table > Default > Cell Formats node (at the same level as Whole Table).

  • The new node is a duplication of the Whole Table node.

  • An extra parameter is created under top or bottom row style or left or right column style to specify the number of rows/columns being affected by this style. This parameter is named Number of Row/Column and its default value is 1.

  • You cannot select multiple blocks at the same time. Two alternate columns or rows cannot be simultaneously selected.

 

Splitting a Table                                                                         

Open the Split_tables.CATDrawing document. It contains a table that you will split into several tables.

 

Using Split Table Command                                                                         

  1. Right-click the table and select Split Table. The Table Split dialog box appears.

     
    In this case, the From current line option is grayed out.

    The Table Split dialog box has the following options:

    • Maximum number of rows: if you want to split the table so that each new table contains a maximum number of rows, select this option and enter the required number of rows in the associated field.

    • Maximum height: if you want to split the table so that each new table has a maximum height, select this option and enter the required height in the associated field.

    • From current line: select this option if you want to split the table from a currently selected line when the table is in edition mode.

    • Horizontally: select this option to position the new tables one next to the other and specify the distance between them in the numeric field provided.

    • Vertically: select this option to create the new tables above or below each other depending on the table inverted status and specify the distance between them in the numeric field provided.

    • Duplicate header rows: select this option if you want to duplicate the header row in each new table. A spinner is provider to define the number of header rows you want to duplicate.

    • Duplicate footer rows: select this option if you want to duplicate the footer row in each new table. A spinner is provider to define the number of footer rows you want to duplicate.

    • Inverted table: select this option if you want the table to be read from bottom to top (i.e. header is at the bottom of the table, footer is at its top).

    All combinations are possible for the following options:
    • Duplicate header rows,
    • Duplicate footer rows,
    • Inverted table.

    You can have all the three options or any two options selected.

  2. Select Maximum number of rows and enter 8 in the corresponding field.

  3. Select Vertically.

  4. In the Distance between tables field, type 20mm.

  5. Select the option Duplicate header rows keeping the value 1 for the number of rows to be duplicated and also select the option Inverted table.

  6. Click OK. The table is split according to the criteria you have specified. The header row is copied in the split tables and the table is read from bottom to top.

    If the Inverted table option is cleared and the Duplicate header rows option is selected with value 1 , then the table is read from top to bottom. Thus the table is split with the top row being considered as the header row, in this case row with M.

 

Using Split... Command                                                                               

Open the Split_tables_1.CATDrawing document. It contains a table that you will split into several tables.

  1. Right-click the row manipulator when the table is in edition mode and select Split....

    The Table Split dialog box appears.

     
    • In this case, the From current line option is available.
    • In case of a non-inverted table, the table is split above the selected row with the From current line option selected.
    • In case of a inverted table, the table is split below the selected row with the From current line option selected.
  2. Select the row from which you want to split the table. In this case say from row H.
    The From current line option is automatically selected.

  3. Select Vertically.

  4. In the Distance between tables field, type 15mm.

  5. Select Duplicate header rows and make the value to 2 using the spinner.

  6. Click OK. The table is split into two tables from the row selected by you and the first two header lines are also copied in the split tables.

  • Merging a split table is not supported.

  • Vertical splitting is not supported.

  • When creating the Bill of Material or Hole Dimension or Coordinate Dimension table in drafting, the Table Split dialog box is available, but the header/footer rows options are replaced by a Duplicate Title option which is selected by default. This option duplicates the title row.

    Creation of Bill of Material or Hole Dimension or Coordinate Dimension table is not supported in 2D Layout for 3D Design workbench.

 

Importing a Table                                                                     

You can import a table in a drawing (of the .csv type only).
To perform this scenario, you must have a .csv file at your disposal.
Note that this functionality is based on system options. Indeed, in a CSV (Comma Separated
Values) file, each line corresponds to a line in the table; within a given line, each cell is separated by a specific character that depends on the decimal separator specified in the system options.

This decimal separator determines the character that will be interpreted as the cell separator:

  • if the decimal separator is a dot, then the comma (,) is used as the column separator.
  • if the decimal separator is a comma, then the semi-column is used as the column separator.
  1. Click Import Table and select the table you want to import.
     

  2. Click Open. The table is imported into the drawing.

 

Inserting a View in a Table                                                         

Open the GenDrafting_part.CATDrawing file. Create a table in the front view.

  1. Double-click the table to switch it to edition mode.

  2. Right-click the cell you want to fill. Select Insert view.

    The command "Insert view" is not available with 2D Layout for 3D Design workbench.
  3. Choose the view you want to insert by clicking the view in the drawing or in the tree.
     

    • You cannot select the view containing the table,
    • The view must be in the same drawing.
    • If you modify the 3D part and update the drawing, the view in the table will be updated as well.


    Choose the Top view:
     

    The top view is inserted in the table, and it is resized so as to fit the cell. You can resize the cell if you want to enlarge the view in the table.