8 Replies Latest reply on Mar 10, 2016 11:00 AM by Chris Champions

    how to disable the command items in certain type of documents

    Chris Champions

      I only want to show the command items in the toolbar and menu in the drawing file, so I set

       

      Dim docTypes() As Integer = {swDocumentTypes_e.swDocDRAWING}

       

      it works for the toolbar; however, it's still shown on the menu pull down menu in part and assembly files, and worse, it's also shown in the menu pull down menu with no document open