Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
something wrong in this code ? if yes please help.
(defun c:GLASS ()
;; Unfreeze all layers
(command "._-layer" "thaw" "GLASSWALL" "")
(command "._-layer" "thaw" "BLOCKWALL" "")
(command "._-layer" "thaw" "GYPSUMWALL" "")
;; Set "GLASS" as current layer
(command "._-layer" "make" "GLASSWALL" "")
;; Freeze other two layers
(command "._-layer" "freeze" "BLOCKWALL" "")
(command "._-layer" "freeze" "GYPSUMWALL" "")
;; Select all Polylines feom the GLASSWALL layer *****NOT WORKING***
(setq ss (ssget "X" (list (cons 8 "GLASSWALL") (cons 0 "POLYLINE"))))
(princ "\nGLASS is current, others frozenand all polylines are selected.")
(princ)
)
Solved! Go to Solution.