Code:
[DeclareAction("XMLerzeugen")]
public void Function()
{
CommandLineInterpreter oCLI = new CommandLineInterpreter();
string strPage = string.Empty;
Progress progress = new Progress("SimpleProgress");
progress.BeginPart(100, "");
progress.SetAllowCancel(false);
if (!progress.Canceled())
{
progress.BeginPart(100, "Labelling");
ActionCallingContext labellingContext2 = new ActionCallingContext();
oCLI.Execute("XGedSelectPageAction");
labellingContext2.AddParameter("Name", "XGedIaFormatText");
labellingContext2.AddParameter("TYPE", "PAGES");
oCLI.Execute("selectionset", labellingContext2);
labellingContext2.GetParameter("PAGES", ref strPage);
labellingContext2.AddParameter("PAGENAME", strPage);
labellingContext2.AddParameter("CONFIGSCHEME", "Inhaltsverzeichnis für Revisionstool");
labellingContext2.AddParameter("DESTINATIONFILE", @"$(PROJECTPATH)\Revision.xml");
labellingContext2.AddParameter("FILTERSCHEME", "");
labellingContext2.AddParameter("LANGUAGE", "??_??");
labellingContext2.AddParameter("LogMsgActionDone", "true");
labellingContext2.AddParameter("SHOWOUTPUT", "0");
//labellingContext2.AddParameter("PROJECTNAME", ProjectName);
labellingContext2.AddParameter("RECREPEAT", "1");
labellingContext2.AddParameter("SORTSCHEME", "");
labellingContext2.AddParameter("TASKREPEAT", "1");
new CommandLineInterpreter().Execute("label", labellingContext2);
progress.EndPart();
}
progress.EndPart(true);
return;
}