James Maeding sent in these nice examples of defining LISP functions on the fly. One of the two examples provided defines the LISP functions L1, L2, L3 … L255 used to create layers with certain properties. The other one defines the LISP functions C1, C2, C3 … C255 used to change the color of selected entities. In each case there are 255 functions created, but only one set of code to maintain when changes may arise. Maybe you can think of other ways you can use this, and modify the supplied code as desired. James has provided plenty of comments and noted the locations most likely to be modified by the user. Thanks, James. |