public class Beschriftung { [Start] [DeclareAction("Beschriftung")] public void BeschriftungVoid() { string ProjectFullName = PathMap.SubstitutePath("$(P)"); string sProjectName = PathMap.SubstitutePath("$(PROJECTNAME)"); string Projectpath = PathMap.SubstitutePath("$(PROJECTPATH)"); Projectpath = Projectpath.Substring(0, Projectpath.LastIndexOf("\\")); Progress progress = new Progress("SimpleProgress"); progress.BeginPart(100,""); progress.SetAllowCancel(true); if(!progress.Canceled()) { progress.BeginPart(16,"GenerateConnections"); ActionCallingContext generateConnectionsContext = new ActionCallingContext (); generateConnectionsContext.AddParameter("LogMsgActionDone","true"); generateConnectionsContext.AddParameter("PROJECTNAME",ProjectFullName); generateConnectionsContext.AddParameter("TYPE","CONNECTIONS"); new CommandLineInterpreter().Execute("generate",generateConnectionsContext); progress.EndPart(); } if(!progress.Canceled()) { progress.BeginPart(16,"UpdateReports"); ActionCallingContext updateReportsContext = new ActionCallingContext (); updateReportsContext.AddParameter("LogMsgActionDone","true"); updateReportsContext.AddParameter("PROJECTNAME",ProjectFullName); updateReportsContext.AddParameter("TYPE","PROJECT"); new CommandLineInterpreter().Execute("reports",updateReportsContext); progress.EndPart(); } if(!progress.Canceled()) { progress.BeginPart(16,"Labelling"); ActionCallingContext labellingContext = new ActionCallingContext (); labellingContext.AddParameter("CONFIGSCHEME","Artikelsummenstückliste_Yxlon"); labellingContext.AddParameter("DESTINATIONFILE",@"C:\Dokumente und Einstellungen\DEC4HAU.YXLON\Desktop\Bestellunterlagen\Bestellliste_$(PROJECTNAME).xls"); labellingContext.AddParameter("FILTERSCHEME",""); labellingContext.AddParameter("LANGUAGE","de_DE"); labellingContext.AddParameter("LogMsgActionDone","true"); labellingContext.AddParameter("SHOWOUTPUT","0"); labellingContext.AddParameter("PROJECTNAME",ProjectFullName); labellingContext.AddParameter("RECREPEAT","1"); labellingContext.AddParameter("SORTSCHEME",""); labellingContext.AddParameter("TASKREPEAT","1"); new CommandLineInterpreter().Execute("label",labellingContext); progress.EndPart(); } if(!progress.Canceled()) { progress.BeginPart(16,"Labelling"); ActionCallingContext labellingContext1 = new ActionCallingContext (); labellingContext1.AddParameter("CONFIGSCHEME","Artikelstückliste_Yxlon"); labellingContext1.AddParameter("DESTINATIONFILE",@"C:\Dokumente und Einstellungen\DEC4HAU.YXLON\Desktop\Bestellunterlagen\Stückliste_$(PROJECTNAME).xls"); labellingContext1.AddParameter("FILTERSCHEME",""); labellingContext1.AddParameter("LANGUAGE","de_DE"); labellingContext1.AddParameter("LogMsgActionDone","true"); labellingContext1.AddParameter("SHOWOUTPUT","0"); labellingContext1.AddParameter("PROJECTNAME",ProjectFullName); labellingContext1.AddParameter("RECREPEAT","1"); labellingContext1.AddParameter("SORTSCHEME",""); labellingContext1.AddParameter("TASKREPEAT","1"); new CommandLineInterpreter().Execute("label",labellingContext1); progress.EndPart(); } if(!progress.Canceled()) { progress.BeginPart(16,"Backup"); ActionCallingContext backupContext = new ActionCallingContext (); backupContext.AddParameter("BACKUPMEDIA","DISK"); backupContext.AddParameter("BACKUPMETHOD","BACKUP"); backupContext.AddParameter("COMPRESSPRJ","0"); backupContext.AddParameter("INCLEXTDOCS","1"); backupContext.AddParameter("BACKUPAMOUNT","BACKUPAMOUNT_ALL"); backupContext.AddParameter("INCLIMAGES","1"); backupContext.AddParameter("LogMsgActionDone","true"); backupContext.AddParameter("DESTINATIONPATH",@"N:\DEC4HAU\Projekte P8\Projektsicherung"); backupContext.AddParameter("PROJECTNAME",ProjectFullName); backupContext.AddParameter("TYPE","PROJECT"); new CommandLineInterpreter().Execute("backup",backupContext); progress.EndPart(); } if(!progress.Canceled()) { progress.BeginPart(16,"Print"); ActionCallingContext printContext = new ActionCallingContext (); printContext.AddParameter("LogMsgActionDone","true"); printContext.AddParameter("NUMBER","1"); printContext.AddParameter("PRINTCHANGEDPAGES","0"); printContext.AddParameter("PRINTREVERSE","0"); printContext.AddParameter("PRINTCOLLATE","0"); printContext.AddParameter("PRINTERNAME",@"PDFCreator"); printContext.AddParameter("PROJECTNAME",ProjectFullName); printContext.AddParameter("TYPE","PROJECT"); new CommandLineInterpreter().Execute("print",printContext); progress.EndPart(); } progress.EndPart(true); } }