Adding Sensor to Part using Macro in VBA possible?

Hello,     

I am currently using the 2019 version of Solidworks and am unable to find a way to use a macro to add a sensor in VBA. Was there a way to do that?

SolidworksSimulation