Skip to main content
10-Marble
February 9, 2014
Question

dxf_export settings

  • February 9, 2014
  • 3 replies
  • 17727 views

We have a customer that requires that all AuroCAD DWG files have cetrain layer named per their list, same goes for color and linetypes. I have managed to make color and linetypes show up correct in DWG file. Only problem left is that I cannot force Creo to export layers per my settings (deja vu anyone).

What I did so far is the following:

I set "intf_out_layer" to "part_layer"

I set "intf2d_out_dxf_mapping_file" to "dxf_export.pro" file

Here is the dxf_export.pro file:

map_color BACKGROUND_COLOR 186
map_color DIMMED_COLOR 9
map_color LETTER_COLOR 2
map_color HIGHLIGHT_COLOR 2
map_color EDGE_HIGHLIGHT_COLOR 2
map_color GEOMETRY_COLOR 3
map_color HIDDEN_COLOR 6
map_color SHEETMETAL_COLOR 7
map_color CURVE_COLOR 7
map_color VOLUME_COLOR 7
map_color SECTION_COLOR 135
map_color PRESEL_HIGHLIGHT_COLOR7
map_color SELECTED_COLOR 7
map_color SECONDARY_SELECTED_COLOR 7
map_color PREVIEW_GEOM_COLOR 7
map_color SECONDARY_PREVIEW_COLOR 7
map_color DATUM_COLOR 4
map_color QUILT_COLOR 2

map_layer DXF_AXIS CEN
map_layer DXF_CONTINUOUS_LINE OBJ
map_layer DXF_HIDDEN_LINE HID
map_layer DXF_DIMENSION DIMS
map_layer DXF_TEXT DIMS
map_layer DXF_HATCHING HATCH
map_layer DXF_TABLE DIMS
map_layer DXF_BALLOON DIMS
map_layer DXF_FORMAT DIMS

map_line_style solidfont bylayer
map_line_style phantomfont PHANTOM
map_line_style ctrlfont CENTER
map_line_style hiddenfont HIDDEN
map_line_style bylayerfont bylayer
map_line_style dashfont bylayer
map_line_style ctrlfont_s_l bylayer
map_line_style ctrlfont_s_s bylayer
map_line_style ctrlfont_l_l bylayer
map_line_style dashfont_s_s bylayer
map_line_style phantomfont_s_s phantom
map_line_style ctrlfont_mid_l bylayer

map_font font simplex.shx
map_font filled bigfont.shx
!map_font isofont arial.ttf
map_font isofont isocp.shx

And this is what I get:

acad.png

As you can see, Creo exported layers and added part number names in front of map_layer names. This is because "intf_out_layer" is set to "part_layer". There are also some of the layer named DEFAULT_1, 2 and 3 which have entities that are not specified in dxf_export.pro file. This is my guess.

I found setting "intf_out_layer_rename_table" but I could not find anything on internet on what this is and how to use it.

So, is there any additional settings that I should set to get layers as set per dxf_export.pro file? Also, what other map_layer values I am missing in this file?

Thank you in advance.

P.S. I have one more problem. Although entities are placed in right layer, object color is set to particular color instead of ByLayer, but I think I can/will solve this in AutoCAD. Is it possible to assign color of layer in dxf_export.pro file?

3 replies

17-Peridot
February 9, 2014

I might suggest that a client who is this particular also has a routine that assures compliance. Maybe they have a script that can do this once the DXF is opened in their system.

As for the default names, what about renaming them to one that is used? If nothing else, you could just remove these lines from the DXF file. You will likely need Autocad to confirm your output files. If you simply import it back to Creo, you might just get more "artifacts" than the file brings in.

10-Marble
February 10, 2014

Customer does have verification software and every print has to pass the check. Their software, or LISP program does not fix anything.

1-Visitor
February 10, 2014

Nice. So, the only layers they want are CEN, OBJ, HID, DIMS and HATCH?

Do they want to be able to print from these DWG files exported from Creo?

I actually have to do something pretty similar, and I do that with a LISP routine in BricsCAD.

10-Marble
February 10, 2014

Does anyone know how to make a layer in drawing mode that has all hidden lines? Same question goes for layer with solid lines? What fiter rule I should use?

1-Visitor
February 10, 2014

Ok, Danilo.

If you don't convert all the drawing views to drawing entities, then you won't be able to add their hidden lines to a specific layer.

Actually, I'd like to stop you right there, and tell you that dimensions can't be converted to draft entities. So you will be stuck with those going to ACAD layer "0" as long as you have to set the config intf_out_layer set to none.

Back when I had to solve this I tried to figure out the layer rule as well, and couldn't find any.

Is your customer gonna print from the ACAD drawings?

10-Marble
February 10, 2014

Jakub,

I do not want to change dimensions to draft entities. Actually, I managed to place all dimesnsions, tables and notes on one layer. Customer's request is that dimensions MUST be associative, not draft entities.

DIMS layer shown:

dims1.png

DIMS layer hidden:

dims2.png

Customer has excell spreadsheet that pulls data from print's titleblock. Customer uses these DWG prints to print them out.

1-Visitor
April 16, 2014

Hello 2 all. I have some questions about dxf export settings.

I need to add this option to my config.pro by default, but i don't seen this option in option list.

dxf_sheet.png

To check this option creo doing:

mapkey(continued) ~ Select `export_2d_dlg` `ExportOptions_Tab` 1 `Sheets_Layout`;\

mapkey(continued) ~ Select `export_2d_dlg` `SheetOpt_Group` 1 `current_paper`;