Showing results for 
Search instead for 
Did you mean: 
Showing results for 
Search instead for 
Did you mean: 

How to retrieve remote ProE Objects using UNC-Names


How to retrieve remote ProE Objects using UNC-Names


Migrating toolkit appls from the Unix-world to Windows i had to open
remote ProE objects via ProMdlRetrieve().

The technique is:
1) Get the current ProeDirectory
2) Change to the directory where the model is located
3) Invoke ProMdlRetrieve()
4) Change back to the directory saved at 1)

In the Unix-World in Step 2) I use a pathname to the mounted server, where
remote model is located.
On Windows i had to use a UNC-name like \\cax\proe\data\more_sub_dirs
<file: \\cax\proe\data\more_sub_dirs=">
ProDirectroyChange() does not accept an UNC name and returns -22

Its important for hundreds of ProE-PCs to use the UNC-name rather than the
Drive:pathname syntax.

Thanks in advance....

Mit freundlichen Grüßen / Kind regards

Norbert Schultheis

85045 Ingolstadt
Tel. +49 (0)8 41 89-9 03 89
Fax. +49 (0)8 41 89-3 81 15 <http:"/>

This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

The Windows version of ProEngineer cannot change to a directory that is not
assigned a drive letter ie a UNC path. You might want to try ProMdlLoad. If
that doesn't work then you will have to programmatically map the UNC path to a
drive letter and change to that directory. If you need help mapping a drive I
can help.

Patrick Williams
Applications Engineer
Steelcase Inc.
Attention: Creo 7.0 Customers
Please consider upgrading
End of Life announcement here.

NEW Creo+ Topics:
PTC Control Center
Creo+ Portal
Real-time Collaboration