I wish that SW used them UNC path in the reference files
I have a home-made PDM system to
I have an DLL file that will take an mapped Drive an change it to the UNC Path
I can send this to you would you want the Source(Visual Studio and I think it in 2008 .net 3.5) or the DLL?
what i have done is when a file is "Vaulted" they use an program that will fix the references to the UNC path that way it fixed in solidworks
I use the Solidworks DM API and this DLL to do it we have not had issues that i know for awhile now.
The source file for your dll would be great, maybe our IT-department can adapt it to our need. My mail adress is peremovethis@andthis roblon.com.
here is the VB Code
Public Class UNCPath
Public Declare Function WNetGetConnection Lib "mpr.dll" Alias _
"WNetGetConnectionA" (ByVal lpszLocalName As String, _
ByVal lpszRemoteName As String, ByRef cbRemoteName As Integer) As Integer
''' Convert an mapped Path to an UNC Path
''' <param name="Path">Mapped Network Loction</param>
''' <returns>UNC Network Location</returns>
Public Shared Function GetNetworkPath(ByVal Path As String) As String
Dim driveletter As String = Path.Substring(0, 1)
Dim out As String = New String("", 260)
Dim len As Integer = 260
Dim networkpath As String
Dim newfilepath As String = ""
networkpath = WNetGetConnection(driveletter + ":", out, len)
Dim ii As Integer
While Not (out(ii) = Nothing)
newfilepath = newfilepath + out(ii)
ii = ii + 1
If (ii > 0) Then
Return newfilepath + Path.Substring(2)
Thank you very much.
let us know how it gose