LosGirk 发表于 2022-7-5 23:04:02

Can you tell what's wrong

Hi all, Can someone please tell me what's wrong with this line?I'm trying to catch all polylines with the color 230 inside a window.Nothing I try works!?
 

(setq ss1 (ssget "_W" pt15 pt17 '((0 . "POLYLINE")(62 . 239))))
 
Thanks in advance!

hmsilva 发表于 2022-7-5 23:22:32

The "POLYLINE" will only select Heavy Polylines, if you have Lwpolylines you must use "LWPOLYLINE" or"*POLYLINE"
 
 
HTH
Henrique

ROBP 发表于 2022-7-5 23:34:44

 
If polylines are on a separate layer (color 230) then you should be able to select them all.
 
Basics rules here (same color with different things = layer with differents name and preset colors) makes things easier to use
 
no need to use lisp to separate and selects things when it can be done simply

LosGirk 发表于 2022-7-6 00:03:23

Bingo, they were lightweight polylines!Thanks both of you for responding!I messed with that for almost a week!

BIGAL 发表于 2022-7-6 00:16:48

Dumb question 62 . 239 ??? 230 colour required.
页: [1]
查看完整版本: Can you tell what's wrong