API Help
Eplan.EplApi.Gui Namespace / Menu Class / GetCustomMenuId Method
the name (caption) of the menu item
optional\: the name of the action called by the menu item. Also its parameters can be passed here. This parameter is not interpreted when it is a nullptr.

In This Topic
    GetCustomMenuId Method
    In This Topic
    Get a menu command id of a custom menu item, e.g. a menu point created by API.
    Syntax
    public uint GetCustomMenuId( 
       string strText,
       string strActionName
    )
    public:
    uint GetCustomMenuId( 
       String^ strText,
       String^ strActionName
    ) 

    Parameters

    strText
    the name (caption) of the menu item
    strActionName
    optional\: the name of the action called by the menu item. Also its parameters can be passed here. This parameter is not interpreted when it is a nullptr.

    Return Value

    the current command id (menu id)
    Remarks
    A menu id (command id) is used to identify a menu item in EPLAN. You can use it to append another menu point to the specified menu item using the AddMenuItem method An id of a custom menu point will change! At next start of EPLAN this method will return another value. If you need the id of a menu point created via API, you need the GetCustomMenuId method to determine its current value.
    See Also