Author Topic: Suppress messages on Drawing Open  (Read 1766 times)

0 Members and 1 Guest are viewing this topic.

GumbyCAD

  • Newt
  • Posts: 84
Suppress messages on Drawing Open
« on: April 07, 2014, 10:00:21 PM »
Hey Team,

I have a small Batch Utility the opens files, does stuff to the file then closes them.

It seams to hang and if I hit Enter or Esc when it hangs it continues.

I am assuming that its a message from AutoCAD regarding missing shape file or unresolved XREF or something along those lines.

Is there a way I suppress all messages during my tool running?

Stephan

MickD

  • King Gator
  • Posts: 3637
  • (x-in)->[process]->(y-out) ... simples!
Re: Suppress messages on Drawing Open
« Reply #1 on: April 08, 2014, 12:42:50 AM »
Hi Stephan,
do you need to open them proper in the editor? You can just open them in memory and do your thing and perhaps catch an exception if there is any trouble. It may only be looking for shape files to display the image properly, perhaps this will go away with an in memory process??
"Programming is really just the mundane aspect of expressing a solution to a problem."
- John Carmack

"Short cuts make long delays,' argued Pippin.”
- J.R.R. Tolkien

GumbyCAD

  • Newt
  • Posts: 84
Re: Suppress messages on Drawing Open
« Reply #2 on: April 08, 2014, 02:27:10 AM »
Only way I have found is to edit the "FixedProfile.aws" file.

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: Suppress messages on Drawing Open
« Reply #3 on: April 08, 2014, 02:42:08 AM »
You can work with Database directly, without a Document object.
Quote
I have a small Batch Utility the opens files, does stuff to the file then closes them.
I hope you use the accoreconsole if your AutoCAD newer than 2012.

GumbyCAD

  • Newt
  • Posts: 84
Re: Suppress messages on Drawing Open
« Reply #4 on: April 08, 2014, 02:43:52 AM »
Problem is that the "Stuff" could be Lisp, DVB or SCR....

Andrey Bushman

  • Swamp Rat
  • Posts: 864
Re: Suppress messages on Drawing Open
« Reply #5 on: April 08, 2014, 02:45:00 AM »
it is not a problem if user interaction is not exist in your code..
« Last Edit: April 08, 2014, 02:51:29 AM by Andrey Bushman »