Documente Academic
Documente Profesional
Documente Cultură
by billstorrs
Labels:
Basics - Fundamentals
Customization
What's New in NX 9
NXManufacturing
Overview
Documenting the manufacturing plan and the specifics of the NC program are important pieces of the part manufacturing process. This Tech Tip
describes the steps to generate shop documentation, then to customize templates to tune the shop docs to your needs.
To do this tutorial, you need to save the following files and folders locally:
A local copy will allow you to edit and save your own templates.
2. Copy the attached Die and Shop Doc output folders to your desktop.
The Die folder contains the part files you will use and the Shop Doc output folder is an empty folder in which you will save the output.
3. Add an Environment Variable that tells Shop Docs where to find the templates:
Click OK twice.
The shopdoc_excel.tcl file inside the excel_templates folder specifies where Shop Docs will look for the excel.exe file. Example:
set execute_file {C:\\apps\\MSOffice\\Office14\\excel.exe}
If you have Excel installed, be sure this path is correct. If Shop Docs does not find Excel (or if you dont have it), then the output will be displayed
by the HTML browser only.
9. Close the html file so that only the Excel output is displayed.
Notice that the title block has been populated with data and a part image. The operation table has cycled for each operation in the selected
program.
Note: Other platforms (MacOS, Linux) will not display the output automatically.
Click one of the images in the Path Image column.
10. The image is enlarged and displayed in your default graphic viewer.
Note: You must close all output windows before generating the next output or you will receive an error.
Repeat the above steps to output a single operation or a group in the Machining Method View. Also, try using other templates in the Report Format
list.
Note: Shop Docs supports Excel 2007 and later. The above illustration shows Excel 2010. Other versions of Excel may vary slightly.
6. Check to be sure you are saving in your local copy of the /shop_doc/excel_templates/ directory on your desktop.
7. Select Save.
8. In the Publish as Web Page dialog box, select Publish.
9. Leave the edited shopdoc_template_English_operation_list_select.xlsx file open for now.
12. Click the mom_vars tab at the bottom of the shopdoc_template_English_operation_list_select.xlsx file.
13. Pick Class at the top of column B and select Filter
14. At the top of column B, pick the
15. Scroll down and check
in the toolbar.
Tool.
in the toolbar.
Select All.
19. In the Find and Replace window, pick mom_tool_diameter in the Value column.
20. Type Dia in the Find what field and click Find All.
21. In the Find and Replace window, pick mom_tool_diameter in the Value column.
REPEAT TITLE allows you to repeat the title block (defined between ###BODY START### and the ###TABLE START### markers) on each
page.
Create a new .tcl file. This determines which template to process when you select an option in the UI
Edit the .dat file to determine what you see in the user interface and which .tcl file to use
Look in the excel_templates folder (your local copy) and notice that you have created two files and the system has created a folder to support
the .htm file:
.xlsx: The Excel file containing your edits on sheet 1 and all available mom variables on sheet 2. This is your working file.
.htm: The template the system uses to create the shop doc output.
.tcl: The .tcl file that determines which .htm file to process when you select an option in the UI.
12. Key in the name of the .tcl file you just created - my_template.tcl. This connects the .tcl file to the UI selection.