List output of all commands
Posted: Fri Jan 03, 2020 11:19 pm
Hello,
I have been working on a concept for an alternative ribbon style UI for freecad. If i can get some code to do the following 3 things I think I will be well on my way to implementing the idea.
First I am hoping that there is a simple way of programmatically list all of the commands available in the GUI along with the current status of those commands (available / unavailable, clickable or grayed out). I know this information must be available some where because of the toolbar customization tool.
Second I would need an example of some python code to activate or run an arbitrary command from the list as if the user had clicked the command from the menus.
Third I would like to be able to export PNG images for each of the icons associated to the commands.
Thanks for any help.
I have been working on a concept for an alternative ribbon style UI for freecad. If i can get some code to do the following 3 things I think I will be well on my way to implementing the idea.
First I am hoping that there is a simple way of programmatically list all of the commands available in the GUI along with the current status of those commands (available / unavailable, clickable or grayed out). I know this information must be available some where because of the toolbar customization tool.
Second I would need an example of some python code to activate or run an arbitrary command from the list as if the user had clicked the command from the menus.
Third I would like to be able to export PNG images for each of the icons associated to the commands.
Thanks for any help.