MenuFile 属性 (ActiveX)
指定任务的 AutoCAD 自定义文件的位置。 支持的平台:仅限 Windows 属性值只读:不 类型:字符串 AutoCAD 自定义文件的位置。 言论此属性包含自定义 (CUIx) 文件的驱动器、路径和文件名。 例子VBA: Sub Example_MenuFile() ' This example returns the current setting of ' MenuFile. Dim preferences As AcadPreferences Dim currMenuFile As String Set preferences = ThisDrawing.Application.preferences ' Retrieve the current MenuFile value currMenuFile = preferences.Files.MenuFile MsgBox "The current value for MenuFile is " & currMenuFile, vbInformation, "MenuFile Example" End Sub 可视化 LISP: (vl-load-com) (defun c:Example_MenuFile() ;; This example returns the current setting of ;; MenuFile. (setq acadObj (vlax-get-acad-object)) (setq preferences (vla-get-Preferences acadObj)) ;; Retrieve the current MenuFile value (setq currMenuFile (vla-get-MenuFile (vla-get-Files preferences))) (alert (strcat "The current value for MenuFile is " currMenuFile)) ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2024-12-15 22:04
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.