<?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: OnFileResolution event in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/onfileresolution-event/m-p/8824365#M75484</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've changed the reference to 22.0.0.0. I understand the problem that could cause when I deploy my addin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to set&amp;nbsp;HandlingCode = HandlingCodeEnum.kEventNotHandled at the beginning of the event and set&amp;nbsp;&lt;/P&gt;&lt;P&gt;HandlingCode = HandlingCodeEnum.kEventHandled just when I resolve de file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to solve my problem.&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
    <pubDate>Thu, 30 May 2019 20:21:51 GMT</pubDate>
    <dc:creator>marin_israel</dc:creator>
    <dc:date>2019-05-30T20:21:51Z</dc:date>
    <item>
      <title>OnFileResolution event</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/onfileresolution-event/m-p/8818974#M75480</link>
      <description>&lt;P&gt;Hi, I need to resolve link with onfileresolution event&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have exactly this problem:&lt;BR /&gt;&lt;A href="https://modthemachine.typepad.com/my_weblog/2015/08/modified-parameters-of-event-handler-ignored.html" target="_blank"&gt;https://modthemachine.typepad.com/my_weblog/2015/08/modified-parameters-of-event-handler-ignored.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, the solution only works on my computer. When I deploy my addin on other computers, it does not work anymore. The event is raised but the action inside is ignored.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for guiding me to find a solution.&lt;BR /&gt;* I can provide other information as needed.&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2019 15:56:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/onfileresolution-event/m-p/8818974#M75480</guid>
      <dc:creator>marin_israel</dc:creator>
      <dc:date>2019-05-28T15:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: OnFileResolution event</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/onfileresolution-event/m-p/8820145#M75481</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1097602"&gt;@marin_israel&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you please provide non confidential source code and steps to reproduce the behavior? Please also mention Inventor version and windows operating system.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After Inventor 2019, support Apprentice x86 is withdrawn. So, apprentice always work with x64. For more details, you can refer below forum discussion link.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-customization/apprenticeservercomponent-open-inventor-2019-files-and-windows/m-p/8010600#M84488" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/apprenticeservercomponent-open-inventor-2019-files-and-windows/m-p/8010600#M84488&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 05:10:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/onfileresolution-event/m-p/8820145#M75481</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2019-05-29T05:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: OnFileResolution event</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/onfileresolution-event/m-p/8821557#M75482</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4427777"&gt;@chandra.shekar.g&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is already in x64 and it's not with the apprentice server.&lt;/P&gt;&lt;P&gt;It's an AddIn for Inventor 2018.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp;created an addin with the minimum to recreate the problem.&lt;/P&gt;&lt;P&gt;See attach files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I put a breakpoint in the function, the program stops at the breakpoint. But, even if the "FullFileName" is good: the link is not resolved.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the support!&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 15:50:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/onfileresolution-event/m-p/8821557#M75482</guid>
      <dc:creator>marin_israel</dc:creator>
      <dc:date>2019-05-29T15:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: OnFileResolution event</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/onfileresolution-event/m-p/8822400#M75483</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1097602"&gt;@marin_israel&lt;/a&gt;&amp;nbsp;, are all the computers running Inventor 2018.3? If not, I'd recommend changing the reference to Autodesk.Inventor.Interop.dll in the project to 22.0.0.0. As it is, you have it at 22.3.0.0.&lt;BR /&gt;But that doesn't sound like the problem you're seeing.&lt;BR /&gt;I tested your add-in (with the reference version change to 22.0.0.0) on two systems: one running Inventor 2019 and one running 2018.3. The file resolution worked on both.&lt;BR /&gt;Here's something to try:&lt;BR /&gt;Set&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;HandlingCode = HandlingCodeEnum.kEventNotHandled&lt;/PRE&gt;
&lt;P&gt;as the first line in your event handler. That will make it the default return value. That's the recommended practice for most Inventor event handlers.&lt;BR /&gt;&lt;BR /&gt;On the machines that don't work, it could be that other add-ins are also handling the OnFileResolution event. Are there any differences that you can see between the machines?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 22:20:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/onfileresolution-event/m-p/8822400#M75483</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-05-29T22:20:38Z</dc:date>
    </item>
    <item>
      <title>Re: OnFileResolution event</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/onfileresolution-event/m-p/8824365#M75484</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've changed the reference to 22.0.0.0. I understand the problem that could cause when I deploy my addin.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried to set&amp;nbsp;HandlingCode = HandlingCodeEnum.kEventNotHandled at the beginning of the event and set&amp;nbsp;&lt;/P&gt;&lt;P&gt;HandlingCode = HandlingCodeEnum.kEventHandled just when I resolve de file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems to solve my problem.&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Thu, 30 May 2019 20:21:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/onfileresolution-event/m-p/8824365#M75484</guid>
      <dc:creator>marin_israel</dc:creator>
      <dc:date>2019-05-30T20:21:51Z</dc:date>
    </item>
  </channel>
</rss>

