To Convert a Current Drawing From One Format to Another (AutoCAD Mechanical Toolset)

Use the Script feature to generate script files. Several options are available from the Generate Script dialog box.

Use AMANALYSEDWG to analyze a current drawing, which can then be used as the basis for generating a conversion file. Use AMCONVDWG to convert a current drawing. Use AMSCRIPT to convert a selected set of drawings.

A simple example is used here to demonstrate how to generate a script file for converting DXF drawing files to DWG drawing files.

  1. At the Command prompt, enter AMSCRIPT.
  2. In the Generate Script dialog box, under Selected Function list, select DXF2DWG Convert DXF to DWG.
  3. Select the files to which the Lisp routine is to be applied. The default is the current drawing.
  4. Choose OK.
  5. A script file with the file name script.scr is created. Specify a directory for this script file.
  6. When prompted to start the script, choose Yes.