Skip to main content
Dale_Rosema
23-Emerald III
23-Emerald III
August 31, 2018
Solved

Config.pro option to change color of export to DWG's

  • August 31, 2018
  • 2 replies
  • 28018 views

Last year I added a config.pro option below which allowed .dwg file to be black & white (WF5).

intf2d_out_dxf_mapping_file   (Directory path to dxf_export.pro)

 

We are now switching to Creo 4.0 and it is back to the color of the drawing on the screen (Yellow with white [black on the scree] background. Very hard to see on a file viewer.

 

I could not find that config option while searching Creo 4.0 options. Does anyone have a suggestion for another one?

Thanks, Dale

Best answer by Dale_Rosema

@Dale_Rosema wrote:

Last year I added a config.pro option below which allowed .dwg file to be black & white (WF5).

intf2d_out_dxf_mapping_file   (Directory path to dxf_export.pro)


I found my error - instead of directory path to dxf_export.pro is needs to be directory_path/folder/subfolder/dxf_export.pro

 

Since I had forgot to add the filename to the end of the path, it wasn't finding the file.

** So confusing as to when to point to the directory and when to point to the file  🙂

 

Thanks Martin for all you help in this!

2 replies

24-Ruby III
September 3, 2018

Hi,

 

I found INTF2D_OUT_DXF_MAPPING_FILE option in E:\PTC\Creo4_M060\Creo 4.0\M060\Common Files\text\config.cdb file. It seems to me that the option must work. Maybe you have to add it manually into config.pro.

Dale_Rosema
23-Emerald III
23-Emerald III
September 4, 2018

I had added it to the manually to the config.pro. Do you know what file it is looking for? I have a file: "dxf_export.pro" that looks like a pen table with all values set at "7".

24-Ruby III
September 4, 2018

Hi,

 

let me explain following line extracted from E:\PTC\Creo4_M060\Creo 4.0\M060\Common Files\text\intf_configs\dxf_export.pro

map_color       GEOMETRY_COLOR            7

 

This line tells that visible geometry edges (GEOMETRY_COLOR in Creo) will get Autocad color no. 7 (white) in DWG/DXF.

 

You can see Autocad color numbers on web page http://sub-atomic.com/~moses/acadcolors.html.

I guess that in dxf_export.pro you can also use color names (eg. yellow, white, ...) or RGB values instead of numbers.

 

map_color       GEOMETRY_COLOR            7

map_color       GEOMETRY_COLOR            White

map_color       GEOMETRY_COLOR            255,255,255

 

Therefore the above lines have the same meaning.

Dale_Rosema
23-Emerald III
Dale_Rosema23-Emerald IIIAuthorAnswer
23-Emerald III
September 7, 2018

@Dale_Rosema wrote:

Last year I added a config.pro option below which allowed .dwg file to be black & white (WF5).

intf2d_out_dxf_mapping_file   (Directory path to dxf_export.pro)


I found my error - instead of directory path to dxf_export.pro is needs to be directory_path/folder/subfolder/dxf_export.pro

 

Since I had forgot to add the filename to the end of the path, it wasn't finding the file.

** So confusing as to when to point to the directory and when to point to the file  🙂

 

Thanks Martin for all you help in this!