Getting RevitCommandID for any commands users executes

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi Everyone,
after doing some research I couldn't find the answer to my question and I was hoping I can get some help from people here.
I have parsed a large number of Revit journals and have extracted the RevitCommandIds from it based on user name and project name. I have trained a machine learning model to predict what would be the next command based on a given sequence.
Now I want to integrate my machine learning model with Revit such that I can get the RevitCommandId (e.g "ID_EDIT_MOVE" or "ID_FINISH_SKETCH" ) as the user executes the commands and feed that string to my prediction function and get a prediction for the next commands.
The question I have is if there any ways that I can listen to command execution and get RevitCommandID, I taught of command binding but it is not feasible to do that for 500+ commands I have recorded and there will be some performance issues also as far as I understand it can be used with portable commands.
I have already looked into these links but I couldn't figure out a way:
Revit Forum ( Same question Unresolved)
I would appreciate any suggestions.