ConfigFile 属性 (ActiveX)
获取用于存储硬件设备驱动程序信息的配置文件的位置。 支持的平台:仅限 Windows 属性值只读:是的 类型:字符串 用于存储硬件设备驱动程序信息的配置文件的位置。 言论此值是只读的,只能使用命令行开关进行更改。有关命令行开关的详细信息,请参见 AutoCAD Online 帮助。/c 例子VBA: 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
可视化 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-11-1 23:55
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.