1、打開CAD后,找工具/AUTOLISP/VISUAL LISP編輯器,打開.點(diǎn)新建文件
2、然后輸入
(defun c:luoxuan
(/)
(setq b1 (getpoint "請指定螺旋線基點(diǎn): "))
(setq r (getreal "請輸入螺紋平均半徑: "))
(setq disp (getreal "請輸入螺紋節(jié)距: "))
(setq n (getint "請輸入每圈細(xì)化段數(shù): "))
(setq delta (/ (* 2.0 pi) n))
(setq j (/ disp n))
(setq bb (caddr b1))
(setq ang 0)
(setq jj 0)
(Command "UCS" "o" b1)
(Command "3dpoly" (list r 0 0))
(repeat n
(setq jj(+ jj 1)
(setq ang(+ delta ang))
(setq pt2(list (* r (cos ang)) (* r (sin ang)) (+ 0 (* j jj))))
(Command pt2)
)
(Command "")
)
存盤為luoxuan.lsp,關(guān)閉編輯器
3、要用時,點(diǎn)工具/AUTOLISP/加載,找到luoxuan.lsp文件將其加載,關(guān)閉對話框.在命令行輸入luoxuan回車,就開始了螺旋線的繪制.
相關(guān)文章
- 2021-08-30電影風(fēng)暴2:Maya影像實拍與三維合成攻略PDF下載
- 2021-08-23精通AutoCAD三維設(shè)計與開發(fā)PDF下載
- 2021-07-20AutoCAD 繪制三維實體裝配圖 [胡起學(xué),胡進(jìn),胡怡 編著] 2
- 2021-06-17AutoCAD二維、三維教程(中文2016版)PDF下載
- 2021-06-09AutoCAD繪圖與Solid Edge三維造型PDF下載
- 2021-02-05AutoCAD 2012建筑繪圖及三維建模 [高麗燕 主編] 2012
- 2020-12-28AutoCAD 2008二維與三維設(shè)計概述(英文版)PDF下載
- 2020-12-24AutoCAD 2002三維造型技術(shù)PDF下載
- 2020-12-22AutoCAD 2000三維造型PDF下載
- 2016-02-22AutoCAD2004建筑和室內(nèi)三維建模設(shè)計技巧與范例