cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

dxf_export settings

Newbie

dxf_export settings

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?

17 REPLIES 17

Re: dxf_export settings

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.

Re: dxf_export settings

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

Re: dxf_export settings

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.

Re: dxf_export settings

There are some others, but I do not have them in my prints. I will be using their title block and our geometry with given layers.

Re: dxf_export settings

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?

Re: dxf_export settings

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?

Re: dxf_export settings

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.

Re: dxf_export settings

Jakub,

Is it possible in CREO drawing to filter all hidden lines and place them in HID (hidden) layer? I am trying to minimize work that has to be done to comply with customer's requirements.

Re: dxf_export settings

Pretty demanding customer.

I use to just break all the entities in BricsCAD/AutoCAD, but I would like to figure out how to avoid that, cause these DWG files tend to get pretty large then. Well, I know there is no other way.

Have you got drawing layers that take all the dims, tables or notes by a rule?

The thing about printing from DWG files exported from Pro/E is that you won't be able to set the coloring scheme for printing in ACAD (via *.ctb file).

You will have trouble with drawing printing in yellow, and other colors.

https://www.synthx.com/tom/sy_tip_0010.htm

I think those layers named DEFAULT_1, DEFAULT_2 and DEFAULT_3 could be deleted using LISP.