Select to view content in your preferred language

CAD Export - colours / python script

638
1
05-23-2011 10:40 PM
GregorSkrt
New Contributor
I'm trying to batch export parts of a large feature class using python scripting:

arcpy.ExportCAD_conversion ([something.gdm\layer1, something.gdm\layer2],"DWG_R2007",exportlink+'\\'+sifkoS+".dwg", "IGNORE_FILENAMES_IN_TABLES", "OVERWRITE_EXISTING_FILES","")

Problem is that i get random colours for different layers and in different subsequent CAD files.

Can someone tell me how to define layer colour for export??

Thank you !
Tags (2)
0 Kudos
1 Reply
AnantThunuguntla
Occasional Contributor
I'm trying to batch export parts of a large feature class using python scripting:

arcpy.ExportCAD_conversion ([something.gdm\layer1, something.gdm\layer2],"DWG_R2007",exportlink+'\\'+sifkoS+".dwg", "IGNORE_FILENAMES_IN_TABLES", "OVERWRITE_EXISTING_FILES","")

Problem is that i get random colours for different layers and in different subsequent CAD files.

Can someone tell me how to define layer colour for export??

Thank you !


Hi Gregor,

You can add a field called "Color"  in the desired feature class and set the value accordingly to color which you want the layer to be.
0 Kudos