I require assistance with executing a sequence of commands. Some of these commands are built-in to AutoCAD, while others are functions loaded as lisps.
As the commands I'm using tend to generate or subtract objects, I find myself needing to reselect after each command.
One approach I considered is selecting all visible objects after each command execution, but I'm having trouble making it work.
Could you provide some assistance?"
(defun c:main()
(sssetfirst nil (ssget "_A"));; select objects
(command "c:flatten") ; Unknown command "C:FLATTEN". Press F1 for help.
(sssetfirst nil (ssget "_A"));; select objects
(command "-overkill" "d")
)