Jump to content

getstring


jay3791

Recommended Posts

I am working on my first LISP program and hit a bump.

 

I have the following (getstring "mypromp")

 

But when I type what i want at the command line when i am promped it doesn't allow me to type a space

 

Is there a way to allow spaces when typing my string at the command line?

Link to comment
Share on other sites

I am working on my first LISP program and hit a bump.

 

I have the following (getstring "mypromp")

 

But when I type what i want at the command line when i am promped it doesn't allow me to type a space

 

Is there a way to allow spaces when typing my string at the command line?

 

LoL

I remember this one driving me insane.

(getstring T "\nType something: ")

Will give you what you need. Also, add the \n to the beginning of your prompt string to ensure it is placed on a new line (must be lowercase).

Link to comment
Share on other sites

Jay,

 

If you use the Visual LISP Editor as provided with AutoCAD to type your code, help is at hand for every AutoLISP function - giving you priceless information on the arguments needed etc.

 

Type VLIDE or VLISP (both do the same) at the command line, and then Go to File > New File.

 

Start typing your LISP there and you will notice the functions turn blue, double-click over these and click on the help icon.

 

The VLIDE can also be used for debugging and checking purposes.

 

More info here:

 

http://www.afralisp.net/vl/vlisp.htm

 

http://www.afralisp.net/vl/vl-edit.htm

 

http://midpointcad.com/au/docs/lakose_The_Visual_LISP_Developers_Bible.pdf

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...