IModelDoc2.GetPathName() Call for network Parts returns empty string

Hello All,

I have searched the forum for this and found out how to use this method but I have been using this method for my application for a while.Recently I found that we are getting empty string for the part location from this method specially part located on network server.

The  logic for my program in steps:

I am using this method to locate the part on the server and then using that to import soldiworks part into my system. In short once I get the fullpath of the part my another program takes care of the rest.

C# code................

string filename  = this.modelDoc.GetPathName();

This filname is passed to further function for the process.

Recently I found out that some of my customer reported that they get error while using my system specially for the parts kept on the netowork server.If they copy these parts on local machine it works fine. I am not able to pin point the problem remotely also my error handling shows that getpathName is retruning empty string.

Can anyone comment on this? Is there any alternative method for network parts?

Thanks in advance.

Shekhar

SolidworksApi macros