Author Topic: AcadApp.DocumentManager.IsApplicationContext = true  (Read 1662 times)

0 Members and 1 Guest are viewing this topic.

dugk

  • Guest
AcadApp.DocumentManager.IsApplicationContext = true
« on: February 22, 2011, 11:37:35 PM »
I have a UserControl Palette with a TreeView control in which a right-click menu option requires that I use  Tony's CommandLine class (http://www.caddzone.com/CommandLine.cs) to run a command.  The problem is that in Tony's code the first if statement AcadApp.DocumentManager.IsApplicationContext is true.

I'm assuming that because when the code for the right-click on the TreeView is run, I'm not actively in a drawing Database but the AutoCAD Application.  My question is then how to I get past this and activate the current drawing?

Thanks!
Doug