In this example I will show you how easy to create a dialog for auto lisp.
1. File -> New, named the project what ever you want.
2. Change retirement button to ok_cancel the form should look like picture 2. and change the caption to Example 1.
3. From component toobar select Row and draw on form
4. After that draw a boxcolumn on form and name it Size
5. Draw 3 textbox on boxcolumn and name it Width, Height and Thickness then
Set linkToVar property of these textbox to mywidth, myheight and mythickness.
6. After that draw an RadioGroup on the created row and named it Color.
Set LinkToVar property to mycolor.
From inspector Adding 5 lines RadioItem property
Red
Green
Blue
Yellow
7. You can play with dilaog by press Toggle Design button
from toolbar
8. Press generate code button
from toolbar all the code will be create.
9. Go into AutoCad , load gererated lisp file. The dialog should appear.
10. Change value of dialog as see in next picture then press OK.
In autocad command if type !mywidth the value 200 will appear, and alse the values 300 or 15 or 2 will be show if you type !myheight or !mythick or !mycolor.
Next time you call (loaddialog_xxx) the values you enter automatic fill to dialog. (xxx is name of dialog)
The beautiful dialog and autolisp are create within 3 minute. You needle to write any single line of code. Don't need to know any lisp routine.
How do you think?