Mapping Files in Creo Data Exchange
About a Mapping File
A mapping file is a text configuration file that defines rules for translating attributes during data exchange. It indicates to Creo how to map layers, colors, line styles, and fonts when importing or exporting formats like DXF and DWG.
A mapping file can be used for:
• Maintaining company or customer drafting standards.
• Ensuring consistent import and export across teams and projects.
• Reducing manual fixes after import and export.
Mapping File location
The location of the mapping file can be determined by one of the following two options:
• Place the mapping file in the working directory. In this case, the file name must be dxf_export.pro.
The Structure of a Mapping File
The mapping file has a .pro extension. It contains import or export options set to your preference.
• Color mapping:
map_color <SMT entity name> <DXF color>
For Sheetmetal only:
map_ent_color <SMT entity name> <DXF color>
◦ Possible values for SMT entity name are: geometry, bend_lines, flatten_forms, bend_axes, bend_notes, outside_mold_lines, bounding_box, bounding_box_dimensions, and width_and_length.
◦ Possible values for DXF_color are: color name (for example: red), DXF color code (for example: 1), or RGB value (for example: 255,0,0).
• Layer mapping:
map_layer <SMT layer name> <DXF layer name>
A visible and a hidden layer cannot be mapped to same name.
• Line font mapping:
map_line_style <Creo line font> <DXF line font>
◦ Possible values for Creo line font are: SOLIDFONT, DASFONT, or other font typeface.
◦ Possible values for DXF line font are: CONTINUOUS, DOT, CENTER, PHANTOM, or DASHED.
• Text font mapping:
map_font <Creo font> <DXF font>