Command Line Event Or CommandWillStart Event

I’m looking to use this as a work-around for another issue I’m having. Is there an event that captures command line input? Even capturing the "Unknown Command: … " would work. I can do this quite easily in AutoCAD so I’d be surprised if it’s not possible in Rhino. I can use C# (very rusty) and Python now.

One big issue I have is that all the docs/help for the API’s are heavily centered around creating and manipulating geometry and not so much on the other stuff. My goals are more to create basic drafting tools.

You can enable recording (capturing) of the command window output with RhinoApp.CommandWindowCaptureEnabled = true;

https://developer.rhino3d.com/api/rhinocommon/rhino.rhinoapp/commandwindowcaptureenabled

and then get the command window text with RhinoApp.CapturedCommandWindowStrings

https://developer.rhino3d.com/api/rhinocommon/rhino.rhinoapp/capturedcommandwindowstrings

1 Like

Thanks Steve.

I guess from there I would just set up my own event to look for the command string.