
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm trying dilligently to learn how to code in AutoLISP for changing things like layer assignments of objects inside blocks.
I've been looking at examples for a while now, and it's too much for me to take in all at once. Please note the following code:
; Changes selected objects to Layer TO_THIS_LAYER
(defun c:TTL ()
(tolayer
(ssget "_:L") ;;selection
"TO_THIS_LAYER" ;;Layer
)
(princ)
)
I need to get to the next step: being able to make this kind of object property assignment change inside a block without opening the block editor every time. I know it involves a few "vla--" commands. Could someone format this simple program for me so I have a good, basic example to learn from? Also is it possible to retain the object-selection-highlighting, or is that not possible when reaching directly into a block for edits? Thanks in advance!
Solved! Go to Solution.