Author Topic: Error 'eNoDocument', if Load via lsp-files  (Read 2262 times)

0 Members and 1 Guest are viewing this topic.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Error 'eNoDocument', if Load via lsp-files
« on: August 09, 2010, 10:01:46 AM »
AutoCAD 2009 SP3 x86.
MS Visual Studio 2010.
.Net Framework 3.5 SP1.


I wrote AutoCAD plagin, which must manage of downloading all others plagins (arx/lsp/fas/dll). It plagin implementation of interface IExtensionApplication. Plagin must load libraries according xml-file settings.
If I run it manually - all work good.

But If I load my manager via Acad.lsp, or AcadDoc.lsp, or MyMenu.mnl - then I get error: eNoDocument.
Sorry for Russian comments - it my old code...  :-(

Code Source here.

I think that a problem is that in a code I use a reference to object Document. But I need it reference... How can I solve it problem?

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Topic closed
« Reply #1 on: August 10, 2010, 03:38:01 AM »
Topic closed. Problem in loading LISP-files (in my code I use SendStringToExecute method). But if I use method ads_queueexpr, then all work good.