TheSwamp

Code Red => .NET => Topic started by: dugk on February 22, 2011, 11:37:35 PM

Title: AcadApp.DocumentManager.IsApplicationContext = true
Post by: dugk 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