Maybe this![]()
Code:(setq ss (ssget "X" '( (-4 . "<and") (-4 . "<or") (62 . 1) (62 . 6) (62 . 9) (62 . 42) (62 . 214) (-4 . "or>") (-4 . "<not") (0 . "text,dimension,leader,multileader") (-4 . "not>") (-4 . "and>") ) ) )

Registered forum members do not see this ad.
(setq ss (ssget "X" '(
(-4 . "<and")
(-4 . "<or")(62 . 1)(62 . 6)(62 . 9)(62 . 42)(62 . 214)(-4 . or>")
(-4 . "<or")
(-4 . "<not")(0 . "text") (-4 . "not>")
(-4 . "<not")(0 . "dimension") (-4 . "not>")
(-4 . "<not")(0 . "leader") (-4 . "not>")
(-4 . "<not")(0 . "multileader") (-4 . "not>")
(-4 . "or>")
(-4 . "and>")
)
)
)
hi was just wondering if anyone could help me out will this one. I am only new to lisp.
Am wanting to select objects which have a certain colour (colour by colour - not by layer. realise they would not have a 62 if by layer) but if they are text, dim, leader or multileader, then I don't want them selected.
Any help would be great thanks
regards
martin
Maybe this![]()
Code:(setq ss (ssget "X" '( (-4 . "<and") (-4 . "<or") (62 . 1) (62 . 6) (62 . 9) (62 . 42) (62 . 214) (-4 . "or>") (-4 . "<not") (0 . "text,dimension,leader,multileader") (-4 . "not>") (-4 . "and>") ) ) )

thankyou so much
i will check it out at work tomorrow
cheers
martin

Registered forum members do not see this ad.
yep.
like a charm!!
![]()
Bookmarks