swPackAndGo.GetDocumentNamesCount() is returning zero.

Hi All,

<p>int namesCount = swPackAndGo.GetDocumentNamesCount();</p>

I am using above code in one of our project where I want to do pack and go. Sometimes the swPackAndGo.GetDocumentNamesCount() is returning zero, though there are documents. Any idea why it is behaving like that ?

Glad if somebody helps on this.

SolidworksApi macros