I am learning autolisp and currently using Bricscad. I would like to select all objects on screen, then run a lisp program to set the selected objects to a specific layer.
Here is the code I have tried:
`(defun c:aametal (/)
(command “._chprop” “_la” “AAMETAL” “” “”)
(princ "Entities Set to AAMETAL Successfully")
)`
It works if I copy ‘”._chprop” “_la” “AAMETAL” “” “”‘ and paste it in to the command line, but will not run when I load it. Any help would be much appreciated!