MenuFileName Property (ActiveX)

Gets the customization file name where the menu group is located.

Supported platforms: Windows only

Signature

VBA:

object.MenuFileName
object

Type: MenuGroup

The object this property applies to.

Property Value

Read-only: Yes

Type: String

A user-specified variable declared as a string type.

Remarks

No additional remarks.

Examples

VBA:

Sub Example_MenuFileName()
    ' This example finds the file name for all loaded menu groups.
    
    Dim fileNames As String
    Dim menuGroup As acadMenuGroup
    
    fileNames = ""
    For Each menuGroup In ThisDrawing.Application.MenuGroups
        fileNames = fileNames & menuGroup.name & "  " & menuGroup.MenuFileName & vbCrLf
    Next menuGroup
    MsgBox fileNames
End Sub

Visual LISP:

(vl-load-com)
(defun c:Example_MenuFileName()
    ;; This example finds the file name for all loaded menu groups.
    (setq acadObj (vlax-get-acad-object))
  
    (setq fileNames "")
    (vlax-for mnuGroup (vla-get-MenuGroups acadObj)
        (setq fileNames (strcat fileNames (vla-get-Name mnuGroup) "  " (vla-get-MenuFileName mnuGroup) "\n"))
    )
    (alert fileNames)
)