指引一下:
 - (setq ss (ssget'((0 . "INSERT,LWPOLYLINE,line,arc,circle"))))
- (setq j 0 )
- (repeat (sslength ss)
- (setq seltyp (cdr (assoc 0 (entget (ssname ss j)))) j (1+ j))
- (cond
- ((= seltyp "INSERT")(alert "INSERT"))
- ((= seltyp "LWPOLYLINE")(alert "POLYLINE"))
- ((= seltyp "line")(alert "line"))
- ((= seltyp "arc")(alert "arc"))
- ((= seltyp "circle")(alert "circle"))
- )
- )
|