This in insane. I'm using the identical object elsewhere in the same program. Adding the New keyword also does not help.

Dim DN AsString = acadDoc.GetVariable("clayer")