"Drawing File is not Valid", when open the AutoCAD file

M

Murali

Hi,

I am get the error "Drawing File is not Valid", when open the AutoCAD file,
which is SaveAs from the Visio file.

The AutoCAD file (.dwg) is Save As from Visio file (.vsd) Programmatically
in VB.Net.

Please check the following code to convert Visio file to AutoCAD File.

Dim objApp As Visio.InvisibleApp
Dim objDoc As Visio.Document
objDoc = objApp.Documents.Open("C:\abc.vsd")
objDoc.PaperSize = Visio.VisPaperSizes.visPaperSizeA4
objDoc.SaveAs("C:\abc.dwg")
objApp.ActiveDocument.Saved = True
objApp.ActiveDocument.Close()

Please assist me.

Thanks & Regards,
Murali
 
M

Murali

Hi,

Is this version problem?

Visio : Microsoft Office Visio 2003
AutoCAD : AutoCAD 2002

Thank You,
-Murali
 
Top