Share
 
 

Removing cells

To remove a cell from a row:

  1. In your custom template set, locate the HTML file that you want to edit, and open it with a text editor.
  2. Locate the row containing the cell you want to remove, for example:

    <tr>

    <th>PowerMILL Version</th><td>{version} CodeBase {codebase}</td>

    </tr>

  3. Use <!-- and --> to comment the appropriate part of the code:

    <tr>

    <th>PowerMILL Version</th><!--<td>{version} CodeBase {codebase}</td>-->

    </tr>

    The cell between the comments is now hidden, but the table heading in this row is still shown.

  4. Save the file.
  5. Test the template to check if you are satisfied with the results.

To remove a row of cells:

  1. In your custom template set, locate the HTML file that you want to edit, and open it with a text editor.
  2. Locate the row containing the cells you want to remove, for example:

    <tr>

    <th>PowerMILL Version</th><td>{version} CodeBase {codebase}</td>

    </tr>

  3. Use <!-- and --> to comment the entire row:

    <!--<tr>

    <th>PowerMILL Version</th><td>{version} CodeBase {codebase}</td>

    </tr>-->

    All cells in the commented row are now hidden.

  4. Save the file.
  5. Test the template to check if you are satisfied with the results.

To remove a cell in a merged column:

  1. In your custom template set, locate the HTML file that you want to edit, and open it with a text editor.
  2. Locate the merged column area (indicated by the colspan attribute), for example:

    <tr>

    <th>Block</th>

    <td colspan="3">

    {block.limits.x.max-block.limits.x.min} &times;

    {block.limits.y.max-block.limits.y.min} &times;

    {block.limits.z.max-block.limits.z.min}

    </td>

    </tr>

  3. Comment out the cell you'd like to delete, for example:

    <!--{block.limits.x.max-block.limits.x.min} &times;-->

  4. Because the cell you are deleting is in a merged column, you must decrease the colspan value:

    <td colspan="2">

  5. Save the file.
  6. Test the template to check if you are satisfied with the results.

To remove a cell in a merged row:

  1. In your custom template set, locate the HTML file that you want to edit, and open it with a text editor.
  2. Locate the merged row area (indicated by the rowspan attribute), for example:

    <tr>

    <td rowspan="3">{strategy}</td>

    </tr>

    <tr>

    <th>Diameter</th><td>{tool.diameter}</td>

    </tr>

    <tr>

    <th>Tip radius</th><td>{tool.tip_radius}</td>

    </tr>

    <tr>

    <th>Length</th><td>{tool.length}</td>

    </tr>

  3. Comment out the row you'd like to delete, for example:

    <!--<tr>

    <th>Diameter</th><td>{tool.diameter}</td>

    </tr>-->

  4. Because the cell you are deleting is a part of a merged row, you must decrease the rowspan values:

    <td rowspan="2">

  5. Save the file.
  6. Test the template to check if you are satisfied with the results.

Tip: You can reopen the file, and delete the commented string from the code.

Was this information helpful?