Running a macro in OEM Solidworks

I have Solidworks standard installed, but currently unlicensed.

We recently purchased a 3rd party CAM software (HSMWorks) and got an OEM version of Solidworks to run it with.

I've been messing around with macros/VB a bit, and have run into this problem - any time the macro calls:

Set swApp = CreateObject("SldWorks.Application")

The system tries to fire up Solidworks proper, not use the current session I'm running as HSMWorks.

Is there a way around this?  I've re-set my default application for parts, assemblies and drawings to HSMWorks, but no luck.

Thanks

SolidworksApi macros