how to disable the command items in certain type of documents

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

SolidworksApi macros