<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Apprentice, openWithOptions method use in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/3805585#M142388</link>
    <description>&lt;P&gt;Hi Philippe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mean these exceptions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Georg&lt;/P&gt;</description>
    <pubDate>Fri, 15 Mar 2013 08:06:44 GMT</pubDate>
    <dc:creator>GeorgK</dc:creator>
    <dc:date>2013-03-15T08:06:44Z</dc:date>
    <item>
      <title>Apprentice, openWithOptions method use</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/2793364#M142383</link>
      <description>&lt;P&gt;Hi ! I'm a new user of Inventor API and have some problems in finding answers in the API documentation which seems very poor...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, i'm trying to open a large number of Inventor files with an&amp;nbsp;ApprenticeServerComponent object. The problem is that some of these files have wrong references (which i'll fix) and when i call&amp;nbsp;&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;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 &lt;/SPAN&gt;ApprenticeServerComponent .OpenWithOptions() function. Nothing about the possible options. The one i tried "&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;SkipAllUnresolvedFiles&lt;/SPAN&gt;" have been taken from the "Documents.OpenWithOptions Method" API reference, but doesnt work...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my (non-working) code (of course, filename is a string containing the adress of an existing file on my hd) :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;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;
}&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Oct 2010 14:51:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/2793364#M142383</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-10-11T14:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Apprentice, openWithOptions method use</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/3080542#M142384</link>
      <description>&lt;P&gt;Hi I would like to know if you came right with the OpenwithOptions method. I have a simalar issue. My application is a batch printer of idw's but it bombes out giving me an HRESULT.... error. I have noticed that this only happens if there is an idw with unresolved references. I also tried your "&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;SkipAllUnresolvedFiles&lt;/SPAN&gt;"﻿ sugestion but with no joy.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pieter&lt;/P&gt;</description>
      <pubDate>Mon, 04 Jul 2011 21:56:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/3080542#M142384</guid>
      <dc:creator>Raider_71</dc:creator>
      <dc:date>2011-07-04T21:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Apprentice, openWithOptions method use</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/3805535#M142385</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Apprentice and Inventor share pretty much the same API, so in case you look for details about an Apprentice method, it always worth taking a look at the corresponding Inventor API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately in case of "OpenWithOptions" and the "&lt;SPAN style="font-family: monospace; white-space: pre-wrap;"&gt;SkipAllUnresolvedFiles&lt;/SPAN&gt;" options, Apprentice doesn't support it yet. We have logged a wish about that to our engineering team but it has not been implemented yet. I guess there is no workaround while using Apprentice at the moment.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the bad news.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Philippe.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 05:35:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/3805535#M142385</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2013-03-15T05:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: Apprentice, openWithOptions method use</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/3805562#M142386</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there a full list of supported functions?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Georg&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 07:24:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/3805562#M142386</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2013-03-15T07:24:26Z</dc:date>
    </item>
    <item>
      <title>Re: Apprentice, openWithOptions method use</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/3805578#M142387</link>
      <description>&lt;P&gt;Hi Georg,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you mean a list of supported methods by Apprentice? The Inventor SDK API Help files contains the methods supported by Apprentice, but unfortunately there are sometimes a few exceptions...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Philippe.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 08:00:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/3805578#M142387</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2013-03-15T08:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Apprentice, openWithOptions method use</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/3805585#M142388</link>
      <description>&lt;P&gt;Hi Philippe,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I mean these exceptions &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Georg&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 08:06:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/3805585#M142388</guid>
      <dc:creator>GeorgK</dc:creator>
      <dc:date>2013-03-15T08:06:44Z</dc:date>
    </item>
    <item>
      <title>Re: Apprentice, openWithOptions method use</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/3805587#M142389</link>
      <description>&lt;P&gt;No we don't provide this kind of information publicly, this is a case by case.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry about that.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Philippe.&lt;/P&gt;</description>
      <pubDate>Fri, 15 Mar 2013 08:14:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/3805587#M142389</guid>
      <dc:creator>philippe.leefsma</dc:creator>
      <dc:date>2013-03-15T08:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Apprentice, openWithOptions method use</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/7203476#M142390</link>
      <description>&lt;P&gt;Can someone confirm that this is still an issue in apprentice?&lt;BR /&gt;&lt;BR /&gt;I'm running into this as I made a vbscript to act as a "quick missing reference" checker; however it's not much quicker because it's making apprentice still try to resolve the file every time before opening.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm assuming this Option missing means there's no way to open it quickly?&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;(I'm running under the assumption that since FileScriptingObject can check if a File exists at it's location, inventor should be able to do something similar and tell you which files references are broken for the same reason, instead of having to wait 15 minutes for it to try and resolve all of the unresolved references...)&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 14:10:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/apprentice-openwithoptions-method-use/m-p/7203476#M142390</guid>
      <dc:creator>MechMachineMan</dc:creator>
      <dc:date>2017-07-04T14:10:49Z</dc:date>
    </item>
  </channel>
</rss>

