DraftSight macro not executing

Hello,

I am having trouble with a macro I recorded in DraftSight, I am using Visual Studio Professional 2015 and the macro is

written in VB. When I run the code it will open the correct drawing in DraftSight. The next step is opening up the Layer Manager

and "turn on" a single layer, but this code never executes and the program still exits with code 0. Any advice?

*I have attached a few images of the code (See Below)*

- I have also tried running it in Visual Studio 2008 and still having the same issue.

Thank you!

SolidworksApi macros