FreeCAD Python wrapper of Command functions Get a given command by name or None if it doesn't exist. get(string) -> Command Update active status of all commands. update() -> None Returns the name of all commands. listAll() -> list of strings Returns a list of all commands, filtered by shortcut. listByShortcut(string, bool bUseRegExp=False) -> list of strings -- Shortcuts are converted to uppercase and spaces removed prior to comparison. Runs the given command. run() -> None Returns True if the command is active, False otherwise. isActive() -> bool Returns string representing shortcut key accelerator for command. getShortcut() -> string Sets shortcut for given command, returns bool True for success. setShortcut(string) -> bool Resets shortcut for given command back to the default, returns bool True for success. resetShortcut() -> bool Return information about this command. getInfo() -> list of strings -- Usage: menuText, tooltipText, whatsThisText, statustipText, pixmapText, shortcutText. Return the associated QAction object. getAction() -> list of QAction Create a custom command for a macro createCustomCommand(macrofile, menuText, tooltipText, whatsThisText, statustipText, pixmapText, shortcutText) -> str -- Only the macrofile argument is required, and should be the name of the macro file. All other arguments are passed on to the command creation routines if they are provided. All arguments except the first accept None. Returns the name of the created custom command. Remove the custom command if it exists removeCustomCommand(name) -> bool -- Given the name of a custom command, this removes that command. It is not an error to remove a non-existent command, the function simply does nothing in that case. Returns True if something was removed, or False if not. Find the name of a custom command, given a macro name findCustomCommand(name) -> Optional[str] -- Given the name of a macro, return the name of the custom command for that macro, or None if there is no command matching that macro script name.