<?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: How to invoke a method in a dll with Invenotr API? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-invoke-a-method-in-a-dll-with-invenotr-api/m-p/9636034#M113257</link>
    <description>I can run the program sucessfully in pure C# or in Revit environment, but faild in Inventor environment, so I think maybe Inventor has something sepcial... Thanks!</description>
    <pubDate>Wed, 15 Jul 2020 04:35:34 GMT</pubDate>
    <dc:creator>bim01</dc:creator>
    <dc:date>2020-07-15T04:35:34Z</dc:date>
    <item>
      <title>How to invoke a method in a dll with Invenotr API?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-invoke-a-method-in-a-dll-with-invenotr-api/m-p/9634246#M113211</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I have encountered a problem during coding with my colleagues, is anyone can help, Here is the problem:&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;in “project2”, I defined a class named “CsA”&lt;/SPAN&gt;，&lt;SPAN&gt;and a method called “FuncA()”, compiled the “project2”to “project2.dll”.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;in “project1”,I add the reference of “project2.dll”, then in the Activate(……) function, I tried to instantiate an object of “CsA&lt;/SPAN&gt;“&lt;SPAN&gt;, but faild here (see the picture).&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;And I tried another way: I put “CsA”in “project1”then compiled it, the program runs well. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;So how to invoke a method in a dll coded by someone else under the circumstances of collaborating with colleagues? Or it is impossible to do so in Inventor?&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Circumstances: Inventor professional 2018, windows 7&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="problem.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/795605i20EC1889E61D10EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="problem.jpg" alt="problem.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 13:31:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-invoke-a-method-in-a-dll-with-invenotr-api/m-p/9634246#M113211</guid>
      <dc:creator>bim01</dc:creator>
      <dc:date>2020-07-15T13:31:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to invoke a method in a dll with Invenotr API?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-invoke-a-method-in-a-dll-with-invenotr-api/m-p/9634370#M113212</link>
      <description>&lt;P&gt;This seems like more of a C# question than an Inventor API question. Try looking in stack overflow, you might have better luck. This may be what you need:&lt;/P&gt;&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/28449564/how-to-use-class-from-other-files-in-c-sharp-with-visual-studio" target="_blank"&gt;https://stackoverflow.com/questions/28449564/how-to-use-class-from-other-files-in-c-sharp-with-visual-studio&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 12:16:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-invoke-a-method-in-a-dll-with-invenotr-api/m-p/9634370#M113212</guid>
      <dc:creator>ckeveryga</dc:creator>
      <dc:date>2020-07-14T12:16:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to invoke a method in a dll with Invenotr API?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-invoke-a-method-in-a-dll-with-invenotr-api/m-p/9634680#M113225</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is the dll file copied with the build of the project to the directories needed?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jul 2020 14:29:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-invoke-a-method-in-a-dll-with-invenotr-api/m-p/9634680#M113225</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2020-07-14T14:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to invoke a method in a dll with Invenotr API?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-invoke-a-method-in-a-dll-with-invenotr-api/m-p/9636029#M113256</link>
      <description>Yes, local copy set true</description>
      <pubDate>Wed, 15 Jul 2020 04:30:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-invoke-a-method-in-a-dll-with-invenotr-api/m-p/9636029#M113256</guid>
      <dc:creator>bim01</dc:creator>
      <dc:date>2020-07-15T04:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to invoke a method in a dll with Invenotr API?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-invoke-a-method-in-a-dll-with-invenotr-api/m-p/9636034#M113257</link>
      <description>I can run the program sucessfully in pure C# or in Revit environment, but faild in Inventor environment, so I think maybe Inventor has something sepcial... Thanks!</description>
      <pubDate>Wed, 15 Jul 2020 04:35:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-invoke-a-method-in-a-dll-with-invenotr-api/m-p/9636034#M113257</guid>
      <dc:creator>bim01</dc:creator>
      <dc:date>2020-07-15T04:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to invoke a method in a dll with Invenotr API?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-invoke-a-method-in-a-dll-with-invenotr-api/m-p/9636208#M113264</link>
      <description>&lt;P&gt;You could take a look at the referenced inventor version in either the dll and in the project, are they the same?&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 07:27:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/how-to-invoke-a-method-in-a-dll-with-invenotr-api/m-p/9636208#M113264</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2020-07-15T07:27:52Z</dc:date>
    </item>
  </channel>
</rss>

