private void MakroMw() { if (cmbMw.SelectedItem.ToString() == "150mm") { string strFilename = @"\\Inforserver2\eplan\SystemData\Makros\VOLLMER\VTLG\Seitenmakros\Maulweite_150.emp"; ActionCallingContext oAcc = new ActionCallingContext(); CommandLineInterpreter oCLI = new CommandLineInterpreter(); oAcc.AddParameter("filename", strFilename); oCLI.Execute("XMInsertPageMacro", oAcc); } else if (cmbMw.SelectedItem.ToString() == "300mm") { string strFilename = @"\\Inforserver2\eplan\SystemData\Makros\VOLLMER\VTLG\Seitenmakros\Maulweite_300.emp"; ActionCallingContext oAcc = new ActionCallingContext(); CommandLineInterpreter oCLI = new CommandLineInterpreter(); oAcc.AddParameter("filename", strFilename); oCLI.Execute("XMInsertPageMacro", oAcc); } return; }