How to determine if selected part in drawing is a toolbox part or not in API Macro

How do you determine if selected part in drawing is a toolbox part or not in API Macro?  Does swToolBoxPartType_e work the same in a drawing?  I need my macro to skip all toolbox parts but skip normal parts/assemblies.

SolidworksApi macros