I have embedded the EModelViewControl on a webpage to view dwg and solidworks files. It works very well when I pass the file name parameter with the mapped drive letter. Does it support UNC path for file name? I need to pass the file name like \\server\share\folder\filename.sldprt instead of Y:\folder\filename.sldprt. For some reason that is not working. Appreciated any help.
Thanks
Shaji
Hi Shaji,
eDrawings supports opening of UNC filenames via the OpenDoc API as long as the hosting application (iexplore.exe in your case) allows access to the file directly via a native Win32 handle.
When eDrawings is running inside a browser, depending on which security zone the browser is rendering your HTML under (My Computer, Local Intranet, Trusted Sites, Internet, Restricted) your browser sandbox may not grant access to the UNC filepath to the eDrawings ActiveX contol.
I suggest you try : either changing the security settings of your browser to allow access to the \\server or map the \\server\path to a virtual folder under your webserver (IIS, Apache, etc.) and tell the eDrawings API to access the file using the http:// notation rather than UNC.
The latter will be somewhat slower than the first option.
Hope this helps,
Regards,
Vajrang.