//Output entire project as a PDF public void PDFexport(string sZielDatei) { //Progressive on Eplan.EplApi.Base.Progress oProgress = new Eplan.EplApi.Base.Progress("SimpleProgress"); oProgress.ShowImmediately(); ActionCallingContext pdfContext = new ActionCallingContext(); pdfContext.AddParameter("type", "PDFPROJECTSCHEME"); //PDFPROJECTSCHEME = Export project in PDF format pdfContext.AddParameter("exportscheme", "NAME_SCHEMA"); //used scheme pdfContext.AddParameter("exportfile", sZielDatei); //Name export.Project, default value: Projectname pdfContext.AddParameter("exportmodel", "0"); //0 = do not spend any models pdfContext.AddParameter("blackwhite", "1"); //1 = PDF turns black and white pdfContext.AddParameter("useprintmargins", "1"); //1 = use printing margins pdfContext.AddParameter("readonlyexport", "2"); //1 = PDF becomes read - only pdfContext.AddParameter("usesimplelink", "1"); //1 = simple jump function pdfContext.AddParameter("usezoomlevel", "1"); //Jump in navigation pages pdfContext.AddParameter("fastwebview", "1"); //1 = fast web ad pdfContext.AddParameter("zoomlevel", "1"); //if USEZOOMLEVEL to 1 then here zoom level in mm CommandLineInterpreter cmdLineItp = new CommandLineInterpreter(); cmdLineItp.Execute("export", pdfContext); //Progressbar off oProgress.EndPart(true); return; }
//Gesamtes Project als PDF ausgeben public void PDFexport(string sZielDatei) { //Progressbar ein Eplan.EplApi.Base.Progress oProgress = new Eplan.EplApi.Base.Progress("SimpleProgress"); oProgress.ShowImmediately(); ActionCallingContext pdfContext = new ActionCallingContext(); pdfContext.AddParameter("type", "PDFPROJECTSCHEME"); //PDFPROJECTSCHEME = Project im PDF-Format exportieren //pdfContext.AddParameter("exportscheme", "NAME_SCHEMA"); //verwendetes Schema pdfContext.AddParameter("exportfile", sZielDatei); //Name export.Project, Vorgabewert: Projectname pdfContext.AddParameter("exportmodel", "0"); //0 = keine Modelle ausgeben pdfContext.AddParameter("blackwhite", "1"); //1 = PDF wird schwarz-weiss pdfContext.AddParameter("useprintmargins", "1"); //1 = Druckränder verwenden pdfContext.AddParameter("readonlyexport", "2"); //1 = PDF wird schreibgeschützt pdfContext.AddParameter("usesimplelink", "1"); //1 = einfache Sprungfunktion pdfContext.AddParameter("usezoomlevel", "1"); //Springen in Navigationsseiten pdfContext.AddParameter("fastwebview", "1"); //1 = schnelle Web-Anzeige pdfContext.AddParameter("zoomlevel", "1"); //wenn USEZOOMLEVEL auf 1 dann hier Zoomstufe in mm CommandLineInterpreter cmdLineItp = new CommandLineInterpreter(); cmdLineItp.Execute("export", pdfContext); //'Progressbar aus oProgress.EndPart(true); return; }