@robert06 wrote:
Separate selection sets enable manipulating ss1 subsequently, which helped me to add another step manipulating the objects.
It sounds like you really just need one selection set to "survive" the operation, and you can still just dump the Hatch patterns. In that case, the original selection set variable can remain, and what remains of it at the end put on the desired Layer together. How 'bout something like this [minimally tested this time]?
(repeat (setq n (sslength ss1))
(setq ent (ssname ss1 (setq n (1- n)))); step through selection
(if (member '(0 . "HATCH") (entget ent)); is it a Hatch pattern?
(entdel ent); then -- delete it [from the drawing -- don't really need to from the set ]
); if
); repeat
(command "_.chprop" ss1 "" "_layer" "YourLayerName" ""); put what's left of it on Layer
Kent Cooper, AIA