'Lock and 'Freeze are symbol arguments for the vlax-put-property function (hence why they are quoted).
Alan could have alternatively used:
- (setq lst (cons (list x "Lock" :vlax-true) lst))
Following the vlax-for loop through the layer collection, the list 'lst' might look something like:
- ((# 'Lock :vlax-true) ... )
# being a VLA Layer Object. Each sublist is a list of arguments for the vlax-put-property function.
Then, in the foreach loop at the end of the program, these sublists are supplied as arguments to the apply function:
- (apply 'vlax-put-property '( 'Lock :vlax-true))
Which is equivalent to:
- (vlax-put-property 'Lock :vlax-true)
|