View Full Version : Colours in command file
trotter
02-02-2006, 09:21 PM
I have created the following command file:
/H
/G
/TX /TN=TEXT /TH=2 /TC=2 c:\temp\shapefiles\OSAnno2.shp
/C0=0 /CFN=Color c:\temp\shapefiles\OSLine2.shp
/O c:\temp\dxf2.dxf
The color field from the OSLine2 shapefile is not being translated as the dxf polyline color. Does anyone know why?
GuthCAD Software Support
02-02-2006, 11:43 PM
Hi,
Everything looks basically ok.
When you say: The color field from the OSLine2 shapefile is not being translated as the dxf polyline color. Is it that you are just getting a single color, or is it that you are getting wrong colors?
If you are just getting a single color, try adding the switch /CC=2 (means Color Classification = unique values.)
Software Support
trotter
02-02-2006, 11:50 PM
I am getting the wrong colour. My shapefile has a field called Color which has (at the moment) the value 7 for each record.
The resulting dxf has a value of 1 in it's Color field. I want the dxf to use the value in the shapefile's Color field.
GuthCAD Software Support
03-02-2006, 12:06 AM
Yes, we can reproduce the problem here, so it looks to be a software error. We are investigating... hopefully with a solution shortly, will keep you posted
GuthCAD Software Support
03-02-2006, 05:19 PM
Hi,
(1) Please download a software update (4.0 A.15) from:
http://www.guthcad.com/download.htm
(2) A new switch setting /CPN=ACAD (or /CP=-1) is used to specify AutoCAD Pen Mapping. Also add the switch /CC=2 (Color Classification = unique values.) So your revised command file should be: /H
/G
/TX /TN=TEXT /TH=2 /TC=2 c:\temp\shapefiles\OSAnno2.shp
/C0=0 /CFN=Color /CPN=ACAD /CC=2 c:\temp\shapefiles\OSLine2.shp
/O c:\temp\dxf2.dxfHopefully it should fix it.
regards,
Software Support
trotter
03-02-2006, 07:13 PM
Fantastic, that works perfectly! Thanks for your quick response.
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.