- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I have an existing lisp where currently theres shorthand commands to change previous selection to a different layer. However, there's no way to simply highlight and change it. Currently I have to highlight, use select command, then use change command to change layers.
Despite all my fuddling, there seems to be no way to code lisp so it simply makes my highlight the selection then changes it. It clears my selection when Select command runs, then errors because it wants me to select before moving onto Change command. How can I make it so whatever I highlight becomes the selection, then have Change command change the layer of the selection?
Current Code (Shorthand substitutes have been fully typed out instead):
(Defun C:SEC9 () [this example is for changing to layer named "9"]
(COMMAND "SELECT" "")
(Command "CHANGE" "P" "" "P" "LA" "9" "")
)
Solved! Go to Solution.