if (objAcadDoc != null)
{
// 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
Solved! Go to Solution.
Solved by Alfred.NESWADBA. Go to Solution.
Hi,
wether a PDF-viewer is opened after plotting or not depends on the setting in the "DWG to PDF.pc3", make your own pc3-file that has this option disabled and that's it.
- alfred -