{
// Plotagem Síncrona
objAcadDoc.SetVariable("BACKGROUNDPLOT", 0);
// Seleciona Layout
objAcadDoc.ActiveSpace = AcActiveSpace.acModelSpace;
// Configurações da Plotagem
objAcadDoc.ActiveLayout.PlotType = AcPlotType.acExtents;
//dm.ActiveLayout.StandardScale = AcPlotScale.ac1_1;
objAcadDoc.ActiveLayout.StandardScale = AcPlotScale.acScaleToFit;
objAcadDoc.ActiveLayout.PlotWithPlotStyles = true;
objAcadDoc.ActiveLayout.UseStandardScale = true;
objAcadDoc.ActiveLayout.CenterPlot = true;
objAcadDoc.ActiveLayout.StyleSheet = "monochrome.ctb";
if (IsRotationRequired)
{
objAcadDoc.ActiveLayout.PlotRotation = enmRotAngle;
}
// Aplica Estilo
//oAcadApp.Preferences.Output.DefaultPlotStyleTable = StyleTable;
objAcadDoc.Regen(AcRegenType.acActiveViewport);
// Gera Arquivo
objAcadDoc.Plot.QuietErrorMode = true;
objAcadDoc.Plot.NumberOfCopies = 1;
objAcadDoc.ActiveLayout.RefreshPlotDeviceInfo();
string destLoc = Path.Combine(clsCommon.com.c_OutputFolder, saveFileName);
objAcadDoc.Plot.PlotToFile(destLoc, "C:\\Program Files\\AutoCAD 2010\\UserDataCache\\Plotters\\DWG To PDF.pc3");
}
========================
I have a code for plotting dwg to pdf file as mentioned above, but the problem is once plotting to pdf is completed for 1 file
it open Adobe Acrobat Reader with that file and I am working on 100 file simultaneously so is there
any way to plotting to pdf without openeing Adobe Acrobat Reader
HI ,
I think problem is in setting of system variable. As you set the BACKGROUNDPLOT = 0, so it will plot in foreground and publish in foreground. In that case you can set system variable 2. Please have a look in below screen shot.
Open in Adobe is a setting in the dwgtopdf.pc3 file. Change the setting in dwgtopdf.pc3 and save it with a different name, and use that.