Hi,
I have VB.NET application. Which is taking NONE.dwg file as source and copy to "C:\Documents and Settings\{USER NAME}\Local Settings\Temp\" folder as NONE.tif file. Recently we have upgraded to Autocad 2010. Now the below code is not copying TIF file to destination folder.
App = GetObject(, "AutoCAD.Application.18")
Dim Drawing As AutoCAD.AcadDocument = App.Documents.Open("NONE.dwg", False)
Drawing.Application.Preferences.Files.PrinterStyleSheetPath = {SOME PATH NAME}
Drawing.Regen(AutoCADcommon.AcRegenType.acAllViewports)
Drawing.Plot.PlotToFile("C:\Documents and Settings\{USER NAME}\Local Settings\Temp\NONE.tif")
Drawing.Close(False)
Drawing = Nothing
I didn't find any help from Google. Please help me to fix this issue. Let me know if you need more details.
Thanks in advance,
Shashidhara N