Reg. Ploting to PDF file without open Adobe Acrobat Reader

Reg. Ploting to PDF file without open Adobe Acrobat Reader

Anonymous
Not applicable
653 Views
2 Replies
Message 1 of 3

Reg. Ploting to PDF file without open Adobe Acrobat Reader

Anonymous
Not applicable
Reg. Plotting to PDF File without Opening Adobe Acrobat Reader

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

0 Likes
654 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable

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.

 

backgroundplot.JPG

0 Likes
Message 3 of 3

fieldguy
Advisor
Advisor

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.

 

DWGtoPDF.png

0 Likes