Object Selection with Options - Plugin

I have tried to follow the article of Object Selection with Options.

But I have got two errors during compilation;
VS file Object Selection with Options.zip (1.8 KB)

This is the second command in the plugin. The first one is the template “DrawLine” command.

Could you give me a hint what could cause the error.

You need to declare the namespaces that you want to use. In this case, both RhinoObject and ObjectType are in the Rhino.DocObjects namespace, so at the top of your file you should set

using Rhino.DocObjects;

to make it work.

Thank you Menno. (it was quite easy)