Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I was curious if anyone has run into the need to grey out the "Save Copy As" functionality under File?
I tried to run the same code that I'm using to disable other commands but it doesn't seem to disable the command. I'm wondering if I have to do something different since it's an embedded command? Any help would be appreciated.
Public Sub DisableAssemblySaveCopyAsCmd() '(oAssyDoc As AssemblyDocument)
Dim oDrawDoc As DrawingDocument: Set oDrawDoc = ThisApplication.ActiveDocument
'***********************************************************************************************************************************
' DISABLES THE MIRROR COMMAND WITHIN A SPECIFIED ASSEMBLY DOCUMENT
'***********************************************************************************************************************************
Dim oCtrlDef As ControlDefinition
If oDrawDoc Is Nothing Then Exit Sub
For Each oCtrlDef In ThisApplication.CommandManager.ControlDefinitions
If oCtrlDef.DisplayName = "&Save Copy As..." Then
oCtrlDef.Enabled = False
'Call oDrawDoc.DisabledCommandList.Add(oCtrlDef)
End If
Next
End Sub
Tiffany Hayden
Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
Solved! Go to Solution.