Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Info message via Script

1 REPLY 1
Reply
Message 1 of 2
sbcadguy
295 Views, 1 Reply

Info message via Script

I am writing a few basic scripts and I need to be able to give the user running the scripts an informational message explaining what the script is going to do.  Is this possible?  I had read about it somewhere, but my searching is turning up nothing.  Preferably would like this as an info GUI pop-up message box w/ an OK button, but would settle for a command line message with an enter to continue.

1 REPLY 1
Message 2 of 2
SomeBuddy
in reply to: sbcadguy

Hi,

 

The simplest way to pop up a GUI message is to use the (alert ...) function. Here is a simple example. Just copy-paste this at command prompt and hit Enter:

 

 

(alert
  (strcat
    "\nThis is some"
    "\nexemple about"
    "\nhow to write"
    "\nmultiline text"
    "\ninside an alert"
    "\ndialog box."
  )
)

 HTH

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost