I thought as long as you included the 64-bit references instead of the 32-bit, it would still work. Is this incorrect?
I will try changing the begin/end to the document.commandWillStart/CommandEnded, as you suggested.
I still need thisDrawing.adoc set, though, since it's used in a few hundred places in the code. Or is there a way around it without using COM API? How else can you reference it?