Hi there,
i am trying to get hold of all macros, their (english) names, their command scripts and their svg image in the default.rui file using Rhino 8. Since default.rui file is no more a physical file, this turns out to be a challenge.
So i’ve searched through YT items and found a suggestion by @JohnM to use the _ExportRuiFile
command which i did. The resulting xml file is unfortunately incomplete. While it contains 1506 <macro_item>
nodes there are only 38 <icon>
nodes in it.
Trying to access the ToolbarFileCollection through scripting unfortunately leads to a dead end. The ToolbarFile of default.rui lists its Path
property like this:
Rhino.UI.Resources.rui.default.rui
which is nothing i can access to gather the required information from a xml file. I am aware of the TestDumpSvgs
command, which does not give the required data.
Could you please help how to aquire the full list of macros as it is displayed using the _Macros
command including the svg snippets, if available ?
Addendum: I’ve found that using the _ExportRuiFile
command does not actually export the incomplete content of the default.rui, it includes multiple copies of macros which reside in my own linked rui files. Is this the expected behaviour ?
thank you,
c.