Include Object

Kenny Poong

Usenet Archive
Joined
Jul 17, 2003
Messages
4
Reaction score
0
Hi,

Lisp below allow me to select solid hatch object & bring it to back. How can I include the 2D solid object to the selection.

thanks in advance.

(defun c:MB ( / a )
(setq a (ssget "X"
(list (cons 0 "HATCH")
(cons 2 "SOLID")
)
)
)
(command "Draworder" a "" "B")
(princ)
)
 
add "or"s & "and"s to the filter, something like this ...

(ssget "X" (list (cons -4 "<OR")
(cons -4 "<AND")(cons 0 "HATCH")(cons 2 "SOLID")(cons -4 "AND>") (cons 0 "SOLID")
(cons -4 "OR>") ) )
 
I think this might be what you are looking for:

(setq sset (ssget "x"
'((-4 . "<OR")
(0 . "HATCH")
(0 . "SOLID")
(-4 . "OR>")
)
) ;ssget
) ;setq

or maybe:

(setq sset (ssget "x"
'((-4 . "<OR")
(-4 . "<AND")
(0 . "HATCH")
(2 . "SOLID")
(-4 . ">AND")
(0 . "SOLID")
(-4 . "OR>")
)
) ;ssget
) ;setq

JJ
KJLISP CADD solutions.
 

Latest threads

Back
Top