×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

DWG export with predefined layers

DWG export with predefined layers

DWG export with predefined layers

(OP)
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?

RE: DWG export with predefined layers

(OP)
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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources