pycad
风雨飘摇中的石头
这个作者很懒,什么都没留下…
展开
-
pythoc_autocad_标注_all_圆_半径直径
pythoc_autoca_标注_all_圆_半径直径原创 2022-03-26 10:06:38 · 397 阅读 · 0 评论 -
pythoc_autocad_标注_all_横线_竖线
pythoc_autoca_标注_all_横线_竖线原创 2022-03-26 09:55:14 · 322 阅读 · 0 评论 -
python_autuocad_填充函数
python_autocad_填充函数原创 2022-03-26 09:06:28 · 1226 阅读 · 0 评论 -
pythonc_pyautuocad
# 导入模块from pyautocad import Autocad, APoint#创建cad实例acad = Autocad(create_if_not_exists=True)# 点p1 = APoint(10, 500)p2 = APoint(10, 200)acad.model.AddLine(p1, p2)# 画出点p1 = APoint(10, 500)p2 = APoint(300, 200)acad.model.AddLine(p1, p2)# 画出点acad.p.原创 2022-03-07 15:32:56 · 371 阅读 · 0 评论 -
Pyinstaller_打包 failed to execute script
Pyinstaller --distpath=c:\temp\dist xxx.spec --cleanpyinstaller -F -w QtUi.pyD:\sanweia\chengxu\dist\dist\QtUi在该目录下的exe才是最终运行原创 2021-11-18 16:50:27 · 895 阅读 · 0 评论 -
Solving environment: failed
Solving environment: failedPS D:\Git Demo\pythonProject> pyinstaller -F main.pyThe 'typing' package is an obsolete backport of a standard library package and is incompatible with PyInstaller. Please `conda remove typing` then try again.PS D:\Git De原创 2022-03-23 16:18:19 · 726 阅读 · 1 评论 -
pyautocad_hatch
#!/usr/bin/env python# -*- coding: utf-8 -*-import pythoncomimport win32com.clientwincad = win32com.client.Dispatch("AutoCAD.Application.23")doc = wincad.ActiveDocumentdoc.Utility.Prompt("Hello! AutoCAD from pywin32.")msp = doc.ModelSpaceprint(doc.原创 2022-03-17 16:27:11 · 1034 阅读 · 0 评论 -
pyautocad错误-----COMError: (-2147352567, ‘发生意外。‘, (‘加载应用程序时出现问题‘, ‘AutoCAD‘, ‘
circle = acad.model.AddCircle(APoint(75, 50), 25) color = acad.doc.Application.GetInterfaceObject("AutoCAD.AcCmColor.22") # CAD2015:AcCmColor=20 CAD2016/17:AcCmColor=21 # CAD2018:AcCmColor=22 CAD2019:AcCmColor=23 color.SetRGB(255, 0, 0) # circ..原创 2022-03-12 14:42:13 · 1025 阅读 · 3 评论 -
pyAutocad
from pyautocad import Autocad, APointimport mathimport numpy as np# 创建连接 autoCAD CAD运行,则连接,并始终与活跃的CAD窗口产生连接,没有则启动新CAD程序acad = Autocad(create_if_not_exists=True)acad.prompt("Hello, Autocad from Python\n")print(acad.doc.Name) # 获取CAD文件名"""-------.原创 2022-03-09 08:45:55 · 1715 阅读 · 0 评论