How to know if command was executed via command prompt or UI

Hi All,

I’m trying to collect commands that users execute within rhino and everything is working fine with event listeners, I want to also collect how the command was executed for example if it was executed via command prompt or UI button. I couldn’t find anything in the API is there any methods in the API for this?

Thank you

Hi @ashkan.rdn,

RhinoCommon does not provide a way to determine whether or not a command was initiated via a toolbar button click, by the user entering the command name on the command line, or some other method (e.g. menu, plug-in).

– Dale

1 Like

Thanks for the response.