修改等高线高程值的小程序,谢谢提建议
无痕 发表于 2004-1-22 19:41;;改多义线高程---------------------无痕 .2004.1
;(chel)
(vl-load-com)
(defun c:chel ()
(setq elv (getdist "\n新高程:"))
(while (and(princ "\n选则高程多义线(回车退出):")
(setq ss (ssget '((0 . "*polyline")))))
(setq ssv (vla-get-activeselectionset (vla-get-activedocument (vlax-get-acad-
object))))
(vlax-for obj ssv
(vlax-put obj 'Elevation elv)
)
)
) 回帖是一种美德!感谢楼主的无私分享
回复
写的挺好的!只是代码的结构不够清晰,再加些注释,别人会一目了然. 哇~~好方便啊~~
謝謝囉^_^ 谢谢! 不懂lisp,晕哦
;;改多义线高程---------------------无痕 .2004.1
;(chel)
(defun chel ()
(setq elv (getdist "\n新高程:"))
(while (and(princ "\n选则高程多义线(回车退出):")
(setq ss (ssget '((0 . "*polyline")))))
(setq ssv (vla-get-activeselectionset (vla-get-activedocument (vlax-get-acad-object))))
(vlax-for obj ssv
(vlax-put obj 'Elevation elv)
)
)
)
好东西啊 很不错的东西,谢谢了 不错的程序很实用喔 是不错!支持!!