AUTOCAD

AUTOCAD相關大全 (AUTOCAD IN THIS BLOGGER)

必備功能         1.Autocad--工具列不見了,指令找不到,菜單欄消失,都找不到按的地方                             (Missing Menus and ToolBars) 基本功能     設定     ...

搜尋此網誌

顯示具有 [SOFTWARE][Autocad]Autolisp 標籤的文章。 顯示所有文章
顯示具有 [SOFTWARE][Autocad]Autolisp 標籤的文章。 顯示所有文章

2016/9/18

Autocad--將複製的數字加一(AutoLisp下載)-Autolisp Download

分享一個可以將數字複製並+1的autolisp。例如Autocad裡的文字數字是99可以透過copytextplusone指令複製數個+1的文字,故您所複製的文字就會自動變成100.101.102.103...等。

I would like to share a autolisp which can duplicate the text and plus one. For example you've got a 99 in autocad and then you can type copytextplusone  to duplicate the text as much as you want. The text you duplicate would be 100.101.102.103....

先製造一個文字
Make a text first.


在指令例輸入 TEXT -> ENTER


在要放置文字的地方 點選一下 滑鼠左鍵


輸入所要的 文字高度 -> ENTER 或 直接點選一下 滑鼠左鍵


輸入所要的 旋轉角度 -> ENTER 或 直接點選一下 滑鼠左鍵


輸入所要的文字


輸入完成後 在旁邊點一下 滑鼠左鍵(如1.) -> ESC

使用 COPYTEXTPLUSONE(請先載入Lisp)
Type  COPYTEXTPLUSONE(Load Lisp First)


在指令列輸入 COPYTEXTPLUSONE -> ENTER


選擇要複製的文字


點一下 滑鼠左鍵


選擇要複製的基準點後 點一下 滑鼠左鍵


選擇要複製的點後 點一下滑鼠左鍵


依此點選看您要複製幾個


之後 點一下滑鼠右鍵 -> 輸入


完成!!

2015/12/17

Autocad--Autolisp程式教學(一)-Hello World!



相信大家都知道學程式的萬年第一程式就是"Hello World!",所以要帶大家用Autocad內建的編輯器來寫Hello World!

I believe everyone know that the fist program is "Hello world!" in every kind of program. So I would like to create the "Hello world!" with the editor in Autocad.

工具 --> Autolisp --> Visual Lisp 編輯器


                                   
開啟後的畫面

檔案 --> 新檔案



在紅框框內輸入程式


載入作用中的編輯視窗 即可使用程式


紅色框框為載入的畫面


輸入程式的指令


完成

也可以試試將程式中的 alert 改成 prompt,會有不同的結果.。






2015/11/29

Autocad--尺寸標註公釐轉換到英吋並指定區間(AutoLisp下載)-Autolisp Download

分享我的第一個Lisp。將尺寸標註原本的mm轉換至inch並將轉換後落在0.00~0.25的值變成.00;0.25~0.75的值變成0.5;0.75~的值+1。

I would like to share my first Lisp. It can convert the dimension from mm to inch. And the decimal value can be changed, it turns out .00 if the area between .00 to .25;it turns out .50 if the area between .25 to .75;if the area more than 0.75 it comes to be 1.


用記事本將程式打好


存檔成.lsp即可


 載入lisp後(Autocad--載入Autolisp),輸入mmtoinch


選擇要執行的標註


選擇文字的位置



輸入文字尺寸


輸入文字角度


完成



另提供方法給需要修改單位轉換及間距範圍 檔案

2015/11/1

Autocad--載入Autolisp(Load Autolisp)

Autocad 有載入Autolisp的功能,網路上也有很多資源可以下載,所以分享了一個載入Lisp的步驟。以下分為A、B二個方法,A是每次重開Autocad都要重新載入,B是只要載入一次即可。但是Autocad LT版本不支援此功能!

Autocad provides loading Autolisp to expend the command. It also has lots source on website. I am going to share how to load Autolisp. It provides two ways to load lisp. A step is for once, it means you should load lisp at every time you start Autocad. B step is loading one time and using forever. Autocad LT version does not support Autolisp!

A


工具


工具 --> AutoLISP --> 載入應用程式


選取要載入的LISP(點滑鼠二下)


左下方會顯示成功
按下關閉即可
之後只要在指令列輸入該LISP的指令即可使用


以上是A步驟,若是B步驟到在 載入應用程式 後照以下步驟即可

B


內容


加入


選取要載入的LISP(點滑鼠二下)


左下方會顯示成功

之後只要在指令列輸入該LISP的指令即可使用