Document Type

How to regconize if the active document is assembly or partor drawing?
Thx, ChrisSolidworksApi macros