<?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: Error when calling function from external rule, but not when calling from internal rule. in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787409#M167599</link>
    <description>&lt;P&gt;That's exactly what I did and the error is thrown at line 25 (of the straight VB rule).&lt;/P&gt;</description>
    <pubDate>Tue, 21 May 2024 14:02:44 GMT</pubDate>
    <dc:creator>mat_hijs</dc:creator>
    <dc:date>2024-05-21T14:02:44Z</dc:date>
    <item>
      <title>Error when calling function from external rule, but not when calling from internal rule.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787178#M167593</link>
      <description>&lt;P&gt;I have an external rule (straight VB) with classes, subs and functions to call from other rules.&lt;/P&gt;&lt;P&gt;In this rule is the following code:&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Public Class Glassteun
	Public Property Category As String = "Reynaers_Glassteunen"
	Public Property Name As String
	Public Property Number As String
	Public Property Visible As Boolean
	Public Property Components As IManagedComponents
	Public Property Component As ICadComponent
	
	Public Sub New(Components As IManagedComponents, Component As ICadComponent)
		Me.Components = Components
		Me.Component = Component
	End Sub
	
	Public Function Place() As Inventor.ComponentOccurrence
		Dim oOcc As Inventor.ComponentOccurrence
		'*****This is a workaround for a bug, see this forum post: https://forums.autodesk.com/t5/inventor-programming-ilogic/place-content-center-bug/td-p/12727134*****
		'****************************************************************************************************************************************************************
		Try
			If Name &amp;lt;&amp;gt; "" Then Component.Visible(Name) = True
		Catch
		End Try
		'****************************************************************************************************************************************************************
		'****************************************************************************************************************************************************************
		If Name = "" Then Name = "TempName"
		Components.AddContentCenterPart(Name, Category, Number, Number, , False, , )
		Component.Visible(Name) = Visible
		oOcc = Component.InventorComponent(Name)
		If Name = "TempName" Then oOcc.Name = ""
			
		Return oOcc
	End Function
End Class&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I call the place function from an internal rule it works fine, but when I call it from an external rule it fails. This is the code I use to call the function:&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;AddVbFile "C:\Users\mathijs.stevens\Glas Ceyssens NV\Autodesk Inventor - General\Inventor Instellingen\R2024\iLogicSDK\ContentCenterReynaers.iLogicVb"
' Place/Replace Content Center Member Glassteun
Dim oGlassteun As New Glassteun(Components, Component)
oGlassteun.Name = ""
oGlassteun.Number = "073.7482.00 L"
oGlassteun.Visible = True
oGlassteun.Place&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And this is the error message I get when calling from an external rule:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Schermafbeelding 2024-05-21 144301.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1365153i395A4FB441ABE848/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Schermafbeelding 2024-05-21 144301.png" alt="Schermafbeelding 2024-05-21 144301.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;As far as I can tell all the arguments are passed correctly so I don't immediately see why this wouldn't work from an external rule.&lt;/P&gt;&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt;&amp;nbsp;Could this be a bug?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 12:48:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787178#M167593</guid>
      <dc:creator>mat_hijs</dc:creator>
      <dc:date>2024-05-21T12:48:12Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling function from external rule, but not when calling from internal rule.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787383#M167597</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8098075"&gt;@mat_hijs&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You might have already done this, but if you comment out all the lines of your function, and then un-comment them line by line, does this help you identify which line in the function is throwing the exception when running from the external rule?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's the only suggestion that comes to mind. Examining the code, nothing occurred to me as to why it would not work with an external rule, but would with an internal rule.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 13:57:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787383#M167597</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2024-05-21T13:57:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling function from external rule, but not when calling from internal rule.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787409#M167599</link>
      <description>&lt;P&gt;That's exactly what I did and the error is thrown at line 25 (of the straight VB rule).&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 14:02:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787409#M167599</guid>
      <dc:creator>mat_hijs</dc:creator>
      <dc:date>2024-05-21T14:02:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling function from external rule, but not when calling from internal rule.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787433#M167602</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8098075"&gt;@mat_hijs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It just occurred to me that "Components.AddContentCenterPart" is an iLogic function, and not an API function, and so maybe you would need to use the API to place the CC part in this case? Or maybe add a reference to the iLogic Add-in?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm just making guesses about that though, it's been a while since I've uses classes in this way with iLogic, so I forget the particulars. In any case I'm not sure I understand why the internal rule vs external rule situation would arise in this case, but maybe it's something to think about?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;API example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-57915C88-FF59-4ED6-9A67-47E55DD62639" target="_blank"&gt;https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-57915C88-FF59-4ED6-9A67-47E55DD62639&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 14:12:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787433#M167602</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2024-05-21T14:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling function from external rule, but not when calling from internal rule.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787461#M167603</link>
      <description>&lt;P&gt;I actually used to do this using the API, but the iLogic snippet is way faster than what I had because my code needed to loop through all the rows (which are usually thousands of them) to find the correct row and the code is just a lot easier to write and read.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway you are correct that using iLogic snippets in straight VB code is a bit of a special situation, but because I pass the interfaces I need it works, or at least it does when called from an internal rule.&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Public Sub New(Components As IManagedComponents, Component As ICadComponent)
		Me.Components = Components
		Me.Component = Component
	End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's still possible that this causes my issue though but I don't know how to make sure...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 14:22:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787461#M167603</guid>
      <dc:creator>mat_hijs</dc:creator>
      <dc:date>2024-05-21T14:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling function from external rule, but not when calling from internal rule.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787485#M167605</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8098075"&gt;@mat_hijs&lt;/a&gt;&amp;nbsp;, I think I might have figured it out. If I add a line to specify the CC language in the function then it works without error in the Internal and External rules.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For me the language syntax is en-US&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;Class&lt;/SPAN&gt; &lt;SPAN&gt;Glassteun&lt;/SPAN&gt;
	&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;Property&lt;/SPAN&gt; &lt;SPAN&gt;Category&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt; = &lt;SPAN&gt;"Fasteners:Nuts:Hex"&lt;/SPAN&gt;
	&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;Property&lt;/SPAN&gt; &lt;SPAN&gt;Name&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;
	&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;Property&lt;/SPAN&gt; &lt;SPAN&gt;Number&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;String&lt;/SPAN&gt;
	&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;Property&lt;/SPAN&gt; &lt;SPAN&gt;Visible&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Boolean&lt;/SPAN&gt;
	&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;Property&lt;/SPAN&gt; &lt;SPAN&gt;Components&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;IManagedComponents&lt;/SPAN&gt;
	&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;Property&lt;/SPAN&gt; &lt;SPAN&gt;Component&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ICadComponent&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt;(&lt;SPAN&gt;Components&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;IManagedComponents&lt;/SPAN&gt;, &lt;SPAN&gt;Component&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ICadComponent&lt;/SPAN&gt;)
		&lt;SPAN&gt;Me&lt;/SPAN&gt;.&lt;SPAN&gt;Components&lt;/SPAN&gt; = &lt;SPAN&gt;Components&lt;/SPAN&gt;
		&lt;SPAN&gt;Me&lt;/SPAN&gt;.&lt;SPAN&gt;Component&lt;/SPAN&gt; = &lt;SPAN&gt;Component&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Public&lt;/SPAN&gt; &lt;SPAN&gt;Function&lt;/SPAN&gt; &lt;SPAN&gt;Place&lt;/SPAN&gt;() &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt;
		&lt;FONT color="#0000FF"&gt;&lt;STRONG&gt;Components.ContentCenterLanguage = "en-US"&lt;/STRONG&gt;&lt;/FONT&gt;
		&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;ComponentOccurrence&lt;/SPAN&gt;
		&lt;SPAN&gt;'*****This is a workaround for a bug, see this forum post: https://forums.autodesk.com/t5/inventor-programming-ilogic/place-content-center-bug/td-p/12727134*****&lt;/SPAN&gt;
		&lt;SPAN&gt;'****************************************************************************************************************************************************************&lt;/SPAN&gt;
		&lt;SPAN&gt;Try&lt;/SPAN&gt;
			&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Name&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt;(&lt;SPAN&gt;Name&lt;/SPAN&gt;) = &lt;SPAN&gt;True&lt;/SPAN&gt;
		&lt;SPAN&gt;Catch&lt;/SPAN&gt;
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Try&lt;/SPAN&gt;
		&lt;SPAN&gt;'****************************************************************************************************************************************************************&lt;/SPAN&gt;
		&lt;SPAN&gt;'****************************************************************************************************************************************************************&lt;/SPAN&gt;
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;""&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;"TempName"&lt;/SPAN&gt;
		&lt;SPAN&gt;Components&lt;/SPAN&gt;.&lt;SPAN&gt;AddContentCenterPart&lt;/SPAN&gt;(&lt;SPAN&gt;Name&lt;/SPAN&gt;, &lt;SPAN&gt;Category&lt;/SPAN&gt;, &lt;SPAN&gt;Number&lt;/SPAN&gt;, &lt;SPAN&gt;Number&lt;/SPAN&gt;, , &lt;SPAN&gt;False&lt;/SPAN&gt;, , )
		&lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;Visible&lt;/SPAN&gt;(&lt;SPAN&gt;Name&lt;/SPAN&gt;) = &lt;SPAN&gt;Visible&lt;/SPAN&gt;
		&lt;SPAN&gt;oOcc&lt;/SPAN&gt; = &lt;SPAN&gt;Component&lt;/SPAN&gt;.&lt;SPAN&gt;InventorComponent&lt;/SPAN&gt;(&lt;SPAN&gt;Name&lt;/SPAN&gt;)
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;"TempName"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt; = &lt;SPAN&gt;""&lt;/SPAN&gt;
			
		&lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;oOcc&lt;/SPAN&gt;
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Function&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Class&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 14:30:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787485#M167605</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2024-05-21T14:30:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling function from external rule, but not when calling from internal rule.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787498#M167606</link>
      <description>&lt;P&gt;To determine this I went into the Class rule and right clicked on a CC part in the model tree and used &lt;STRONG&gt;Capture Current State ( Components.Add)&lt;/STRONG&gt; and it provided the code block as shown with the language line&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_0-1716302273539.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1365222i05DC6660285E4278/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Curtis_Waguespack_0-1716302273539.png" alt="Curtis_Waguespack_0-1716302273539.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;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 14:37:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787498#M167606</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2024-05-21T14:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling function from external rule, but not when calling from internal rule.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787528#M167607</link>
      <description>&lt;P&gt;Hero! This seems to do the trick. I would have never found this myself because I used the capture current state, but in an internal rule, where it doesn't add that line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you have any idea why this would differ between internal and external rules?&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 14:40:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787528#M167607</guid>
      <dc:creator>mat_hijs</dc:creator>
      <dc:date>2024-05-21T14:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Error when calling function from external rule, but not when calling from internal rule.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787575#M167610</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8098075"&gt;@mat_hijs&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hero! This seems to do the trick. I would have never found this myself because I used the capture current state, but in an internal rule, where it doesn't add that line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you have any idea why this would differ between internal and external rules?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yep, I just kind of got lucky when setting up my rule to match your setup, in that I did it in an external rule first.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for what's going on between the internal and external rule, I really don't know. Maybe Mike Deck can provide some insight on that?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 May 2024 14:57:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/error-when-calling-function-from-external-rule-but-not-when/m-p/12787575#M167610</guid>
      <dc:creator>Curtis_Waguespack</dc:creator>
      <dc:date>2024-05-21T14:57:24Z</dc:date>
    </item>
  </channel>
</rss>

