<?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: iLogic AddRadius dimension bug? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-addradius-dimension-bug/m-p/13129362#M4595</link>
    <description>&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 04 Nov 2024 18:28:02 GMT</pubDate>
    <dc:creator>Curtis_Waguespack</dc:creator>
    <dc:date>2024-11-04T18:28:02Z</dc:date>
    <item>
      <title>iLogic AddRadius dimension bug?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-addradius-dimension-bug/m-p/13129353#M4594</link>
      <description>&lt;P&gt;I'm curious if this is a bug, or if there is something I'm overlooking that would explain why I am seeing this error. See attached 2025 files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I run this version of the rule ( In Inventor 2025) I get the error shown :&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;Dim oSheet = ThisDrawing.Sheets.ItemByName("Sheet:1")
Dim oView = oSheet.DrawingViews.ItemByName("VIEW1")
Dim oDims = oSheet.DrawingDimensions.GeneralDimensions

oFace1 = oView.GetIntent("HoleEdge")
oPoint = oView.SheetPoint(-0.1, -0.1)

oDim = oDims.AddRadius("Radius99", oPoint, oFace1)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Curtis_Waguespack_1-1730743742816.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1429474i34BA4AB8BF4A6A58/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Curtis_Waguespack_1-1730743742816.png" alt="Curtis_Waguespack_1-1730743742816.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I remove &lt;STRONG&gt;Dim&lt;/STRONG&gt; from the beginning of line 3 as shown in this version, it runs without error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;Dim oSheet = ThisDrawing.Sheets.ItemByName("Sheet:1")
Dim oView = oSheet.DrawingViews.ItemByName("VIEW1")
oDims = oSheet.DrawingDimensions.GeneralDimensions

oFace1 = oView.GetIntent("HoleEdge")
oPoint = oView.SheetPoint(-0.1, -0.1)

oDim = oDims.AddRadius("Radius99", oPoint, oFace1)

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Curtis_Waguespack_2-1730744212735.png" style="width: 300px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1429475i19CE05396BC54A45/image-size/small?v=v2&amp;amp;px=200" role="button" title="Curtis_Waguespack_2-1730744212735.png" alt="Curtis_Waguespack_2-1730744212735.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anyone have any ideas about this?&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 18:26:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-addradius-dimension-bug/m-p/13129353#M4594</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2024-11-04T18:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic AddRadius dimension bug?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-addradius-dimension-bug/m-p/13129362#M4595</link>
      <description>&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 18:28:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-addradius-dimension-bug/m-p/13129362#M4595</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2024-11-04T18:28:02Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic AddRadius dimension bug?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-addradius-dimension-bug/m-p/13129417#M4596</link>
      <description>&lt;P&gt;Hi Curtis,&lt;/P&gt;
&lt;P&gt;Instead of removing the Dim statements, I recommend adding them to the lines that don't have them.&lt;BR /&gt;The important one is:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oPoint = oView.SheetPoint(-0.1, -0.1)&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm looking into this in more detail, but generally it's better to use Dim statements. That tells the VB compiler to infer the type of the object from what you're assigning to it. If you don't use Dim, it just creates a variable of type Object.&lt;BR /&gt;&lt;BR /&gt;I see the same limitation in Inventor 2024. It's probably there in earlier versions as well. Maybe we can improve this.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 18:55:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-addradius-dimension-bug/m-p/13129417#M4596</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2024-11-04T18:55:13Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic AddRadius dimension bug?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-addradius-dimension-bug/m-p/13129435#M4597</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi Curtis,&lt;/P&gt;
&lt;P&gt;Instead of removing the Dim statements, I recommend adding them to the lines that don't have them.&lt;BR /&gt;The important one is:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;Dim oPoint = oView.SheetPoint(-0.1, -0.1)&lt;/LI-CODE&gt;
&lt;P&gt;I'm looking into this in more detail, but generally it's better to use Dim statements. That tells the VB compiler to infer the type of the object from what you're assigning to it. If you don't use Dim, it just creates a variable of type Object.&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ah, good point. This issue just popped up in a class I am teaching today and the unexpected behavior really stumped us...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Removing the Dim was just the first thing I tried that worked, but I take your point that it would be better to add Dim as you mentioned.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for taking a look at this Mike!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2024 18:54:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-addradius-dimension-bug/m-p/13129435#M4597</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2024-11-04T18:54:47Z</dc:date>
    </item>
  </channel>
</rss>

