.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Plot.PlotToFile is not saving the TIF file into temp folder.

0 REPLIES 0
Reply
Message 1 of 1
Anonymous
313 Views, 0 Replies

Plot.PlotToFile is not saving the TIF file into temp folder.

 

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

 

0 REPLIES 0

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost