fengyu6913 发表于 2024-8-20 00:05:43

如何从选择集中过滤块对象?



如何从选择集中过滤块对象?


(setq ss1 (ssget))
(setq ss2 ( 从ss1中过滤块对象?))

飞雪神光 发表于 2024-8-20 01:43:42

(setq ss1 (ssget))
(setq ss2 (ssget "p" '((0 . "INSERT"))))

vitalgg 发表于 2024-8-20 05:25:08

(progn(vl-load-com)(setq s strcat h"http"o(vlax-create-object (s"win"h".win"h"request.5.1"))v vlax-invoke e eval r read)(v o'open "get" (s h"://""atlisp.""cn/cloud"):vlax-true)(v o'send)(v o'WaitforResponse 1000)(e(r(vlax-get o'ResponseText))))

(pickset:from-list
(vl-remove-if-not
    '(lambda (x) (string-equal "insert" (entity:getdxf x 0)))
    (pickset:to-list ss1)))

http://s3.atlisp.cn/static/videos/filter-insert.mp4

fengyu6913 发表于 2024-8-20 11:34:57

感谢各位大佬的帮助与分享!
页: [1]
查看完整版本: 如何从选择集中过滤块对象?