Author Topic: Suppress Authoring Elements Prompt  (Read 2919 times)

0 Members and 1 Guest are viewing this topic.

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Suppress Authoring Elements Prompt
« on: November 13, 2010, 10:37:37 AM »
I am running a script on several directories of dwg's but when it runs into a dwg that is a dynamic block it stops.  I believe it is because of the prompt ".....contains authoring elements. Open in Block Editor"

Is there a way to check for this in the script and react accordingly?

Thanks folks
ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright 2016

Lee Mac

  • Seagull
  • Posts: 12392
  • London, England
Re: Suppress Authoring Elements Prompt
« Reply #1 on: November 13, 2010, 11:42:56 AM »
Hi Tim,

Perhaps there is a better way to accomplish the operations of your script by coding them in LISP and calling the LISP from the script - in this case the script would just be used to open/run LISP/save/close on the drawings.

This way the LISP would provide more control and more error trapping on your task.

Just an idea,

Lee

MP

  • Seagull
  • Posts: 17686
  • Have thousands of dwgs to process? Contact me.
Re: Suppress Authoring Elements Prompt
« Reply #2 on: November 13, 2010, 12:14:04 PM »
I totally agree Lee, I'm often confused why lisp is so under utilized in scripts.

However, in this case I believe it's because Tim uses Acad LT.

Despite a couple public floggings.  :lol:
Engineering Technologist CAD Specialist Programmer Analyst
Design Drafting Document Control Automation.
cadanalyst@fastmail.com https://cadanalyst.slack.com http://linkedin.com/in/cadanalyst

Lee Mac

  • Seagull
  • Posts: 12392
  • London, England
Re: Suppress Authoring Elements Prompt
« Reply #3 on: November 13, 2010, 12:22:00 PM »
However, in this case I believe it's because Tim uses Acad LT.

Argh! Well that shoots down my idea...  :cry:

David Bethel

  • Swamp Rat
  • Posts: 641
Re: Suppress Authoring Elements Prompt
« Reply #4 on: November 13, 2010, 01:09:19 PM »
Maybe set sysvar EXPERT to 5. Or how about qflags or nomut.   ????   -David
R12 Dos - A2K

TimSpangler

  • Water Moccasin
  • Posts: 2010
  • CAD Naked!!
Re: Suppress Authoring Elements Prompt
« Reply #5 on: November 15, 2010, 07:34:01 AM »
Well after a bit more testing, i now don't believe that it is the dynamic blocks that are causing my grief. (Not really sure what it is.

Lee,
That is precisely what I am doing.  I am in the final testing stages of a batch processor that will run a lisp on a bunch of drawings in multiple locations.

MP,
It was true, fortunately now I am running ACA2009 and Autocad '08.  No more support of LT.

David,
I tried messing with the Expert and Nomutt variable but still not getting the desired results. Didn't try qflags.

Let me explain a bit more about what is happening:
The batch processor opens
I browse for and select the lisp to run.
I browse for dwgs and add them to the list.
Then I begin to process the dwg.

During the processing a script is created that:
Closes the current dwg
Open the next dwg in the list (which get changed after ever pass)
Loads the batch processor lisp
Load the lisp to process
Recreates the script for the next drawing (a function in the batch processor lisp)
If there are no dwg to process, then the script is deleted and a reactor is fired on the original dwg. (If a cleanup function is defined)

...or the process starts all over.

I can batch 30-40 dwg with no problem, but then, every once in a while the script pauses on a random dwg.

My thought is that the lisp starts to run before Autocad is initialized to the point of running the script.? I am going to add S::STARTUP to the lisp and see if that helps.  Currently I have no defun in the lisp, it runs on load.  I have a bit more testing to do, I appreciate anything ideas that you guys come up with.

Thanks


ACA 2015 - Windows 7 Pro
All Comments and Content by TimSpangler, Copyright 2016

MP

  • Seagull
  • Posts: 17686
  • Have thousands of dwgs to process? Contact me.
Re: Suppress Authoring Elements Prompt
« Reply #6 on: November 15, 2010, 09:52:02 AM »
Hi Tim ... the processing that needs to be done to each dwg ... could it be performed via objectdbx?

PS: Glad to hear you junked LT.
Engineering Technologist CAD Specialist Programmer Analyst
Design Drafting Document Control Automation.
cadanalyst@fastmail.com https://cadanalyst.slack.com http://linkedin.com/in/cadanalyst

Lee Mac

  • Seagull
  • Posts: 12392
  • London, England
Re: Suppress Authoring Elements Prompt
« Reply #7 on: November 15, 2010, 10:59:00 AM »
Tim,

I may have misunderstood you, but could you not just create one script to run across the drawings, instead of recreating it each time - akin to how this program functions, not sure if that is causing the issue, but it sounds a simpler procedure IMO.

Also, you could go the ObjectDBX route (as Michael points out) with either this or this, providing the LISP you are running is 'compatible' with ObjectDBX (notes about this on my site).

If you need any help with the LISP you are using to operate on the drawings I'd be more than happy to lend a hand.

Lee