NX Data Exchange Tools Best Practices
Keith Powell
GTAC Product Support
(800) 955-0000, Option 2-1-5
[email protected]
1
UGS Corp. 2005. All rights reserved.
Introduction
fData Exchange Overview
fTools
fBest Practices
fHelpful Resources
fQ&A
2
UGS Corp. 2005. All rights reserved.
Data Exchange Definition
f
Data Exchange
The process of transmitting data from one CAx
application to another
3
UGS Corp. 2005. All rights reserved.
Data Exchange Process
f
Assess Your Needs
f
Downstream Usage
Data Types (Solids, Assemblies, Drafting, etc.)
Common Formats (Parasolid, IGES, STEP, Other?)
Determine Translator Options
Evaluate the Results
4
UGS Corp. 2005. All rights reserved.
NX Data Exchange Tools
f
IGES
STEP AP203/AP214
DXF/DWG
2D Exchange
CatiaV4 Interface
CatiaV5 Interface
Theorem Catia V4 CADverter
Parasolid X_T
STL
JT
5
UGS Corp. 2005. All rights reserved.
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
X
Part Attributes
Colors/Layers
X
X
X
X
X
PMI
X
X
X
X
X
X
X
X
Drawings
(1)
X
X
(2)
Assemblies
X
X
X
X
Faceted Body
Solids
IGES
STEP AP203
STEP AP214
DXF/DWG
2D Exchange
CatiaV4 Interface (3)
CatiaV5 Interface (3)
Theorem CADverter
JT
Parasolid X_T
STL
Surfaces
Wireframe
Entity Support Matrix
X
X
(1) IGES exports the faces of solid bodies as trimmed surfaces and imports IGES solids as surfaces into NX.
(2) DXF/DWG exports the faces of solid bodies as trimmed surfaces.
(3) Windows Only.
6
UGS Corp. 2005. All rights reserved.
NX Data Translator Interfaces
f
File Open/Save As
f
File Import/Export (GUI)
f
Modified Settings Options
External (xlatorui)
f
Easy to Use
Multiple File Processing Capability
Command Line (CLI)
7
UGS Corp. 2005. All rights reserved.
Best Practices
f
Settings Files
Assemblies
Entity Filtering and Mapping
Drawings
2D Exchange
8
UGS Corp. 2005. All rights reserved.
Settings
f
Settings Files
f
Text file containing Keyword/Value combinations
which control translator functionality
Save customized settings for re-use
Customer Preferences
Project Requirements
Naming Considerations
9
UGS Corp. 2005. All rights reserved.
Settings
f
Translator Default
Directories
f
New in NX3
Define Default Locations
for IGES, STEP and
DXF/DWG Output
Very useful on Windows
File Utiltities
Customer Defaults
10
UGS Corp. 2005. All rights reserved.
Customer Default Preferences and
Imported Data
f
Applies to IGES, DXF/DWG, STEP AP203 & STEP
AP214
Import ignores Customer Defaults in Some Cases
File Open
File Import to a New Part
Preferences Come from Translator Base Parts
BASE_PART_IN = igesnullnx40_in.prt
BASE_PART_MM = igesnullnx40_mm.prt
11
UGS Corp. 2005. All rights reserved.
Customer Default Preferences and
Imported Data
f
Workarounds
f
Use File New to create Inch and Metric part files
f
P:\Parts\nx40_in.prt, nx40_mm.prt
2 Approaches
f
Substitute the existing Base Parts with the New Parts
f
ingesnullnx40_in.prt ingesnullnx40_in.prt-orig
P:\Parts\nx40_in.prt ingesnullnx40_in.prt
Callout New Parts in the Settings File
f
BASE_PART_IN = P:\Parts\nx40_in.prt
BASE_PART_MM = P:\Parts\nx40_mm.prt
12
UGS Corp. 2005. All rights reserved.
Assemblies
f
Export Assemblies with Mixed Unit Components
f
IGES, STEP, DXF/DWG
Mixed Units Unsupported in NX Class Selection
Export from Existing Part or via xlatorui
13
UGS Corp. 2005. All rights reserved.
Assemblies
f
Assembly Loading on Export
f
Default Behavior
f
Assembly Directory
Modify Settings
Assembly Load Options
Save New Values
f
Naming Considerations
UGII_LOAD_OPTIONS
variable
f
System Variable
Settings File
14
UGS Corp. 2005. All rights reserved.
Entity Filtering
f
STEP
f
Remember: Surfaces and Wireframe are turned off by
default
15
UGS Corp. 2005. All rights reserved.
IGES Color Mapping
f
8 Standard Colors in IGES Specification vs. 256
Colors in NX
Settings File Option: COLOR_FONT_MAP
f
IGES Color Number
f
Color Definition
f
Maps NX RGB to closest IGES color
Uses RGB from current NX color table
GTAC Quarterly, Q1, 2004
16
UGS Corp. 2005. All rights reserved.
DXF/DWG Import Metric Units
f
Units Default to Inch
Modify Settings
Metric Settings File
File Open Considerations
17
UGS Corp. 2005. All rights reserved.
DXF/DWG Font Mappings
f
DXF/DWG Font Mappings
f
Bi-Directional Control of Character, Color & Line Font
Mappings
Set-up
dxfdwg.def
f
LINEFONT_MAPPING_FILENAME=lf.def
COLOR_MAPPING_FILENAME=clr.def
CHARACTERFONT_MAPPING_FILENAME=cf.def
18
UGS Corp. 2005. All rights reserved.
DXF/DWG Font Mappings
f
Character Font Mapping cf.def
! cf.def -- The following format is used to map fonts on import and export.
! import: DXF font = UG Font, Aspect Ratio
! export: UG font = DXF Font, Aspect Ratio
import : italic.shx = futura, 3.33
import : isocp.shx = cyrillic, 3.33
import : arial.ttf = lubalin, 3.33
export : blockvar = isocp.shx , 0.8
export : blockfont = italic.shx , 0.8
import : times.ttf = raster, 1.00
! The following is used to replace a set of characters with
! user defined characters.
! replace : for font check = checking for font
replace : "abc" = "def"
UGS Corp. 2005. All rights reserved.
19
DXF/DWG Font Mappings
f
Color Font Mapping clr.def
clr.def -- The following is used to map colors from DXF to UG (import)
and UG TO DXF (export).
! Color numbers and names can be specified on import.
import:2 = 5 ! This has been added to convert from yellow to
magenta(ug)
import : " 4 " = " 11 "
import : "7" = orange
export:11=2 ! Check for export comment too !!
20
UGS Corp. 2005. All rights reserved.
DXF/DWG Font Mapping
f
Line Font Mapping lf.def
! lf.def -- Line font mapping is used to map different fonts on import
and
! export. The format is as follows:
! import: DXF_FONT = UG_FONT
! export: UG_FONT = DXF_FONT
import:CONTINUOUS = UF_OBJ_FONT_PHANTOM
export:UF_OBJ_FONT_PHANTOM = CONTINUOUS
21
UGS Corp. 2005. All rights reserved.
Export Drawings to DXF/DWG
f
Export from Existing Part (GUI)
Turn Off Surfaces and Solids
Choose Drawings Option
22
UGS Corp. 2005. All rights reserved.
Export Large Assembly With 2D
Exchange
f
Extract Edges in Drawing Views
File Options Load Options set Load Components
to No Components
Save the settings file, example:
f
Modify the %UGTO2D_DIR%\usto2d.def
f
P:\Settings\load_options_multi.def
ASSEM_OPTIONS = P:\Settings\load_options_multi.def
Export from GUI
23
UGS Corp. 2005. All rights reserved.
2D Exchange Multi File Conversion
ugto2d_multi.def Settings File Options:
INPUT_PARTS_DIR =
OUTPUT_PARTS_DIR = P:\Results\
INPUT_PARTS_LIST = &
P:\Parts\project1\block1.prt,
P:\Parts\project2\block2.prt,
P:\Parts\project3\block3.prt
OUTPUT_PARTS_LIST = &
block1_2d.prt,
block2_2d.prt,
block3_2d.prt
DEFAULT_DRAWING_CNV = _ALL_
24
UGS Corp. 2005. All rights reserved.
2D Exchange Multi File Conversion
NX Command Line:
> %UGTO2D_DIR%\ugto2d.exe d=ugto2d_multi.def
Use xlatorui to convert 2D results to DXF,DWG or IGES
25
UGS Corp. 2005. All rights reserved.
Prepare NX Data for Export
Isolate Objects to Export
f
Layers
Extract to a New Part
Heal Geometry
f
Removes Tiny Objects
Removes and Heals Sliver Faces, Spikes and Cuts.
Examine Geometry
f
Repair Data As Needed
26
UGS Corp. 2005. All rights reserved.
Data Validation After Import
f
Review the Log File
Visual Inspection
Examine Geometry
Heal Geometry
27
UGS Corp. 2005. All rights reserved.
When Problems Occur
Note any error messages
Check the Translator Log File
Check the NX Log File (GUI)
Note the steps taken leading to the error
28
UGS Corp. 2005. All rights reserved.
Data Exchange Best Practices
f
Helpful Resources
f
NX Documentation
UGSolutions Symptom/Solution Search
GTAC Quarterly
NX Translator Newsgroup
GTAC Translator Support
(800) 955-0000, Option 2-1-5
29
UGS Corp. 2005. All rights reserved.
Data Exchange Best Practices
f
Summary
f
Determine Your Data Exchange Needs
Check Your Data
Choose Your Tool
Choose Your Interface Option
Check Your Results
30
UGS Corp. 2005. All rights reserved.
Data Exchange Best Practices
Questions?
31
UGS Corp. 2005. All rights reserved.
Data Exchange Best Practices
Keith Powell
[email protected]
(800) 955-0000, Option 2-1-5
www.ugs.com
support.ugs.com
32
UGS Corp. 2005. All rights reserved.