Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to respond to prompts in AutoLISP?

3 views
Skip to first unread message

D.Kuang

unread,
Sep 6, 1993, 9:53:46 PM9/6/93
to
Hi,
I am writing a AutoLISP program to do some modeling tasks. In my program
I need call another function defined as a command, there are several
prompts after calling this function and I want to respond this prompts in my
code rather than from keyboard, but my AutoLISP program does not recognize
the respond from my code and always wait for the respond from keyboard.
I have read the comments about this in page 15 in AutoLISP Programmer's
Reference Manual, but I am still not clear about the solution. So I am posting
this message to ask your help, I know you are all expert on AutoCAD.

My code is like this: ......
(c:solview "ucs" "" ....)

Where solview is an ads application for AME, after calling solview, there will
be a prompt in command line: Ucs/ortho/Auxilary/<exit>:
ucs is my first choice, so I give "ucs" in my code as the first respond, but
the program does not recognize this respond and wait for keyboard respond.

Does any one know the solution?

Thank you for your help in advance.

Ragnar Mikkelsen

unread,
Sep 7, 1993, 5:42:21 AM9/7/93
to
In article <26gpja$5...@happy.cc.utexas.edu>, ku...@happy.cc.utexas.edu (D.Kuang) writes:
deleted

|>
|> My code is like this: ......
|> (c:solview "ucs" "" ....)
|>
|> Where solview is an ads application for AME, after calling solview, there will


If I understand you right, solview is a command that can be invoked from the keabord. If so try

(command "solview" "ucs" "" .....)

Raggi

D.Kuang

unread,
Sep 7, 1993, 11:33:16 AM9/7/93
to
Hi, Raggie:
Thank you for your respond, you are right, solview is a command that can
be called from keyboard at command prompt. But it is an ADS application for
AME. We can not use (command "solview"....), since (command ....) function
only executes AutoCAD commands. Solview is not an AutoCAD command but an
application for AME defined as a command. (c:solview ...) is a way to call
a function defined as a command within AutoLISP. I tried (command "solview"...)
before, it does not work.

Any further help are welcome.

Hong
---------------------------------------------------------------
ho...@cadstation.me.utexas.edu or ku...@happy.cc.utexas.edu
Xinghong Li
Department of Mechanical Engineering
University of Texas at Austin
---------------------------------------------------------------

0 new messages