Making a "preview" command bar option using C#

I’ve been wanting to do this for a while, but I never found documentation of making a clickable button in the command bar, preferably a “preview” button. How would I do this?

A work around would probably using “Rhino.Input.Custom.OptionToggle” with one of the options be preview, but I want to just have a preview button instead. Thanks for all help!

In order to present clickable command line options to the user, you must be using a class that inherits from Rhino.Input.Custom.GetBaseClass. Usually this means you are using a Rhino.Input.Custom.GetObject or a Rhino.Input.Custom.GetPoint object. These classes have a number of “AddOption[type]” methods that you can use to add different types of clickable options.

Here are a couple of examples you can review:

– Dale

1 Like