- UID
- 21750
- 积分
- 228
- 精华
- 贡献
-
- 威望
-
- 活跃度
-
- D豆
-
- 在线时间
- 小时
- 注册时间
- 2002-12-24
- 最后登录
- 1970-1-1
|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
**线形反向***
(defun c:fx()
(setq ss(ssget) mun 0)
(repeat (sslength ss)
(setq entl-y (ssname ss mun))
(command "pedit" entl-y "d" "")
(setq entl(entget entl-y))
(if (= "POLYLINE" (cdr(assoc 0 entl))) (command "pedit" entl-y
"lt" "on" "x"))
(if (= 10 (car (nth 13 entl))) (setq nn 13))
(if (= 10 (car (nth 12 entl))) (setq nn 12))
(setq lt-name(cdr(assoc 6 entl)) la-name (cdr (assoc 8 entl)))
(setq W_list '())
(setq elem (cdr (nth nn entl)))
(setq w_list (append w_list (list elem)))
(while (not (null elem))
(setq nn(+ nn 4))
(setq elem (cdr (nth nn entl)))
(if (= (car (nth nn entl)) 10)
(setq w_list (append w_list (list elem))) ;构建实体坐标表
)
)
(setq w_list (reverse w_list))
(s t1 (car W_list))
(command "pline" pt1)
(while w_list
(setq w_list(cdr w_list))
(setq pt (car w_list))
(command pt)
)
(command "")
(command "chprop" (entlast) "" "lt" lt-name "la" la-name "")
(command "pedit" (entlast) "lt" "on" "s" "")
(command "erase" entl-y "")
(setq mun (+ mun 1))
)
)
由于是网上下的程序,此段 (s t1 (car W_list)), 被别人修改
可能还有其它问题,希望得到各位大虾的指点,谢谢! |
|