Getting started
Installation
If you have pip or easy_install, you can just:
pip install --upgrade pyautocad
or:
easy_install -U pyautocad
Also, you can download Windows installer from PyPI pyautocad page.
Requirements
-
Note
If you are using pip or easy_install, then it will be installed automatically. Otherwise you should install comtypes package manually.
Retrieving AutoCAD ActiveX documentation
A copy of the AutoCAD ActiveX guide and reference can be found in the help
directory of your AutoCAD install.
acad_aag.chm
- ActiveX and VBA Developer’s Guideacadauto.chm
- ActiveX and VBA Reference
Reference can also be found in C:\Program Files\Common Files\Autodesk Shared\acadauto.chm
What’s next?
Read the Usage section, or look for real applications in examples folder of source distribution.
Note
Applications in examples are Russian engineering specific, but anyway I hope you’ll find something interesting in that code.
For more info on features see API documentation and sources
---------------------------------------------------------------------------------------------------------------------------------------------------------------------
譯文如下:
開始
安裝
如果你有pip或easy_install,你可以:
pyautocad pip安裝,升級
或者:
easy_install - u pyautocad
另外,您可以從PyPI pyautocad頁面下載Windows安裝程序。
需求
comtypes
請注意
如果您正在使用pip或easy_install,那麼它將被自動安裝。否則,您應該手動安裝comtypes包。
可選:xlrd和tablib用於處理表
檢索AutoCAD ActiveX文檔
AutoCAD ActiveX指南和參考的副本可以在AutoCAD安裝的幫助目錄中找到。
acad_aag。chm - ActiveX和VBA開發者指南
acadauto。chm - ActiveX和VBA引用
引用也可以發現在\ Autodesk共享\ acadauto.chm C:\Program Files\Common文件
接下來是什麼?
閱讀用法部分,或者在源發行版的example文件夾中查找真正的應用程序。
請注意
示例中的應用程序是特定於俄羅斯工程的,但無論如何,我希望您能從中發現一些有趣的東西。
有關特性的更多信息,請參閱API文檔和源代碼