sample.zip (218.3 KB)
import aspose.cad as cad
# Specify paths for input and output files.
inputDWG = "sample.dwg"
outputDXF = "sample_out.dxf"
# Load DWG file
image = cad.Image.load(inputDWG)
# Specify DXF options
options = cad.imageoptions.DxfOptions()
# Save output DXF file
image.save(outputDXF, options)