将多个点连接为曲线
本帖最后由 荒野孤行 于 2015-12-28 23:41 编辑;;;连点成线
(defun c:t1 (/ ptlist)
(setvar "blipmode" 0)
(setvar "pickfirst" 1)
(setvar "expert" 0)
(setvar "GRIPOBJLIMIT" 50)
(setvar "osmode" 15359)
(setvar "cmdecho" 0)
(princ "\n★功能:将邻近的点连接为一条曲线。\n")
(vl-load-com)
(princ "\n请选择要连接的点对象:\n")
(command "undo" "be")
(setq ss (ssget '((0 . "POINT"))))
(if (null ss)
(progn (princ "\n提示:未选取点对象!") (exit))
)
(initget "P S")
(if (not
(setq kw
(getkword
"曲线样式:[多段线(P)/样条曲线(S)]<S>"
)
)
)
(setq kw "S")
)
**** Hidden Message *****
(progn
(command "spline")
(foreach pt ptlist (command pt))
(command "" "" "")
)
)
(setvar "osmode" 15359)
(command "undo" "e")
(princ)
)
取點成線,取點成曲線,在路徑規劃,地圖分析有妙用! 收藏,将多个点连接为曲线 多谢楼主!学习学习 路过学习下喽 挺好的,收一下 学习学习!多谢楼主!! 看看思路,学习一下! 谢谢,下来看看学习下 好程序,值得学习!