Specifies the location of the AutoCAD customization file for the session.
Supported platforms: Windows only
Read-only: No
Type: String
The location of the AutoCAD customization file.
This property contains the drive, path, and file name for a customization (CUIx) file.
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
Visual 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)) )