Cad_Cae 板


LINE

我幫你測試的結果, 是 完全沒有問題。 我想,是你在 輸入的時候,直接按 [Enter] 的關係。 請耐心的輸入 每一個應該輸入的數字, 如下: 請使用 外部信件和我連絡, 我會 一行,一行的教你, 一個字,一個字的 慢慢教你 e-mail: [email protected] C:LSP_32 指令: lsp_32 漸開線中心點:0,0 小圓半徑<5>:5 水平偏移距離<5>:6 垂直偏移距離<5>:7 1/4圓弧漸開數量<9>:11 指令: z ZOOM 指定視窗角點,輸入比例係數 (nX 或 nXP),或 [全部(A)/中心點(C)/動態(D)/實際範圍(E)/前次(P)/比例(S)/視窗(W)/物件(O)] <即時 >: e 指令: z ZOOM 指定視窗角點,輸入比例係數 (nX 或 nXP),或 [全部(A)/中心點(C)/動態(D)/實際範圍(E)/前次(P)/比例(S)/視窗(W)/物件(O)] <即時 >: 0.8x ※ 引述《note100 (XD)》之銘言: : 因為最近需要畫螺旋圖 : 直接套用了書上以及版上的LISP語法 : 但是,使用之後,都各自出現問題 : 不知道是版本問題(我使用autoCAD 2011)? : 還是語法錯誤? : 版上的語法: : 最後出現 : ; 錯誤: 損壞的引數類型: numberp: nil : _$ ); end of c:spiral : (princ) : ; end of file : ; 錯誤: 其他的輸入右 paren : _$ : 我參考書本上的 : (defun c:lsp_32() : (setvar "cmdecho" 0) : (setq os (getvar "osmode")) : (setq p1 (getpoint "漸開線中心點:")) : (setq rr (getdist p1 "\n小圓半徑<5>:"))(if (null rr)(setq rr 5)) : (setq ofs_h (getreal "\n水平偏移距離<5>:"))(if (null ofs_h)(setq ofs_h 5)) : (setq ofs_v (getreal "\n垂直偏移距離<5>:"))(if (null ofs_v)(setq ofs_v 5)) : (setq NN (getint "\n1/4圓弧漸開數量<9>:"))(if (null nn)(setq nn 9)) : ;*************************************************************************** : (setq p2 (polar p1 0 ofs_h) : p3 (polar p2 (* pi 1.5) ofs_v) : p4 (polar p3 pi ofs_h) : ) : (setq pp_list(list p2 p3 p4 p1));將4點成串列 : (command "circle" p1 rr);畫第一個圓 : (setq new_rr rr rr_list '()) : (setq i 0 new_ang pi) : (setq cc_list'("1" "2" "3" "4" "5" "6" "7")) : (repeat nn : (if (= (rem i 2) 0) : (setq add_rr ofs_h) : (setq add_rr ofs_v) : ) : (setq arc_cen(nth (rem i 4) pp_list)) : (setq new_rr (+ new_rr add_rr)) : (setq arc_ps (polar arc_cen new_ang new_rr)) : (setvar "cecolor" (nth (rem i 7) cc_list)) : (command "arc" arc_ps "c" arc_cen "a" -90) : (setq rr_list (cons new_rr rr_list)) : (setq i (1+ i) new_ang (- new_ang (* pi 0.5))) : ) : (setq arc_pe (polar arc_cen new_ang (nth 4 rr_list))) : (command "arc" "" arc_pe) : (setvar "cecolor" "bylayer") : (setvar "osmode" os) : (prin1) : ) : 還是有誤 不知道該如何執行 謝謝! -- e-mail: [email protected] 我的課程介紹網頁: http://www.csie.ntu.edu.tw/train/teacher_display.php?num=18 AutoCAD 台灣地區菁英講師獲選 --



※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 42.73.95.85







like.gif 您可能會有興趣的文章
icon.png[問題/行為] 貓晚上進房間會不會有憋尿問題
icon.pngRe: [閒聊] 選了錯誤的女孩成為魔法少女 XDDDDDDDDDD
icon.png[正妹] 瑞典 一張
icon.png[心得] EMS高領長版毛衣.墨小樓MC1002
icon.png[分享] 丹龍隔熱紙GE55+33+22
icon.png[問題] 清洗洗衣機
icon.png[尋物] 窗台下的空間
icon.png[閒聊] 双極の女神1 木魔爵
icon.png[售車] 新竹 1997 march 1297cc 白色 四門
icon.png[討論] 能從照片感受到攝影者心情嗎
icon.png[狂賀] 賀賀賀賀 賀!島村卯月!總選舉NO.1
icon.png[難過] 羨慕白皮膚的女生
icon.png閱讀文章
icon.png[黑特]
icon.png[問題] SBK S1安裝於安全帽位置
icon.png[分享] 舊woo100絕版開箱!!
icon.pngRe: [無言] 關於小包衛生紙
icon.png[開箱] E5-2683V3 RX480Strix 快睿C1 簡單測試
icon.png[心得] 蒼の海賊龍 地獄 執行者16PT
icon.png[售車] 1999年Virage iO 1.8EXi
icon.png[心得] 挑戰33 LV10 獅子座pt solo
icon.png[閒聊] 手把手教你不被桶之新手主購教學
icon.png[分享] Civic Type R 量產版官方照無預警流出
icon.png[售車] Golf 4 2.0 銀色 自排
icon.png[出售] Graco提籃汽座(有底座)2000元誠可議
icon.png[問題] 請問補牙材質掉了還能再補嗎?(台中半年內
icon.png[問題] 44th 單曲 生寫竟然都給重複的啊啊!
icon.png[心得] 華南紅卡/icash 核卡
icon.png[問題] 拔牙矯正這樣正常嗎
icon.png[贈送] 老莫高業 初業 102年版
icon.png[情報] 三大行動支付 本季掀戰火
icon.png[寶寶] 博客來Amos水蠟筆5/1特價五折
icon.pngRe: [心得] 新鮮人一些面試分享
icon.png[心得] 蒼の海賊龍 地獄 麒麟25PT
icon.pngRe: [閒聊] (君の名は。雷慎入) 君名二創漫畫翻譯
icon.pngRe: [閒聊] OGN中場影片:失蹤人口局 (英文字幕)
icon.png[問題] 台灣大哥大4G訊號差
icon.png[出售] [全國]全新千尋侘草LED燈, 水草

請輸入看板名稱,例如:iOS站內搜尋

TOP