Jump to content

Recommended Posts

Posted
(setq A "100")

(setq B (getstring "\n Bar Spacing <"A"> "))

Please help me to correct this code.

Posted (edited)

 

 

(setq B (getstring (strcat "\n Bar Spacing <" A "> ")))

 

 

And Then

(if (= B "") (setq B A))

Edited by David Bethel
  • Thanks 1
Posted (edited)

Something like this it can be re-set to remember last entry. getvals multi.lsp is in the download area at Cadtutor.

 

(if (= barsz nil)(setq barsz "100"))
(if (not AH:getvalsm)(load "Multi Getvals.lsp"))
……...
……...
(setq barsz (atof  (AH:getvalsm (list "Input bar spacing" "Bar space" 5 4 barsz ))))

 

 

image.png.9071cea13fc22f7ee56811dd7ccee96a.png

Edited by BIGAL
  • Like 1
Posted
On 10/3/2019 at 10:22 PM, Lee Mac said:

You may find my tutorial: Prompting with a Default Option a useful read.

Thanks Mr Lee for your kind help. In my new office I have to work with Auto cad Mac. So I cant use Vall. and  DCL applications 

So your guidance are mostly welcome and highly appreciated.  

 

Posted

Open DCL does mention mac so it may be a way around the dcl problem. Will have  a look further later going out for beer now my birthday.

  • Like 1

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...