获取用于存储硬件设备驱动程序信息的配置文件的位置。 支持的平台:仅窗口 属性值只读:是的 类型:字符串 用于存储硬件设备驱动程序信息的配置文件的位置。 言论此值是只读的,只能使用命令行开关进行更改。有关命令行开关的详细信息,请参阅 AutoCAD 联机帮助。/c 例子工 务 局: Sub Example_ConfigFile() ' This example returns the current setting of ConfigFile. Dim preferences As AcadPreferences Dim currConfigFile As String Set preferences = ThisDrawing.Application.preferences ' Retrieve the current ConfigFile value currConfigFile = preferences.Files.ConfigFile If currConfigFile = "" Then MsgBox "ConfigFile is not currently set.", vbInformation, "ConfigFile Example" Else MsgBox "The current value for ConfigFile is " & currConfigFile, vbInformation, "ConfigFile Example" End If End Sub Visual LISP: (vl-load-com) (defun c:Example_ConfigFile() ;; This example returns the current setting of ConfigFile. (setq acadObj (vlax-get-acad-object)) (setq preferences (vla-get-Preferences acadObj)) ;; Retrieve the current ConfigFile value (setq currConfigFile (vla-get-ConfigFile (vla-get-Files preferences))) (if (= currConfigFile "") (alert "ConfigFile is not currently set.") (alert (strcat "The current value for ConfigFile is " currConfigFile)) ) ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:03
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.