Apprentice, openWithOptions method use

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi ! I'm a new user of Inventor API and have some problems in finding answers in the API documentation which seems very poor...
So, i'm trying to open a large number of Inventor files with an ApprenticeServerComponent object. The problem is that some of these files have wrong references (which i'll fix) and when i call appServ.Open(filename), Apprentice make a scan of the missing references through dozen of thousands files, which is very slow and uncomfortable. So i'd like to open the files with the "SkippAllUnresolvedFiles" option in appServ.OpenWithOptions(). But this failed cause of wrong argument. I cant find any example or reference on the use of ApprenticeServerComponent .OpenWithOptions() function. Nothing about the possible options. The one i tried "SkipAllUnresolvedFiles" have been taken from the "Documents.OpenWithOptions Method" API reference, but doesnt work...
Here is my (non-working) code (of course, filename is a string containing the adress of an existing file on my hd) :
NameValueMap openFilesOptions; openFilesOptions = this.appServ.TransientObjects.CreateNameValueMap(); openFilesOptions.Add("SkipAllUnresolvedFiles", true); try { appDoc = appServ.OpenWithOptions(filename, openFilesOptions); appDoc.Close(); } catch (Exception e) { MessageBox.Show("error : " + e.ToString()); appDoc = null; }
Thanks in advance