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文档和源代码