1、去网上寻找lisp代码 以下是陈老师写的代码,很简洁,有兴趣的朋友可以学习一下。复制到剪贴板 ;; HELIX .LSP 螺旋线生成 (Defun C:Helix () (SetQ p (GetPoint "\n中心点: ") x (Car p) y (Cadr p) z (Caddr p) r (GetDist p "\n半径: ") b (GetDist p "\n总高度: ") a (GetAngle p "\n起始角: ") m (GetInt "\n圈数: ") n (GetInt "\n每圈线段数: ") da (/ (* m 2 Pi) (* m n)) dz (/ b (* m n)) ) (Command "3dpoly") (Repeat (1+ (* m n)) (Command (Polar (List x y z) a r)) (SetQ a (+ a da) z (+ z dz)) ) (Command "") (PrinC) )