Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

DWG export with predefined layers

Status
Not open for further replies.

stekicar

Industrial
Jul 25, 2006
20
US
My customer requires that all documentation come in DWG with their title block and layering scheme. This means that everything must be placed into predefined layers. There is a layer for solid lines, dahsed lines, center line, etc. I tried to make layers in Pro/E drawing and to name those layers per customer request. I was able to make rules (per layer) for dimensions, axis, annotations, but I cannot make rules that will place all solid lines into one layer, all dashed lines into another one, etc.
Also, although I select that colors should be "per layer" for given items in DWG export window, when I open DWG file, every line's, circle's, etc. color is defined separate instead of per layer.
Does anyone knows how to solve this?
 
Replies continue below

Recommended for you

I found a solution for it by setting "intf_out_layer" to "part_layer" which makes standard set of layers:

DXF/DWG Layer Name - Entities

<part_name>_Dxf_Axis - All axes
<part_name>_Dxf_Continuous_Line - All continuous lines
<part_name>_Dxf_Hidden_Line - All hidden lines
<part_name>_Dxf_Dimension - All dimensions
<part_name>_Dxf_Text - All text
<part_name>_Dxf_Hatching - All hatching
<part_name>_Dxf_Table - All tables
<part_name>_Dxf_Balloon - All balloons
<part_name>_Dxf_Format - All format entities

And then, make a dxf_export.pro file like this:

! This is a DXF/DWG export mapping file example.
! It should be used as a reference for mapping
! color/layer/linestyle/text font functionality
!===================================================================
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 7
map_color HIDDEN_COLOR 8
map_color SHEETMETAL_COLOR 7
map_color CURVE_COLOR 7
map_color VOLUME_COLOR 7
map_color SECTION_COLOR 5
map_color PRESEL_HIGHLIGHT_COLOR 7
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 2
map_color QUILT_COLOR 2

map_layer DXF_AXIS 1
map_layer DXF_CONTINUOUS_LINE 2
map_layer DXF_HIDDEN_LINE 3
map_layer DXF_DIMENSION 4
map_layer DXF_TEXT 5
map_layer DXF_HATCHING 6
map_layer DXF_TABLE 7
map_layer DXF_BALLOON 8
map_layer DXF_FORMAT 9

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

Problem that I have now is that every layer has a file name in it and I do not know how to get rid of it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top