<?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 Betreff: View &amp;quot;Dim&amp;quot; Variable Values in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/view-quot-dim-quot-variable-values/m-p/13332539#M2049</link>
    <description>&lt;P&gt;Excellent, thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 21 Feb 2025 16:21:51 GMT</pubDate>
    <dc:creator>Joseph.Lasser</dc:creator>
    <dc:date>2025-02-21T16:21:51Z</dc:date>
    <item>
      <title>View "Dim" Variable Values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/view-quot-dim-quot-variable-values/m-p/13332453#M2047</link>
      <description>&lt;P&gt;This is likely a poor question, but is there a a way to view a list of all declared variables in a rule and their associated values?&amp;nbsp; For example, please reference the script below:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Test1&lt;/SPAN&gt; = 1
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Test2&lt;/SPAN&gt; = 2
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Test3&lt;/SPAN&gt; = 3
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;Sum&lt;/SPAN&gt; = &lt;SPAN&gt;Test1&lt;/SPAN&gt;+&lt;SPAN&gt;Test2&lt;/SPAN&gt;+&lt;SPAN&gt;Test3&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Within the rule editor, would there be a way to see that the variable Sum is equal to 6?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 15:40:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/view-quot-dim-quot-variable-values/m-p/13332453#M2047</guid>
      <dc:creator>Joseph.Lasser</dc:creator>
      <dc:date>2025-02-21T15:40:53Z</dc:date>
    </item>
    <item>
      <title>Betreff: View "Dim" Variable Values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/view-quot-dim-quot-variable-values/m-p/13332486#M2048</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11880952"&gt;@Joseph.Lasser&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can log the value using logger:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="cidhelp_0-1740153262366.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1469653i465E8B654A407220/image-size/medium?v=v2&amp;amp;px=400" role="button" title="cidhelp_0-1740153262366.png" alt="cidhelp_0-1740153262366.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 15:54:53 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/view-quot-dim-quot-variable-values/m-p/13332486#M2048</guid>
      <dc:creator>cidhelp</dc:creator>
      <dc:date>2025-02-21T15:54:53Z</dc:date>
    </item>
    <item>
      <title>Betreff: View "Dim" Variable Values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/view-quot-dim-quot-variable-values/m-p/13332539#M2049</link>
      <description>&lt;P&gt;Excellent, thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 21 Feb 2025 16:21:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/view-quot-dim-quot-variable-values/m-p/13332539#M2049</guid>
      <dc:creator>Joseph.Lasser</dc:creator>
      <dc:date>2025-02-21T16:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: View "Dim" Variable Values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/view-quot-dim-quot-variable-values/m-p/13757883#M176492</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/11880952"&gt;@Joseph.Lasser&lt;/a&gt;&amp;nbsp;i came across this post in my searches.&amp;nbsp; I have a similar case but i'd like to SUM all the variables without having to do "Test 1 + Test2...etc"&amp;nbsp; Is there a way of doing this in iLogic?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Aug 2025 12:00:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/view-quot-dim-quot-variable-values/m-p/13757883#M176492</guid>
      <dc:creator>layochim</dc:creator>
      <dc:date>2025-08-07T12:00:22Z</dc:date>
    </item>
    <item>
      <title>Re: View "Dim" Variable Values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/view-quot-dim-quot-variable-values/m-p/13762820#M176534</link>
      <description>&lt;P&gt;If you are talking about a built-in Function, like in Excel, then I do not recall one like that at the moment, but the '&lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1" target="_blank" rel="noopener"&gt;List(Of t)&lt;/A&gt;' object has a method like that, when the Type (t) is a numeric type, such as Integer or Double.&amp;nbsp; For example:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim Val1 As Double = 1.5
Dim Val2 As Double = 3
Dim Val3 As Double = 5.5
Dim values As New List(Of Double) From {Val1, Val2, Val3 }
Dim sum As Double = values.Sum
Logger.Info("Sum = " &amp;amp; sum.ToString())&lt;/LI-CODE&gt;
&lt;P&gt;This essentially adds all the Double type values into a new 'List of Double', then since the Type of its entries is Double, its '&lt;A href="https://learn.microsoft.com/en-us/dotnet/api/system.linq.enumerable.sum" target="_blank" rel="noopener"&gt;Sum&lt;/A&gt;' extension method (a Function) is enabled, which returns the Sum of all its entries.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 16:03:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/view-quot-dim-quot-variable-values/m-p/13762820#M176534</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2025-08-11T16:03:57Z</dc:date>
    </item>
    <item>
      <title>Re: View "Dim" Variable Values</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/view-quot-dim-quot-variable-values/m-p/13762823#M176535</link>
      <description>&lt;P&gt;This is exactly what i was looking for, Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 11 Aug 2025 16:07:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/view-quot-dim-quot-variable-values/m-p/13762823#M176535</guid>
      <dc:creator>layochim</dc:creator>
      <dc:date>2025-08-11T16:07:19Z</dc:date>
    </item>
  </channel>
</rss>

