Message 1 of 6
Help with selection set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm having an issue with a selection set.
This is a work in progress but what it does is creates 3d grating out the grate hatch pattern.
The problem I'm having is after the lines are turned into polylines, I'm losing the selection set "SS2".
(defun c:ttt (/ OS PTZ SS SS2) (setq OS (getvar 'osmode)) (setvar 'osmode 7) (command "id" pause) (setq PTZ (rtos (setq PTZ# (caddr (getvar 'lastpoint))) 4 4)) (command "-hatch" "_P" "Grate" "32" "" "S" pause "" "") (setq SS (entlast)) (command "_.CHANGE" SS "" "_P" "_E" PTZ "") (command "explode" SS) (setq SS2 (ssget "_P")) (command "_pedit" "m" SS2 "" "y" "w" "3/16" "") (command "_.CHANGE" SS2 "" "_P" "_T" "1" "") ;;;SS2 stops working )
On a side note.
How come this works:
(command "id" pause) (setq PTZ (rtos (setq PTZ# (caddr (getvar 'lastpoint))) 4 4))
But this doesn't work:
( getpoint "\nTEST POINT : ") (setq PTZ (rtos (setq PTZ# (caddr (getvar 'lastpoint))) 4 4))