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

Reg. Ploting to PDF file without open Adobe Acrobat Reader

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
496 Views, 2 Replies

Reg. Ploting to PDF file without open Adobe Acrobat Reader

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

2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: Anonymous

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

Message 3 of 3
fieldguy
in reply to: Anonymous

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

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