BeginDocClose Event

Triggered immediately after AutoCAD receives a request to close a drawing.

See Also | Example

Signature

object.BeginDocClose(Cancel)

object

Document object
An object expression that evaluates to a valid container object. In this case, the only valid containers are the application and a document.

Cancel

Boolean
Determines whether to prevent the drawing from being closed.

TRUE: The drawing is prevented from closing.

FALSE: The drawing is not prevented from closing.

Remarks

You can use this event to keep a drawing from being closed. This event should be used instead of the BeginClose event.

No events occur while a modal dialog is being displayed.

 

   Comments?