Author Topic: Pause Script for User Input?  (Read 6488 times)

0 Members and 1 Guest are viewing this topic.

M-dub

  • Guest
Pause Script for User Input?
« on: May 28, 2008, 10:31:34 AM »
Is it only possible to pause Macros for user input?  I would like to pause a Script for input.

We have a couple thousand drawings that have a section of the drawing that needs to be erased and then have an attributed block inserted at a location chosen by the user, then the attributes would be filled out based on database information.

I thought this could be done, but am I out of luck on this one?  What alternatives should I look into?

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Pause Script for User Input?
« Reply #1 on: May 28, 2008, 10:44:32 AM »
It would appear that you could insert a little lisp in there to cause the script to pause for the user input.

Do not ask me how, as I do not LISP.
Be your Best


Michael Farrell
http://primeservicesglobal.com/

Shinyhead

  • Guest
Re: Pause Script for User Input?
« Reply #2 on: May 28, 2008, 10:46:12 AM »
A normal script cannot be paused for user input like a macro, nor can it do diesel commands. Not sure about lisp though.

M-dub

  • Guest
Re: Pause Script for User Input?
« Reply #3 on: May 28, 2008, 10:49:36 AM »
Yes, I'm thinking lisp will have to be the way to go.


Time for a crash course for me!!!

deegeecees

  • Guest
Re: Pause Script for User Input?
« Reply #4 on: May 28, 2008, 10:55:50 AM »
Is the portion of the drawing at a constant location?

M-dub

  • Guest
Re: Pause Script for User Input?
« Reply #5 on: May 28, 2008, 11:01:12 AM »
Unfortunately, we can't count on it.  That's why I'm in this predicament.

deegeecees

  • Guest
Re: Pause Script for User Input?
« Reply #6 on: May 28, 2008, 11:05:12 AM »
Thats a stickler. If there is say, a constant block sitting at a constant distance from the area that needs to be erased, you could find the ins point, etc., but if there is no constant data, you're probably going to have to do some kind of manual/scripting compromise. But, you knew that.

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4076
Re: Pause Script for User Input?
« Reply #7 on: May 28, 2008, 11:05:36 AM »
can the selection be made with a consistent number of picks?
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

M-dub

  • Guest
Re: Pause Script for User Input?
« Reply #8 on: May 28, 2008, 11:07:23 AM »
Yes.  Two.

(Any more and the user can do that after the script has completed)

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4076
Re: Pause Script for User Input?
« Reply #9 on: May 28, 2008, 11:08:40 AM »
i kinda remember something to the effect of erase;pause;pause allowing the pick points of your selection, and then it would continue
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

M-dub

  • Guest
Re: Pause Script for User Input?
« Reply #10 on: May 28, 2008, 11:12:13 AM »
I think that's only in a Macro and the pauses are initiated by a backslash.  ( \ )

David Hall

  • Automatic Duh Generator
  • King Gator
  • Posts: 4076
Re: Pause Script for User Input?
« Reply #11 on: May 28, 2008, 11:12:24 AM »
ok, that didn't work.  I would write a small lisp and call that from the script
Everyone has a photographic memory, Some just don't have film.
They say money can't buy happiness, but it can buy Bacon and that's a close second.
Sometimes the question is more important than the answer. (Thanks Kerry for reminding me)

T.Willey

  • Needs a day job
  • Posts: 5251
Re: Pause Script for User Input?
« Reply #12 on: May 28, 2008, 11:15:53 AM »
I just had something like this to do.  I have a lisp that I needed to call on some drawings, but the lisp asked for user input.  The script would stop running after the lisp was called and finished.  I could type resume at the command line to resume the script, but it would not resume by itself.  Maybe if you add a resume call to the end of the lisp it would work, as I didn't test that.
Tim

I don't want to ' end-up ', I want to ' become '. - Me

Please think about donating if this post helped you.

M-dub

  • Guest
Re: Pause Script for User Input?
« Reply #13 on: May 28, 2008, 11:16:26 AM »
ok, that didn't work.  I would write a small lisp and call that from the script

Oh yeah, I hadn't thought of it that way!

deegeecees

  • Guest
Re: Pause Script for User Input?
« Reply #14 on: May 28, 2008, 11:23:17 AM »
I've got some old code I've been throwing around here for some time that is basically a Lisp that creates a script of a directory of drawings, and runs a Lisp from within it. I'm not sure if calling for user input would choke it, but worth a shot maybe. I can't expand on it myself ATM (under the gun for shop dwgs), but maybe you could.

http://www.theswamp.org/index.php?topic=22901.msg276124#msg276124