Add a new setup assembly to File New

Add a new setup assembly to File
New
© Siemens AG 2012. All Rights Reserved.
Setup Libraries
 History
 Introduced in NX 1, Palettes in NX 2, File New access in NX 6
 List of setup templates is in a library, not an opt file
 Why?
 Setups are classified and organized
 Each setup can have a unique set of type templates, which is used
whenever the setup is opened. No need to change configuration or template
set.
 Assemblies can be created automatically
 Setup assemblies can use File New to access
Page 23
© Siemens AG 2012. All Rights Reserved.
Siemens PLM Software
Setup Classification with Libraries
 Classify setups with
NX libraries
 Associate type templates
with setups, not .opt file
 Setup reference is stored
in the part, not session
 Library is in resource\template_dir\template.dat
 Optional – use configuration cam_library.dat
• LIBRARY_SETUP_TEMPLATE
Page 24
© Siemens AG 2012. All Rights Reserved.
Siemens PLM Software
Configuration file
• Cam_library.dat contains this line
…
LIBRARY_SETUP_TEMPLATE,
${UGII_CAM_LIBRARY_TEMPLATE_DIR}template.def,
${UGII_CAM_LIBRARY_TEMPLATE_DIR}template.tcl
• Do not switch between library mode and regular mode
• If you use setup libraries, add this to cam_general,
or change the default to cam_library
• Cam_library.dat also classifies output files.
…
LIBRARY_CAM_OUTPUT,
${UGII_CAM_LIBRARY_TEMPLATE_DIR}cam_output.def,
${UGII_CAM_LIBRARY_TEMPLATE_DIR}cam_output.tcl
Page 25
© Siemens AG 2012. All Rights Reserved.
Siemens PLM Software
Setup Assemblies
 Setup template part is an assembly
 Contains a target component
 Can contain other geometry and components
 Mating conditions
 Creating a setup for your part
 Open the part you want to machine
 New part with a setup is created
 Your work part is now a component (replaces the target)
 Setup templates provided for General and CAM Express
 General uses mill_planar_assy.prt mill_planar_target.prt
 New Template includes machine
Page 26
© Siemens AG 2012. All Rights Reserved.
Siemens PLM Software
Creating your own setup assembly
 Create an assembly
 Create setup in the top level part
 Add components
 Assign attribute to target component
 CAM_COMPONENT_TYPE=Target
 File  Export  Setup Template
 Assign attributes
 Select Type templates
 Entry will be added to template.dat
Page 27
© Siemens AG 2012. All Rights Reserved.
Siemens PLM Software
Manually Editing the Setup Library -
resource\template_dir\template.dat
 For each setup in the library
 LIBRF is a unique identifier
 Stored in the setup
 Inch 0-100, Metric 101-200, User 201+
 TMPL_CLASS identifies the complete class hierarchy of the template
 Sorted by functionality AND by units (for Palettes)
 SETUP_TEMP is the complete path for the setup template part file
 TYPE_TEMP is a list of type template associated with SETUP_TEMP
 Replaces the opt file
 Restored using LIBRF
 ATT1 is attribute 1 (description), used only for selection
 ATT2 is attribute 2 (units), used only for selection
Page 28
© Siemens AG 2012. All Rights Reserved.
Siemens PLM Software
What’s in the Setup Library File?
LIBRF
TMPL_CLASS
SETUP_TEMP
# Inch 001 - 100
DATA
| 001| general.| ${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_planar.prt|
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_planar.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_contour.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_multi-axis.prt
TYPE_TEMP
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}drill.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}hole_making.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}turning.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}wire_edm.prt| General | Inch
…
# Inch palette for NX2
ATT1
ATT2
DATA
| 001| inch.| ${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_planar.prt|
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_planar.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_contour.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_multi-axis.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}drill.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}hole_making.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}turning.prt
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}wire_edm.prt| General | Inch
#
# Metric 101 - 200
…
Page 29
© Siemens AG 2012. All Rights Reserved.
Siemens PLM Software
File New
 Add your own .pax file with your
setup assemblies to
UGII_USER_DIR\startup
 Read all the help, or just copy
what we do 
 CAM is different that the other
templates
 Only Master Model
 Must be a library setup
assembly
Page 30
© Siemens AG 2012. All Rights Reserved.
Siemens PLM Software
Sample File New .pax file entry
<Presentation name="Manufacturing Templates" bitmap="sheet_and_block.bmp"
FileNewTab="Manufacturing" application="All" UsesMasterModel="Yes"/>
<PaletteEntry id="d1">
<References/>
<Presentation name="My Test Setup" description="What a Great Demo Setup">
<PreviewImage type="UGPart"
location="${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_planar_assy.jpg"/>
</Presentation>
<ObjectData class="CamTemplate“>
<Filename>
${UGII_CAM_TEMPLATE_PART_ENGLISH_DIR}mill_planar_assy.prt</Filename>
<Configuration>${UGII_CAM_CONFIG_DIR}cam_library.dat</Configuration>
<LibraryClassPath>GENERAL</LibraryClassPath>
<Units>English</Units>
<UsesMasterModel>Yes</UsesMasterModel>
</ObjectData>
</PaletteEntry>
Page 31
© Siemens AG 2012. All Rights Reserved.
Siemens PLM Software
`