.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

BeginDocumentClose

1 REPLY 1
SOLVED
Reply
Message 1 of 2
Anonymous
457 Views, 1 Reply

BeginDocumentClose

I am currently in the process of re-writing my VBA in .net.

 

In VBA I succesfully used AcadDocument_BeginClose which called lisp functions.

 

While I appreciate it would be nice to have all code in the same environment I need to transition my changes.

Therefore I need to call lisp from .net.

 

My function works well when run withing the cad files session but does not appear to call the lisp when called after the BeginDocumentClose.

 

Is it possible to call a lisp function after the BeginDocumentClose event?

 

Regards

Martin

1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous

I have found the answer, (not that my lisp function is interactive).

AutoCAD .NET Developer's Guide

Guidelines for Event Handlers


Do not attempt any interactive functions from an event handler.
Attempting to execute interactive functions from within an event handler can cause serious problems, as AutoCAD may still be processing a command at the time the event is triggered. Therefore, you should always avoid requesting for input at the Command prompt, as well as object selection requests, and using the SendStringToExecute method from within event handlers.

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Autodesk Design & Make Report