ExportProfile 方法 (ActiveX)
导出活动配置文件,以便与其他用户共享。 支持的平台:仅限 AutoCAD for Windows;AutoCAD LT for Windows 不支持 签名VBA: object.ExportProfile Profile, RegFile
返回值 (RetVal)无返回值。 言论没有其他评论。 例子VBA: Sub Example_ExportProfile() ' This example exports the active profile to a new name. Dim preferences As AcadPreferences Dim currActiveProfile As String Set preferences = ThisDrawing.Application.preferences ' Retrieve the current ActiveProfile value currActiveProfile = preferences.Profiles.ActiveProfile MsgBox "The current ActiveProfile is: " & preferences.Profiles.ActiveProfile, , "ExportProfile Example" ' Export the active profile preferences.Profiles.ExportProfile currActiveProfile, "TestProfile.arg" MsgBox "The ActiveProfile has been exported to: TestProfile.arg", , "ExportProfile Example" End Sub 可视化 LISP: (vl-load-com) (defun c:Example_ExportProfile() ;; This example exports the active profile to a new name. (setq acadObj (vlax-get-acad-object)) (setq preferences (vla-get-Preferences acadObj)) ;; Retrieve the current ActiveProfile value (setq currActiveProfile (vla-get-ActiveProfile (vla-get-Profiles preferences))) (alert (strcat "The current ActiveProfile is: " currActiveProfile)) ;; Export the active profile (vla-ExportProfile (vla-get-Profiles preferences) currActiveProfile "c:\\Temp\\TestProfile.arg") (alert "The ActiveProfile has been exported to: TestProfile.arg") ) |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2024-12-15 12:49
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.