Export .DWG using macro with current layer visibility

Hello,

Since I have been searching for an answer and I can't seem to find it I will post my question here.

I have a few macro's from 3DContentCentral and I figured out how to change these from making .pdf files to .dwg files. The thing however is that when I use "Save as" for the creation of my .dwg files it uses my current layer visibility and creates a .dwg that is identical to my .slddrw and .pdf (made using the macro).

When I change the extension and use this macro to produce a .dwg file instead of a .pdf file it turns on all the layers visibility and inserts several tables and text blocks that I had hidden because they are not to be shown.

Is there a command that I can use the indicate that I would like the layer visibility status unchanged when exporting a .dwg?

Thanks in advance!

SolidworksApi macros