If a modified menu command / shortcut key do not function

Build 1501 on 14/Nov/2017  This topic last edited on: 21/Mar/2016, at 18:34

If you modify a menu, and add a new menu command or modify an existing one, and you notice that the menu command is dimmed, the possible reasons may be:

You've specified a wrong name of a script

When the specified script name does not exist in any of add-ins, the menu command is dimmed and shortcut keys (if assigned), have no effect.

Search entire solution for the specified script name and make sure it's not misspelled.

Have in mind that scripts are tied to GN4 versions: if a script works in 1.4, it does not necessary mean it will work in 1.3 - perhaps it was available only in 1.4.

The script is not in the appropriate context

Example: the script is in PageDesignerAddIn class of the Page.vb file, but you are calling it when no page is loaded - thus, it cannot function.

Make sure you understand well the limitations of the VB.NET classes. See Add-ins and context and Add-ins and classes.

The script is called without required parameters

Locate the script in the solution and make sure you apply the same parameters, if any.

Note

All of above applies also on shortcut keys, mouse clicks and toolbar icons.