How to activate the convert entities command by using Api

I want to activate the convert entities command in the drawing view. by using macro so please guide me the stapes.

SolidworksDrawings And Detailing