I'm just starting to venture into the world of AutoLISP. With that in mind, I've "inherited" numerous LISP routines. Obviously I need to determine what each line of code/script does. Currently I have the following line and could use some explanation of it does?
(if (setq selVariable1 (ssget "_X" (list '(0 . "INSERT") (cons 2 (strcat "`*U*," strVariable1)) '(410 . "~Model))))
1. I believe the "setq" keyword assigns something to the "selection Variable 1"
2. The "strcat" probably takes what ever texts is assigned to "String Variable 1" and concatenates it with a `*U*, prefix ? So if "String Variable 1" = "Hello World", then the result of the "strcat" keyword would be "`*U*,Hello World" What I don't know is why you would ever want this? What does the `*U*, designate/mean?
3. I have no idea what a "cons 2" keyword does?
4. I have no idea what a '(410 . "~Model) does?
5. I have no idea what a '(0 . "INSERT") does?
6. Does the "list" keyword make some kind of filter of what to include/dis-include in the "ssget" keyword command?
7. Does the "ssget" keyword select objects from the database?
8. Why the "_X"? I'm assuming this is just a variable called "X" but in English?
Christmas