A OneNote 2010 powertoy to bulk erase ink

A math teacher from Canada sent me a request a couple of weeks ago for help. He had some pages that had pictures and ink on them, and wanted a way to select and delete only the ink on the page. He has some content on the page, then adds in (presumably in class for an explanation), and then wants to select and delete all the ink on the page so the students can have a clean page with which to start.

I thought this sounded like a good case for a powertoy and came out with the "OneNote 2010 Bulk Ink Eraser." You can download the setup files from the link below my signature.

Some notes about this toy:

It is a fairly powerful toy. If there is ink on a page, it gets deleted, so I wanted to make it a little hard to use to prevent accidentally destroying your data. I decided to go with an older style command bar addin, so the icon shows under the Addins tab:

clip_image001

That icon is supposed to be 4 of the pink erasers - to signify bulk erasing. It's hard to tell, I know, but I have no UI design skills.

Undo if actually supported. CTRT+Z will bring the ink back.

To install, exit OneNote, extract the files from the ZIP file and run setup.exe (not the MSI).

There were some interesting cases around how the code works that I will go over next. I will also post the code next time as well.

I do not want to port this back to OneNote 2007. There is a little workaround in that version to do the same thing - CTRL+A a few times to select all content on the page, then invoke the "Treat all ink as handwriting" command, then press DELETE.

I will be out all next week on recruiting, so I will have the code sometime past that.

Thanks for the pointer to this, Kelvin.

Questions, comments, concerns and criticisms always welcome,
John

inkeraser.zip