指定活动文档(图形文件)。 支持的平台:仅窗口 言论没有额外的评论。 例子工 务 局: Sub Example_ActiveDocument() Dim activeDoc As AcadDocument ' Returns current document in AutoCAD Set activeDoc = ThisDrawing.Application.ActiveDocument MsgBox "The active document is: " & activeDoc.name, vbInformation, "ActiveDocument Example" End Sub Visual LISP: (vl-load-com) (defun c:Example_ActiveDocument() ;; Returns current document in AutoCAD (setq acadObj (vlax-get-acad-object)) (setq activeDoc (vla-get-ActiveDocument acadObj)) (alert (strcat "The active document is: " (vla-get-Name activeDoc))) ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:28
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.