A conversion control file is divided into two sections, General and Entity, each with a header.
Both sections begin with the section name in square brackets, followed by the data for the section. Comment lines begin with a semicolon.
The following is an example of a CCF file:
[General]
Verbose=0 (0/1 switch off/on a protocol file)
RetainBackup=0 (0/1 creates no/a backup file with the extension .old)
WBlockSave=0 (0/1 determines whether the converted drawing is saved with wblock/qsave)
Layer0Convert=1 (0/1/2 determines that there is no conversion/objects in blocks are not touched/all objects on layer 0 are converted)
[Entity]
Layername:Linetype:Color:Lineweight => Layername:Linetype:Color:Lineweight
0:BYLAYER:BYLAYER:BYLAYER => *:*:*:*
CONTOUR:BYLAYER:5:BYLAYER => AM_6:BYLAYER:BYLAYER:BYLAYER
CONTOUR:BYLAYER:BYLAYER:BYLAYER => AM_0:BYLAYER:BYLAYER:BYLAYER
EDGES:BYLAYER:250:BYLAYER => AM_5:BYLAYER:BYLAYER:BYLAYER
EDGES:BYLAYER:BYLAYER:BYLAYER => AM_5:BYLAYER:BYLAYER:BYLAYER
EDGES:DASHDOT:*:BYLAYER => AM_3:BYLAYER:BYLAYER:BYLAYER
Converting from an ALZ file to a CCF file requires minimal editing to the CCF file. As shown in this example, you can either keep the text from the ALZ file exactly as is done with the EDGES:BYLAYER: lines, or you can change them into a wildcard character.
The analysis file is a guide for writing your CCF file. You can modify it. The analysis file sorts alphabetically.
The conversion file modifies a drawing so that layer name, linetypes, colors, and lineweights convert to a new drawing format.
The AMCONVDWG command can perform a conversion on the currently loaded drawing. Alternatively, if you start this command from the Script Generator dialog box, you can select the files to convert.
Conversion Requirements
- Two files must exist before you start AMCONVDWG: a conversion control file (CCF, which usually has the extension .ccf), and a layer definition file, which is an AutoCAD DWG file.
- The base name of the two files must be the same. If the control file name for converting from the hypothetical application XYZ to AutoCAD Mechanical toolset is XYZ2GEN.CCF, then the layer definition file must be called XYZ2GEN.DWG. The XYZ2GEN.DWG file must contain all layers (in one group), linetypes, and so on, to convert, with their attributes already defined. These files must be in the same directory.