Using DraftSight API to export a DWG to PDF

The SolidWorks help link  2019 SOLIDWORKS API Help - Save Current View to PDF Example (C#)   does not work as expected.  No errors it just never exports to PDF.   

Has anyone else used this code successfully?   What I am trying to do is export the current Active sheet, not all of them.   Thank in advance for any assistance provided.

SolidworksApi/macros