<?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: Shared Variables in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/10475780#M95657</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the explanation!&lt;/P&gt;</description>
    <pubDate>Sat, 17 Jul 2021 08:08:04 GMT</pubDate>
    <dc:creator>ReneRepina</dc:creator>
    <dc:date>2021-07-17T08:08:04Z</dc:date>
    <item>
      <title>Shared Variables</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/7570228#M95650</link>
      <description>&lt;P class="p"&gt;Where can&amp;nbsp;I access a list of all shared variables?&lt;/P&gt;
&lt;P class="p"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p"&gt;If they are stored in memory, is that memory cleared when Inventor is closed?&lt;/P&gt;
&lt;P class="p"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p"&gt;What is the Free iLogic Memory command mentioned on Autodesk help page below and how is that different&amp;nbsp;to the RemoveAll command.&lt;/P&gt;
&lt;P class="p"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p"&gt;&lt;STRONG id="GUID-FBCC3019-9CDF-4F36-A241-ACCF2FA8CA20__GUID-0268FFAC-0F7A-4FB5-8DB2-A0D3B752BB01" class="ph b"&gt;SharedVariable.RemoveAll()&lt;/STRONG&gt;&lt;/P&gt;
&lt;P class="p"&gt;Removes all shared variables. Use this function with care in a rule. If any unrelated parts and assemblies are open that use shared variables, use the Free iLogic Memory command instead.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Nov 2017 10:41:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/7570228#M95650</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-24T10:41:49Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Variables</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/7572519#M95651</link>
      <description>What would you like to achieve?&lt;BR /&gt;About the shared variables I mean.</description>
      <pubDate>Sat, 25 Nov 2017 21:36:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/7572519#M95651</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2017-11-25T21:36:32Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Variables</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/7574248#M95652</link>
      <description>&lt;P&gt;They are working fine for me. I'm just curious how they work really.... and was concerned about that comment on the autodesk help page&lt;/P&gt;</description>
      <pubDate>Mon, 27 Nov 2017 08:48:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/7574248#M95652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-27T08:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Variables</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/10151456#M95653</link>
      <description>&lt;P&gt;Bumping post. I am also wondering how they work and did not find answer yet.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/473476"&gt;@bradeneuropeArthur&lt;/a&gt;&lt;/P&gt;&lt;P&gt;Any good answers about this?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Mar 2021 13:03:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/10151456#M95653</guid>
      <dc:creator>ReneRepina</dc:creator>
      <dc:date>2021-03-12T13:03:36Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Variables</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/10160760#M95654</link>
      <description>&lt;P&gt;I believe this is the 'command' they are referring to:&lt;/P&gt;&lt;P&gt;"iLogic.FreeILogicMemory"&lt;/P&gt;&lt;LI-CODE lang="general"&gt;ThisApplication.CommandManager.ControlDefinitions.Item("iLogic.FreeILogicMemory").Execute&lt;/LI-CODE&gt;&lt;P&gt;Inventor's online help, although useful for some things, is pretty much famous for referring to other things, then not supplying any links or further instructions to find out more about what they are referring to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN style="background-color: green; color: white;"&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;.&lt;/P&gt;&lt;P&gt;If you have time, please... Vote For &lt;A href="https://forums.autodesk.com/t5/forums/recentpostspage/post-type/message/interaction-style/idea/user-id/7812054/" target="_blank"&gt;My IDEAS &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt;&lt;/SPAN&gt;&lt;/A&gt;or you can Explore &lt;A href="https://knowledge.autodesk.com/profile/LTSUSR7HXMSAE/articles" target="_blank"&gt;My CONTRIBUTIONS &lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Mar 2021 13:28:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/10160760#M95654</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-03-16T13:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Variables</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/10172990#M95655</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the reply. Do you maybe know the answer about other questions on this thread?&lt;/P&gt;</description>
      <pubDate>Sat, 20 Mar 2021 21:30:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/10172990#M95655</guid>
      <dc:creator>ReneRepina</dc:creator>
      <dc:date>2021-03-20T21:30:09Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Variables</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/10179566#M95656</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; When you close Inventor, any SharedVariables will be lost.&amp;nbsp; They aren't stored in general system memory, they are stored in 'session memory'.&amp;nbsp; Session memory is dumped (lost) when the Inventor 'session' ends (when you close Inventor).&amp;nbsp; SharedVariables can be very handy for sharing data between different rules (both local &amp;amp; external), and don't require you to dirty your document by creating new parameters, iProperties, or attributes (all of which are saved in the document).&amp;nbsp; You can set up some rules to receive 'input' data for use in their main Sub or Function this way, then can also receive 'input' data back from those other rules/macros that way.&amp;nbsp; But they aren't the only way to send/receive (share) data between rules.&lt;/P&gt;&lt;P&gt;Here is a link to it's Interface page in Inventor's online help:&amp;nbsp; &lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=9da80dee-a3ae-2f47-324b-4ef496b40e5b" target="_blank" rel="noopener"&gt;ISharedVariable Interface&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It is defined within the iLogic Add-in's Interfaces dll. ("Autodesk.iLogic.Interfaces.dll"), so it's not naturally available in the VBA editor.&lt;/P&gt;&lt;P&gt;You can also use &lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=c6f2c020-8318-5536-3e1f-c57a5125071b" target="_blank" rel="noopener"&gt;RuleArguments&lt;/A&gt; and &lt;A href="https://help.autodesk.com/view/INVNTOR/2021/ENU/?guid=GUID-5FDFF606-1D15-4FA0-9ED1-1BF4A3BCEBF8" target="_blank" rel="noopener"&gt;NameValueMap&lt;/A&gt;s to share data between them.&amp;nbsp; You'll notice that the 'Arguments' property of RuleArguments is a NameValueMap also.&amp;nbsp; These two can also be used between iLogic rules and VBA macros.&amp;nbsp; You would of course, use the RuleArguments on the iLogic side, if communicating between a rule and a macro, because it too is defined within the iLogic add-in, but NameValueMaps are recognized in both iLogic and VBA.&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/community/article/336156" target="_blank" rel="noopener"&gt;Here is a link to one of my contribution posts&lt;/A&gt;, where I show how to use those two interfaces to send and receive data between two rules, that you might find helpful.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this solved your problem, or answered your question, please click &lt;SPAN style="background-color: green; color: white;"&gt;&lt;STRONG&gt;ACCEPT SOLUTION&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;BR /&gt;Or, if this helped you, please click (LIKE or KUDOS) &lt;SPAN&gt;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/SPAN&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 23 Mar 2021 14:23:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/10179566#M95656</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2021-03-23T14:23:32Z</dc:date>
    </item>
    <item>
      <title>Re: Shared Variables</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/10475780#M95657</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the explanation!&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jul 2021 08:08:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/shared-variables/m-p/10475780#M95657</guid>
      <dc:creator>ReneRepina</dc:creator>
      <dc:date>2021-07-17T08:08:04Z</dc:date>
    </item>
  </channel>
</rss>

