Export Template Tutorial

From Tube Software Wiki
Jump to: navigation, search

Introduction

Extemp01.png

This tutorial will step through the process of creating a custom export template using the Export Template plug-in.

The export template plug-in allows parts to be exported to a file with custom formatting that can include die, material, and part design information.










Tutorial

Step 1

Go up to the top of the window and click on the Settings menu on the main menu bar. Select the Export Template option from the drop down menu as shown below.

Extemp02.png



Step 2

This will open the export template library. The list of templates is shown to the left. The area where the template will be designed is in the middle. On the far right, there will be a categorized list of variables. The variables will act as placeholders for the actual part information that will be included in the file.

Extemp03.png




Step 3

First, click the add button to start a new export template design.

Extemp04.png




Step 4

At the top, the name and the file extension for the template can be provided.

In the name field, enter "Export Template Tutorial" and in the file extension field, enter "txt".

Extemp05.png




Step 5

Now the template will be designed.

First, click in the text box to place the cursor. Type in "Die Name:" followed by one space.

Extemp06.png



Step 6

Next, the first variable will be placed.

Variables are added to template designs from the list on the right. The variables are split into 4 categories: Die, Material, Design, and Tables. Each category can be expanded by clicking the small plus icons.

Expand the Die section and double click the Name variable to add it to the design. The variable ($Die Name%) should be placed after the text that was added in the previous step.

Extemp07.png




Step 7

Next, click at the end of the first line of text to place the cursor and hit the enter key on the keyboard to start a new line. Type in "Material:" followed by one space.

Extemp08.png


Now the material name variable will be placed. Expand the Material section in the variables list by clicking the plus icon next to it. Double click on the Name variable as shown below. The variable ($Mat Name%) should be placed right after "Material:".

Extemp09.png




Step 8

Next, click at the end of the last line of text to place the cursor. Hit the enter key twice to start a new line a couple rows down from the previous line of text.

Type in "# of Bends:" followed by one space as shown below.

Extemp10.png


Now the bend number variable will be placed. Expand the Design section in the variables list by clicking the plus icon next to it. Double click on the Number of Bends variable as shown below. The variable ($Number Bends%) will be placed right after "# of Bends:".

Extemp11.png




Step 9

Click at the end of the last line of text and hit the enter key. Then type "Cut Length:" followed by one space.

Extemp12.png


Now the bend number variable will be placed. Double click on the Cut Length variable as shown below. The variable ($Cut Length%) will be placed right after "Cut Length:".

Extemp13.png




Step 10

Click at the end of the last line and hit the enter key three times. In this step, an LRA table will be added. First, the columns will be labeled.

Type in "Bend", hit the tab key, then type "Length", hit the tab key, type in "Rot.", hit the tab key, and then type in "Angle."

After "Angle", hit the enter key.

Extemp14.png


Now the LRA table variable will be added. In the variable list, expand the Tables section by clicking the plus icon next to it. Double Click on the LRA variable as shown below. The variable ($LRA Data Table%) will be placed below the text added previously.

Extemp15.png



Now the LRA table settings will be adjusted. In the Bend Data Settings' section near the bottom of the window, the columns, delimiter, and format options are shown.

Extemp16.png

  • Each column can be customized using the drop down menus. In this tutorial, the table will only have 3 columns. Select Length/Location in the first menu, Rotation in the second menu, and Angle in the third menu. Leave the others set to Blank.
  • The delimiter/separator determines what is placed between each column in the LRA table. Click the option next to Tab.
  • Check the box next to Show Bend Numbers. This will add a column at the beginning of the chart listing each bend number.
  • Check the box next to Even Spacing. This will ensure each column is aligned properly.





Step 11

Next, click at the end of the last line of text. Hit the enter key three times.

Type in "X", hit the tab key twice, type "Y", hit the tab key twice, then type "Z".

After Z, hit the enter key.

Extemp17.png


Now the XYZ table variable will be added. Double Click on the XYZ variable as shown below. The variable ($XYZ Data Table%) will be placed below the text added previously.

Extemp18.png



Now the XYZ table settings will be adjusted. In the XYZ Data Settings section near the bottom of the window, the delimiter and format options are shown.

Extemp19.png

  • The delimiter/separator determines what is placed between each column in the XYZ table. Click the option next to Double Tab.
  • Check the box next to Even Spacing. This will ensure proper column alignment.




Step 12

The export template is now complete. Click the save button, then click the close button. The template (Export Template Tutorial) will be added to the template list on the right.

Extemp20.png



Step 13

Note: The following step is optional. It will go through the process of actually exporting the file using the template created in this tutorial.


First, have a complete part design open. (The one used here is the part created in the Linear 2D Designer Tutorial.)


Next, go up to the main menu bar and click the export menu. Select the .txt/.* option.

Extemp21.png


In the menu that appears, choose the Export Template Tutorial from the drop down menu.

Extemp22.png



Give the file a name, "Export Template", and click the save button.

Extemp23.png



Now, locate the txt file and open it to see its contents.

Extemp24.png




Step 14

The tutorial is complete!

See the Export Template plug-in page for more information.