News:

The purpose of these forums is to discuss TurboCAD.  Please keep the discussion of other products to compatibility issues or how the other software can be used with TurboCAD.

Main Menu
TurboCAD 2026 Platinum box
Now available

TurboCAD 2026.2

The latest update for TurboCAD 2026. It installs over any 2026 build and keeps your activation, drawings and settings. Get it from the Start Page or Help > Check for Update.

Fighting with colors in DXF files

Started by jgmick, January 03, 2021, 07:38:23 AM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

jgmick

Running TC2019 platinum 64 bit, Ver 26

When I want to fab something that can be cut out on an NC mill I export the item as a DXF.  I then run it thru a CAM processor to generate code for the mill.  I am having a running fight importing the DXF into the CAM processor due to the colors assigned to the elements of the part and recorded in the DXF.  Specifically, my CAM processor is set up with a white background (changed recently to light grey just because of this problem.)  Opening up the DXF shows features in white (255,255,255).  This is inconsistent, some times they come in as other colors. 

I tried running a simple test.  Created a drawing from scratch, added 8 layers on top of Layer 0 using the default names, then put a single line on each layer.  Saved the DXF, opened it in CAM, Bingo! Layer 0 was white, all others were something else (Didn't record it, don't care, it was something other than white.)  Made a simple rule, put stuff I want to work with on other than layer 0.

Today I followed that rule.  Opened a DXF in CAM, everything was white (3 layers).  So much for that rule.

I can, with some effort, edit the line colors in the CAM processor, but I would really like to solve the problem at the DXF source.  I poked around in TC to see if there is anything I can do to set up DXF saves to solve this.  Didn't find any options.  I know I can go thru the drawing before saving it as DXF and assign pen colors but that is also a pain. (and I haven't tested that to see if it really comes into CAM as those colors.)

I am working almost exclusively in 2D, seldom using any colors for anything.  The drawings (obviously) are black lines on a white background.  I would just like to see that in the DXF.  Is there some generic solution to this?

Alvin Gregorio

Check your Options/Background_Color "Convert foreground color..." option.

I assume, from what you wrote, that is ticked.  Try unticking it; Save (as .tcw); then Save As .dxf.
   (or vice-versa... it's worth a try both/either way)
Alvin Gregorio
TurboCAD: v2024_Plat (31.0.77.1); v2022_Plat; v2020_Plat; v2019_DL; v20.2_PP
Lenovo Thinkpad P20Y laptop; Windows 11 Pro; i7-11800H 2.30GHz, 8-core; 32GB RAM; NVIDIA T1200
3D_Printer: Ender-3 S1 (NOT Pro)

jgmick

Just happened to be working on a part when I read your suggestion.  I had already saved the part as both .tcw and .dxf.  Opened it in CAM.  Had 2 layers in addition to layer 0.  One layer was colored, the other was white.

Went back and opened the .tcw file, unchecked the box, hit apply, saved the .tcw, then saved as .dxf.  Went back to the CAM process,  re-opened the dxf.  No change. 1  layer white, one some color (78,0,0, odd looking but not white) Back into TC, opened the dxf directly and looked at options/Background_color.  The box was still unchecked.  Re-saved the dxf.  Still no change in the CAM program. 

Sorry, this one didn't work.

jgmick

Some days you are just doomed to step in it.

Disregard the previous post.  For whatever reason (stoopid, incompetent; other?)   After I finished the post I started working on the dxf in CAM and it hit me that it wasn't the right part.  I had opened the wrong dxf.

Closed it out, went looking in the directory again, sorted it by date  (what's in a name?), found the right part and opened it. Layer 0 (which was empty) still showed as white, but all of the other layers were colored (79,0,0, weird but not white)

Looks like your suggestion DID work.