Closed fbe-work closed 7 years ago
Yes, that is a safe assumption. The relevant code is RevitPythonShellApplication.GetCommands() and it reads the <Command/>
nodes in sequence.
Thanks a lot!! So I will start writing something to find my qc buttons via the xml.. (-:
Is there a way to predict the "Command" number a RPS script ribbon button will be assigned to? If I look it up in the journal file I get something like:
So here the script is listed under Command0. In the RevitPythonShell.xml config file for that program version I find the added script in the list of commands:
Is it safe to assume the commands are numbered straight from that list in the same order? (background info: I am writing journal files with python to run qc checks on models in a scheduled manner. (works greate on my machine, but I would like to generalize it if possible, before github release) [-> will be on github rvt_model_services - hopefully soon.]) Thank you!