VBA
Discuss AutoCAD ActiveX and VBA (Visual Basic for Applications) questions here.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reg. Plotting to PDF File without Opening Adobe Acrobat Reader

1 REPLY 1
SOLVED
Reply
Message 1 of 2
dhimant.bhensdadia
3198 Views, 1 Reply

Reg. Plotting to PDF File without Opening Adobe Acrobat Reader

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 

1 REPLY 1
Message 2 of 2

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.

 

2014-03-12 12-10-39.png

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)

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

Post to forums  

Autodesk Design & Make Report

”Boost