mirror of
https://github.com/luzhisheng/js_reverse.git
synced 2025-04-12 03:27:07 +08:00
10 lines
189 B
Python
10 lines
189 B
Python
import win32com.client as win32
|
|
|
|
# 创建AutoCAD应用程序的COM对象
|
|
acad = win32.Dispatch("AutoCAD.Application")
|
|
|
|
# 获取当前活动文档
|
|
doc = acad.ActiveDocument
|
|
print(doc.name)
|
|
|