AutoCAD 2012 帮助
 
Input Validation
 
 
 

You should protect your code from unintentional user errors. The AutoLISP user input getxxx functions do much of this for you. However, it's dangerous to forget to check for adherence to other program requirements that the getxxx functions do not check for. If you neglect to check input validity, the program's integrity can be seriously affected.


Control of User-Input Function Conditions
Input Options for User-Input Functions
Keyword Options
Arbitrary Keyboard Input
Input Validation