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
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