看板 Cad_Cae 關於我們 聯絡資訊
哭!!!還是是不出來 我先把我的步驟打出來 一開始工具===>autolisp=====>visual lisp編輯器 然後找先前大大有po的程式碼貼上去 ; for theta=0 to 360 step dt do (setq no 100) (setq theta 0.0 dt (/ 360.0 no)) (setq dt (+ dt (/ dt 10.0))) (setvar "cmdEcho" 0) (command "pline") (while (<= theta 360.0) (setq t1 (* (/ theta 180.0) pi)) (setq y1 (sin t1)) (command (list t1 y1)) (setq theta (+ theta dt)) ); end of while() (command "") (princ) 然後儲存在support裡面 檔名為1234 然後工具=====>autolisp====>載入應用程式====>選取1234.lsp案載入 再把檔案拉到啟動套件 然後到指令區打1234 結果出現不明的指令「1234」。請按 F1 取得說明。 請問各位大大~~哪裡出問題!?!?!?!?! 我是用Civil 3D - Traditional Chinese 作為 AutoCAD 2008這個版本(從學校抓的) -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 140.116.155.63 ※ 編輯: omashimaroo 來自: 140.116.155.63 (02/11 17:39)
Qupi:在程式碼的最上面加上 (defun c:1234 ( / ) 02/11 18:29
Qupi:然後在程式碼的最下面加上 ) 02/11 18:29
omashimaroo:喔喔喔~~~乾蝦~~真的很乾蝦!!!!! 02/11 18:49
camelot1123:雖然很不禮貌 可是我很好奇初學者怎麼會直接碰lisp?? 02/11 18:57
sam37520:lisp初學者? 02/11 23:05
omashimaroo:嗯~~~LISP初學者!!!!! 02/11 23:36
※ 編輯: omashimaroo 來自: 140.116.155.63 (02/13 17:46)