Author Topic: How can I cancel drawing opening?  (Read 1554 times)

0 Members and 1 Guest are viewing this topic.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
How can I cancel drawing opening?
« on: February 18, 2013, 03:14:56 AM »
How can I cancel drawing opening?

BlackBox

  • King Gator
  • Posts: 3770
Re: How can I cancel drawing opening?
« Reply #1 on: February 18, 2013, 12:30:17 PM »
Not sure... perhaps register a DocumetBecameCurrent event handler to filter for this particular document you don't want being opened, and invoke the Close Command asynchronously?
"How we think determines what we do, and what we do determines what we get."

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: How can I cancel drawing opening?
« Reply #2 on: February 19, 2013, 05:00:45 AM »
I need to cancel document opening, or unload it before acaddoc.lsp will be loaded

BlackBox

  • King Gator
  • Posts: 3770
Re: How can I cancel drawing opening?
« Reply #3 on: February 19, 2013, 09:32:39 AM »
Consider the CloseAndDiscard() Method from Initialize() (for your specific Document, of course)
"How we think determines what we do, and what we do determines what we get."