public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); uint MenuID = new uint(); // Menü-ID vom neu erzeugten Menü MenuID = oMenu.AddMainMenu( // Festlegen der Menü-ID des Objekts "Menü 2", // Name: Menü "Hilfe", // neben Menüpunkt "Hauptmenü mit einem Menüpunkt", // Name: Menüpunkt "MenuAction", // Name: Action "Statustext", // Statustext 1 // 1 = hinter Menüpunkt, 0 = vor Menüpunkt ); oMenu.AddPopupMenuItem( "Popup-Menü mit...", // Name: Menü "Unterpunkt", // Name: Menüpunkt "MenuAction", // Name: Action "Statustext", // Statustext MenuID, // Menü-ID 1, // 1 = hinter Menüpunkt, 0 = vor Menüpunkt true, // Separator davor anzeigen false // Separator dahinter anzeigen ); return; }
/// <summary> /// Removes MenuId wich was set from AddMenuItem(). /// </summary> private void RemoveMenuItem() { if (this.MenuId != null) { Eplan.EplApi.Gui.Menu menu = new Eplan.EplApi.Gui.Menu(); menu.RemoveMenuItem(this.MenuId); } }
public bool OnRegister(ref bool bLoadOnStart) { bLoadOnStart = true; Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMainMenu("Add-Ins", Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp, "Auto Drawing", "AutoDrawing", "C# custom add-in tool", 1); return(true); }
/// <summary> /// 37024 MenuId of insert/windowmacro /// </summary> private void AddMenueItem() { Eplan.EplApi.Gui.Menu menu = new Eplan.EplApi.Gui.Menu(); this.MenuId = menu.AddMenuItem("Windowmacro with scaling...", "InsertMacroScaledToPageScale", "Windowmacro with scaling option", 37024, 1, false, false); }
public void RegisterScriptCustomMenu() { Eplan.EplApi.Gui.Menu.MainMenuName helpMenu = Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp; Eplan.EplApi.Gui.Menu scriptMenu = new Eplan.EplApi.Gui.Menu(); uint menuId = scriptMenu.AddMainMenu("[Script Menu]", helpMenu, "MyMenu Text", "MyScriptActionWithMenu", "MyMenu Text...", 1); menuId = scriptMenu.AddMenuItem("FirstAddin Text", "FirstAction", "FirstAddin Text...", menuId, 1, false, false); menuId = scriptMenu.AddMenuItem("Create PDF", "CreatePDFAction", "Create PDF...", menuId, 1, false, false); }
/// <summary> /// This function is called by the framework of EPLAN, when the framework already has initialized its /// graphical user interface (GUI) and the add-in can start to modify the GUI. /// The function only is called, if the add-in is loaded on system-startup. /// </summary> /// <returns>true, if function succeeds</returns> public bool OnInitGui() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); var id = oMenu.AddMainMenu("Add-Ins", Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp, "Auto EPLAN", GenGlobal.Action, "C# custom add-in tool", 1); oMenu.AddMenuItem("Auto drawing", GenGlobal.AutoDrawAction, "Auto Drawing", id, 1, false, false); oMenu.AddMenuItem("Import parts", GenGlobal.ImportPartAction, "Import parts", id, 1, false, false); return(true); }
/// <summary> /// The function is called during P8 initialization or registration the add-in, when GUI was already initialized and add-in can modify it. /// </summary> /// <returns></returns> public bool OnInitGui() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); MultiLangString mls = new MultiLangString(); mls.AddString(ISOCode.Language.L_fr_FR, "Réordonner les terminaux multi-niveau"); mls.AddString(ISOCode.Language.L_en_US, "Reorder multi-level terminals"); oMenu.AddMenuItem(mls, "MLTReorderAction"); return true; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); string strProjectpath = PathMap.SubstitutePath("$(PROJECTPATH)"); string strPdfExample = @"C:\test\test.pdf"; string quote = "\""; uint MenuID = new uint(); // Menü-ID vom neu erzeugten Menü MenuID = oMenu.AddMainMenu( "Externe Programme", // Name: Menü "Hilfe", // neben Menüpunkt "Taschenrechner", // Name: Menüpunkt "StartProcess /PROCESS:calc /PARAMETER:''", // Name: Action "Taschenrechner öffnen...", // Statustext 1 // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt ); MenuID = oMenu.AddMenuItem( "Projektordner öffnen", // Name: Menüpunkt "StartProcess /PROCESS:explorer /PARAMETER:" + quote + strProjectpath + quote, // Name: Action "Projektordner im Explorer öffnen...", // Statustext MenuID, // Menü-ID: Einfügen/Fenstermakro... 1, // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt false, // Separator davor anzeigen false // Separator dahinter anzeigen ); MenuID = oMenu.AddMenuItem( "Zeichentabelle", // Name: Menüpunkt "StartProcess /PROCESS:charmap /PARAMETER:''", // Name: Action "Zeichentabelle öffnen...", // Statustext MenuID, // Menü-ID: Einfügen/Fenstermakro... 1, // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt false, // Separator davor anzeigen false // Separator dahinter anzeigen ); MenuID = oMenu.AddMenuItem( "PDF öffnen", // Name: Menüpunkt "StartProcess /PROCESS:" + quote + strPdfExample + quote + " /PARAMETER:''", // Name: Action "Beispiel PDF öffnen...", // Statustext MenuID, // Menü-ID: Einfügen/Fenstermakro... 1, // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt false, // Separator davor anzeigen false // Separator dahinter anzeigen ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu menu = new Eplan.EplApi.Gui.Menu(); menu.AddMenuItem( "Menüpunkt am Ende von Dienstprogramme", // Name: Menüpunkt "MenuAction" // Name: Action ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem( "Menüpunkt am Ende von Dienstprogramme", // Name: Menüpunkt "MenuAction" // Name: Action ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem( "EPLAN Action ausführen...", "ExecuteEplanAction" ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); // Name: Menu item // Name: Action oMenu.AddMenuItem("Menu item at the end of utilities", "MenuAction"); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem( "EPLAN Action To Run...", "ExecuteEplanAction" ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); string strProjectpath = PathMap.SubstitutePath("$(PROJECTPATH)"); string strPdfExample = @"C:\test\test.pdf"; string quote = "\""; uint MenuID = new uint(); // Menu ID from the newly created menu MenuID = oMenu.AddMainMenu( "External Programs", // Name: Menu "Help", // next to the menu item "Calculator", // Name: Menu item "StartProcess / PROCESS: calc / PARAMETER: ''", // Name: Action "Open calculator ...", // Status text 1 // 1 = Behind menu item, 0 = Before menu item ); MenuID = oMenu.AddMenuItem( "Open project folder", // Name: Menu item "StartProcess / PROCESS: explorer / PARAMETER:" + quote + strProjectpath + quote, // Name: Action "Open project folder in Explorer ...", // Status text MenuID, // Menu ID: Insert / Window Macro ... 1, // 1 = Behind menu item, 0 = Before menu item false, // show separator in front of it false // show separator behind it ); MenuID = oMenu.AddMenuItem( "Character Map", // Name: Menu item "StartProcess / PROCESS: charmap / PARAMETER: ''", // Name: Action "Open character table ...", // Status text MenuID, // Menu ID: Insert / Window Macro ... 1, // 1 = Behind menu item, 0 = Before menu item false, // show separator in front of it false // show separator behind it ); MenuID = oMenu.AddMenuItem( "Open PDF", // Name: Menu item "StartProcess / PROCESS:" + quote + strPdfExample + quote + "/ PARAMETER: ''", // Name: Action "Open example PDF ...", // Status text MenuID, // Menu ID: Insert / Window Macro ... 1, // 1 = Behind menu item, 0 = Before menu item false, // show separator in front of it false // show separator behind it ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu menu = new Eplan.EplApi.Gui.Menu(); uint menuId; // Menü-ID vom neu erzeugten Menü menuId = menu.AddMainMenu( "Externe Programme", // Name: Menü "Hilfe", // neben Menüpunkt "Taschenrechner", // Name: Menüpunkt "StartProcess /processName:calc /parameter:''", // Name: Action "Taschenrechner öffnen...", // Statustext 1 // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt ); string quote = "\""; menuId = menu.AddMenuItem( "Projektordner öffnen", // Name: Menüpunkt "StartProcess /processName:explorer /parameter:" + quote + "$(PROJECTPATH)" + quote, // Name: Action "Projektordner im Explorer öffnen...", // Statustext menuId, // Menü-ID: Einfügen/Fenstermakro... 1, // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt false, // Separator davor anzeigen false // Separator dahinter anzeigen ); menuId = menu.AddMenuItem( "Zeichentabelle", // Name: Menüpunkt "StartProcess /processName:charmap /parameter:''", // Name: Action "Zeichentabelle öffnen...", // Statustext menuId, // Menü-ID: Einfügen/Fenstermakro... 1, // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt false, // Separator davor anzeigen false // Separator dahinter anzeigen ); string pdfFile = @"C:\test\test.pdf"; menuId = menu.AddMenuItem( "PDF öffnen", // Name: Menüpunkt "StartProcess /processName:" + quote + pdfFile + quote + // Name: Action " /parameter:''", "Beispiel PDF öffnen...", // Statustext menuId, // Menü-ID: Einfügen/Fenstermakro... 1, // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt false, // Separator davor anzeigen false // Separator dahinter anzeigen ); return; }
public void RegisterHHICustomMenu() { string actionCommandSetGraphicElement = "XGedStartInteractionAction /Name:XGedIaFormatGraphic /width:-16002 /color:30 /type:41 /patternlength:4mm /lineendstyle:0 /visible:1 /filled:0 /rounded:1 /radius:2mm"; string actionCommandPutMacro = "XGedStartInteractionAction /Name:XMIaInsertMacro /filename:\"D:\\Temp\\HHIMacro\\Basic training macro.ema\" /variant:0"; Eplan.EplApi.Gui.Menu.MainMenuName helpMenu = Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp; Eplan.EplApi.Gui.Menu hhiMenu = new Eplan.EplApi.Gui.Menu(); uint menuId = hhiMenu.AddMainMenu("[HHI]", helpMenu, "그래픽 요소 설정", actionCommandSetGraphicElement, "그래픽 요소의 형식 설정...", 1); menuId = hhiMenu.AddMenuItem("매크로 삽입", actionCommandPutMacro, "매크로 삽입...", menuId, 1, false, false); }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem( "Freies Gerät...", "InsertUniversalPart3D", "Freies Gerät in den Bauraum einfügen...", 37181, 1, false, false ); }
/// <summary> /// The function is called during Eplan initialization or registration the add-in, when GUI was already initialized and add-in can modify it. /// </summary> /// <returns></returns> public bool OnInitGui() { Eplan.EplApi.Gui.Menu sampleMenu = new Eplan.EplApi.Gui.Menu(); Eplan.EplApi.Gui.Menu sampleMenu_Child = new Eplan.EplApi.Gui.Menu(); uint menuId = sampleMenu.AddMainMenu("[EPLAN API]", Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp, "FirstMenu", "ActionTest", "1st", 1); uint menuId2 = sampleMenu.AddPopupMenuItem("PopupMenuName", "ChildMenuName", "ActionPopupChildMenu1", "PopupMenuName", menuId, 1, false, false); return(true); }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem( "Einstellungen...(erweitert)", "ExtendedSettings", "Erweiterte Einstellungen setzen...", 35006, 1, false, false ); }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem( "Settings... (extended)", // New menu name "ExtendedSettings", // Action that will be ran when clicked in menu bar "Set advanced settings...", // Text that pops up when mouse hovers over item 35006, // Menu ID to insert before/left new menu 1, // Insert position, 0 = before, 1 = after false, // Add seperator before false // Add seperator after ); }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem ( "Projekt History...", "ProjectHistory", "Projekt History öffnen...", 35002, 1, false, false ); }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem ( "Cursor-Farbe setzen...", "SetCursorColor", "Cursor-Farbe für verschiedene Farbschema setzen", 35178, 1, false, false ); }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMainMenu( "Menu 1", // Name: Menu "Help", // next to the menu item "Main menu with a menu item", // Name: Menu item "MenuAction", // Name: Action "Status text", // status text 1 // 1 = after menu item, 0 = before menu item ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu menu = new Eplan.EplApi.Gui.Menu(); menu.AddMainMenu( "Menü 1", // Name: Menü Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp, // neben Menüpunkt "Hauptmenü mit einem Menüpunkt", // Name: Menüpunkt "MenuAction", // Name: Action "Statustext", // Statustext 1 // 1 = hinter Menüpunkt, 0 = vor Menüpunkt ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMainMenu( "Menü 1", // Name: Menü "Hilfe", // neben Menüpunkt "Hauptmenü mit einem Menüpunkt", // Name: Menüpunkt "MenuAction", // Name: Action "Statustext", // Statustext 1 // 1 = hinter Menüpunkt, 0 = vor Menüpunkt ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem( "Seitenzahl ermitteln...", // Name: Menüpunkt "GetNumberOfPages", // Name: Action "Anzahl der markierten Seiten ausgeben", // Statustext 35392, // Menü-ID: Menü > Seite 1, // 1 = hinter Menüpunkt, 0 = vor Menüpunkt true, // Separator davor anzeigen false // Separator dahinter anzeigen ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem( "Determine page number...", // Name: Menu Item "GetNumberOfPages", // Name: Action "Output number of marked pages", // Status text 35392, // Menu ID: Menu> Page 1, // 1 = Behind Menu Item, 0 = In front Menu Item true, // Show separator in front of it false // Show separator behind it ); return; }
public void Comment_Menu() //private void AddDialogInsertCommentMenuItem() { //Menüeintrag Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem("Insertar comentario", "DialogInsertComment", " ejecuta Insertar comentario", 35381, 0, false, false); //Kontextmenü Kommentare-Navigator Eplan.EplApi.Gui.ContextMenu oContextMenu = new Eplan.EplApi.Gui.ContextMenu(); //Kontextmenü Kommentare-Navigator, Reiter Baum Eplan.EplApi.Gui.ContextMenuLocation oLocation = new Eplan.EplApi.Gui.ContextMenuLocation("XPdfCommentDlgTree", "1032"); oContextMenu.AddMenuItem(oLocation, "Insertar comentario", "DialogInsertComment", true, false); //Kontextmenü Kommentare-Navigator, Reiter Liste Eplan.EplApi.Gui.ContextMenuLocation oLocationList = new Eplan.EplApi.Gui.ContextMenuLocation("XPdfCommentDlgList", "1038"); oContextMenu.AddMenuItem(oLocationList, "Insertar comentario", "DialogInsertComment", true, false); }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem( "Bestehendes Menü erweitern", // Name: Menüpunkt "MenuAction", // Name: Action "Statustext", // Statustext 37024, // Menü-ID: Einfügen/Fenstermakro... 1, // 1 = hinter Menüpunkt, 0 = vor Menüpunkt false, // Separator davor anzeigen false // Separator dahinter anzeigen ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem ( "Project search...", "SearchProjects", "Search and open project (s)", 35002, 1, false, false ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem( "Extend existing menu", // Name: Menu item "MenuAction", // Name: Action "Status text", // status text 37024, // Menu ID: Insert / Window macro ... 1, // 1 = after menu item, 0 = before menu item false, // show separator in front of it false // show separator behind it ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu menu = new Eplan.EplApi.Gui.Menu(); menu.AddMenuItem ( "Projektsuche...", "Projektsuche", "Projekt(e) suchen und öffnen", 35002, 1, false, false ); return; }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem ( "Projektsuche...", "SearchProjects", "Projekt(e) suchen und öffnen", 35002, 1, false, false ); return; }
/// <summary> /// This function is called by the framework of EPLAN, when the /// framework already has initialized its graphical user interface /// (GUI) and the add-in can start to modify the GUI. /// The function only is called, if the add-in is loaded on /// system-startup. /// </summary> /// <returns>true, if function succeeds</returns> public bool OnInitGui() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); uint menuID = oMenu.AddMainMenu( "EPlaner", Eplan.EplApi.Gui.Menu.MainMenuName.eMainMenuHelp, "Экспорт XML для EasyServer", "SaveAsXMLAction", "Экспорт XML для EasyServer", 0); menuID = oMenu.AddMenuItem( "Экспорт технологических устройств в Excel", "ExportTechDevsToExcel", "Экспорт технологических устройств в Excel", menuID, 1, false, true); menuID = oMenu.AddMenuItem("Редактировать технологические объекты", "ShowTechObjectsAction", "Редактирование технологических объектов", menuID, 1, false, false); menuID = oMenu.AddMenuItem("Устройства, параметры объектов", "ShowDevicesAction", "Отображение устройств", menuID, int.MaxValue, false, false); menuID = oMenu.AddMenuItem( "Операции, ограничения и привязка объектов", "ShowOperationsAction", "Отображение операций", menuID, 1, false, true); menuID = oMenu.AddMenuItem("Обмен сигналами между проектами", "InterprojectExchangeAction", "Настройка межпроектного обмена сигналами", menuID, 1, false, false); menuID = oMenu.AddMenuItem( "Синхронизация названий устройств и модулей", "BindingSynchronization", "Синхронизация названий устройств и модулей", menuID, 1, false, false); menuID = oMenu.AddMenuItem("О дополнении", "AboutProgramm", "", menuID, 1, true, false); ProjectManager.GetInstance().Init(); return(true); }
public void MenuFunction() { Eplan.EplApi.Gui.Menu aMenu = new Eplan.EplApi.Gui.Menu(); aMenu.AddMenuItem("Load all scripts", "LoadScripts", "Loads all standard scripts", System.UInt32.Parse("35226"), // Menu ID of Utilities / Scripts / To Run System.Int32.Parse("0"), // ID of the following menu. (0 for default) false, true); Eplan.EplApi.Gui.Menu bMenu = new Eplan.EplApi.Gui.Menu(); bMenu.AddMenuItem("Unload all scripts", "UnloadScripts", "Unoads all standard scripts", System.UInt32.Parse("35228"), //Menu ID of Utilities / Scripts / Unload System.Int32.Parse("1"), // ID of the following menu. (0 for default) true, false); }
public void MenuFunction() { Eplan.EplApi.Gui.Menu aMenu = new Eplan.EplApi.Gui.Menu(); aMenu.AddMenuItem( "alle Scripte laden", "LoadScripts", "lädt alle Standard-Scripte", System.UInt32.Parse("35226"), // Menü-ID von Dienstprogramme/Scripte/Ausführen System.Int32.Parse("0"), // ID of the following menu. (0 for default) false, true); Eplan.EplApi.Gui.Menu bMenu = new Eplan.EplApi.Gui.Menu(); bMenu.AddMenuItem( "alle Scripte entladen", "UnloadScripts", "entlädt alle Standard-Scripte", System.UInt32.Parse("35228"), // Menü-ID von Dienstprogramme/Scripte/Entladen System.Int32.Parse("1"), // ID of the following menu. (0 for default) true, false); }
public void MenuFunction() { //Deklarationen //uint MenuID = new uint(); // Menü-ID vom neu erzeugten Menü Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); // Abfragen der Menue-ID uint MenuID = oMenu.GetPersistentMenuId("Export / Beschriftung..."); // MessageBox.Show(MenuID.ToString()); // nur test oMenu.AddMenuItem( "Stückliste nach Einbauort", // Name: Menüpunkt "MenueAusgabeEinbauOrte", // Name: Action "Ausgabe der Einbauorte als XML", // Statustext MenuID, // Menü-ID: 1, // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt false, // Seperator davor anzeigen false // Seperator dahinter anzeigen ); // Hauptmenü mit einem Unterpunkt /* MenuID = oMenu.AddMainMenu( * "Ausgabe", // Name: Menü * "Hilfe", // neben... * "Info", // Name: Menüpunkt * "ActionInfo", // Name: Action * "Info Einstellungen", // Statustext * 1 // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt * ); * // Menüpunkt Übersetzungsdatenbank * MenuIDTrans = oMenu.AddPopupMenuItem( * "Ausgabe Excel", // Name: Menü * "Einbauorte", // Name: Menüpunkt * "MenueAusgabeEinbauOrte", // Name: Action * "Ausgabe der Einbauorte als XML", // Statustext * MenuID, // Menü-ID: * 1, // 1 = Hinter Menüpunkt, 0 = Vor Menüpunkt * false, // Seperator davor anzeigen * false // Seperator dahinter anzeigen * ); */ }
public void SetSortCodeMenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem("Set sort code", "SetSortCodeAction"); }
public void CopyNormalMenu() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); oMenu.AddMenuItem("Copy (Normal Mode)", "NormalCopyAction"); oMenu.AddMenuItem("Copy (Design Mode)", "DesignCopyAction"); }
public void MenuFunction() { Eplan.EplApi.Gui.Menu oMenu = new Eplan.EplApi.Gui.Menu(); //uint MenuID = new uint(); // Menu ID from the newly created menu //MenuID = oMenu.AddMainMenu(// Set the menu ID of the object // "Menu 2", // Name: Menu // "Help", // next to the menu item // "Main menu with a menu item", // Name: Menu item // "MenuAction", // Name: Action // "Status text", // status text // 1 // 1 = after menu item, 0 = before menu item // ); oMenu.AddPopupMenuItem( "Popup menu with ...", // Name: Menu "Sub-item", // name: menu item "Options", // Name: Action "Status text", // status text MenuID, // Menu ID 1, // 1 = after menu item, 0 = before menu item true, // Show separator in front of it false // show separator behind it ); return; }