start for pyautocad

本文介绍了PyAutoCAD的安装方法,包括通过pip或easy_install安装,并提供了Windows安装程序的下载链接。文中还提到了PyAutoCAD的依赖库comtypes会随安装自动配置,以及可选的xlrd和tablib库用于表格操作。此外,文章还指导读者如何获取AutoCAD ActiveX文档,并推荐了进一步学习的资源。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

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

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 Guide
  • acadauto.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文档和源代码

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值