About This File
Multiple Inputs
Multiple Input DCL is a library routine that allows you to create as many lines of input as required (subject to Autocad limits) using a dialouge rather than the command line.
It can be used in most lisp code with just a couple of lines of code, compared to a hard coded solution of around 50+ lines repeated every time you want to use a dcl.
To use just save the "Getvals multi.lsp" to a directory that is included in you Autocad search path. If you need more information how to do this send an email to info@alanh.com.au
It only requires 2 lines of code in any lisp to use.
(if (not AH:getvals)(load "Getvals multi.lsp")) ; check if already loaded else load
(setq yourlist (ah:getvals '("Xfall percent" "Enter Horizontal scale " 5 4 "100" "Enter Vertical scale" 5 4 "50" "Enter number of decimal places" 5 4 "2")))
There is extra examples in the top of the code about how to use. You can have 1 entry or as many as required subject to screen size.
For complete example contact info@alanh.com.au and we will send some more example code load and a working example "Make furniture table.lsp"
For testing just copy the two lines of code to the command line you will see a "list" of the result. You can then convert if required to a real or integer using Atof or Atoi.