pline的双重选择
大家好我附加了我使用的部分代码(lee mac写的一些行)
代码中的问题是,我需要两次选择相同的pline(setq ent/setq se2)
我什么都试了,但没有成功
希望有人能帮我
(setq ent(car(func(strcat“\n选择具有“prop”属性的对象:)))
(setq se2(ssget“:S”((0。“直线、样条曲线、LW多段线、多段线、圆弧、圆、椭圆”)))
新1。lsp 如果你想要pline,为什么不做(ssget ss(list(cons 0“lwpolyline”))
你试过了吗
(setq se2 (ssget ":S" '((0 . "LINE,SPLINE,LWPOLYLINE,POLYLINE,ARC,CIRCLE,ELLIPSE"))))
(setq ent (ssname se2 0))
完美工作
谢谢你的帮助
我不懂台词,但你每天都在学习新东西
;The line below is to get a selection set. The ssget ":s" means single selection
attempt only and the following list is a list of allowed entity types
(setq se2 (ssget ":s" '((0 . "line,spline,lwpolyline,polyline,arc,circle,ellipse"))))
;The line below accesses the first entity in the selection set assigned to variable se2
(setq ent (ssname se2 0)) 通过变量“PROP”重新阅读要选择的帖子
(setq prop "lwpolyline")
(princ (strcat "\nSelect object with " prop " property: "))
(setq ss (ssget ":s" (list (cons 0 prop))))
页:
[1]