<?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 Visual Studio Debugging in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11440090#M42602</link>
    <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have tried to follow your article "Creating an Inventor Addin"&amp;nbsp;and ended up with error "Type 'ICadDoc' is not defined".&lt;/P&gt;&lt;P&gt;UPDATE: Solved with including Autodesk.iLogic.Interfaces library.&lt;BR /&gt;Now I have my first addin done!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&lt;BR /&gt;I believe I've found couple typos:&lt;/P&gt;&lt;P&gt;1. Double "&lt;SPAN&gt;Create a class “AbstractRule” ..." (second should be "ThisRule").&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Code of&amp;nbsp;StandardAddInServer ... line 3 ... "fiel" instead of "file".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. In article about Icons ... in code ... wrong name for large icon (...16x16).&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 22 Sep 2022 22:35:43 GMT</pubDate>
    <dc:creator>Maxim-CADman77</dc:creator>
    <dc:date>2022-09-22T22:35:43Z</dc:date>
    <item>
      <title>iLogic Visual Studio Debugging</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/10807152#M42596</link>
      <description>&lt;P&gt;I have been using Visual Studio to debug my iLogic for sometime now. Something changed recently or I did something that prevents Visual Studio from loading the iLogic Rule so I can step through the code. It has shown various errors with different things I have tried like the attached image. I have followed guide at the&amp;nbsp;&lt;A title="Debug  w/ Visual Studio" href="https://modthemachine.typepad.com/my_weblog/2019/12/using-visual-studio-to-debug-ilogic-rules.html" target="_blank" rel="noopener"&gt;https://modthemachine.typepad.com/my_weblog/2019/12/using-visual-studio-to-debug-ilogic-rules.html&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code in the rule I am using is super basic.&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Public Sub Main()	
	Dim oDoc As Document = ThisApplication.ActiveDocument	
	Throw New Exception("STOP")	
End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Dec 2021 19:15:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/10807152#M42596</guid>
      <dc:creator>Genicee</dc:creator>
      <dc:date>2021-12-07T19:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Visual Studio Debugging</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11416906#M42597</link>
      <description>&lt;P&gt;Nowadays I've got stuck debugging my ~1000 lines iLogic Rule (giving Exception HResult 0x80004005 on the particular sample). Of course I'd like to try debug it with Visual Studio (I used to code with Notepad++).&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I've tried to follow the article (by &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt;) you've mentioned.&lt;/P&gt;&lt;P&gt;First of all, I should admit that there is no&amp;nbsp;"Use the legacy C# and VB expression evaluators" option in Options/Debugging/General of actual VS version*.&lt;/P&gt;&lt;P&gt;Nevertheless I've (hopefully) managed to enable this option using the trick**.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I then attached VS to Inventor 2023.1 process.&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When I execute my EXTERNAL iLogic rule it produces exception error window.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I expect some data be shown in Watch/Autos/Locals&amp;nbsp;window of VS ... but there is nothing there.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Could you comment the statement "&lt;SPAN&gt;However, note that "the code" that you see in&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;VS&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;is not exactly your original code from your rule."?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Where I supposed to "see the code" if no VB project open is necessary (I thought I can debug iLogic with VS opened with option "Continue without code")?&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;What I'm missing?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;*&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;I'm using VS Community 2019 (Version 16.11.18)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;**&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;See message marked as solution in the thread&lt;/DIV&gt;&lt;DIV&gt;&lt;A href="https://stackoverflow.com/questions/62104151/legacy-c-sharp-and-vb-expression-evaluators-in-visual-studio-2019-16-5" target="_blank" rel="noopener"&gt;https://stackoverflow.com/questions/62104151/legacy-c-sharp-and-vb-expression-evaluators-in-visual-studio-2019-16-5&lt;/A&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 21:21:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11416906#M42597</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2022-09-12T21:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Visual Studio Debugging</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11416941#M42598</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/572109"&gt;@Maxim-CADman77&lt;/a&gt;&amp;nbsp;, iLogic creates a modified copy of your original rule as a .vb file in this folder:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;%Temp%\iLogic Rules&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Use File &amp;gt; Open in Visual Studio to open a .vb file from that folder. Then you can set a breakpoint in that file in Visual Studio.&lt;BR /&gt;This copy is the debuggable version of your rule. (The original rule is not directly debuggable, even if it is an external rule text file.)&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2022 21:29:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11416941#M42598</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2022-09-12T21:29:32Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Visual Studio Debugging</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11420149#M42599</link>
      <description>&lt;P&gt;Wow!! Debugging iLogic Rule by means of Visual Studio seems really cool thing!&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;PS: The reason why it behaved not as expected on my config on first attempt was system environment variable&amp;nbsp;&lt;SPAN&gt;“iLogicRuleFolderForVS” with "0" value (can't remember circumstances of creating it).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Many Thanks to&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt;&amp;nbsp;for guessing this!&lt;BR /&gt;(IMHO appropriate note is worth to be added to the article)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 08:22:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11420149#M42599</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2022-09-14T08:22:44Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Visual Studio Debugging</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11421806#M42600</link>
      <description>&lt;P&gt;There is also another way to write/debug rules in VS. Check this post "&lt;A href="http://www.hjalte.nl/47-writing-and-debugging-ilogic-rules" target="_blank" rel="noopener"&gt;Writing and debugging iLogic rules&lt;/A&gt;".&lt;/P&gt;
&lt;P&gt;But if your iLogic rules have ~1000 lines of code you should consider writing an addin. You might want to have a look at this post "&lt;A href="http://www.hjalte.nl/60-creating-an-inventor-addin" target="_blank" rel="noopener"&gt;Creating an Inventor Addin&lt;/A&gt;". In that post, I create an addin from an iLogic rule.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2022 20:04:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11421806#M42600</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2022-09-14T20:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Visual Studio Debugging</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11438206#M42601</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I'm not sure I understand you correctly.&lt;BR /&gt;By "writing the addin" together with mention your article you suggest to "wrap" iLogic code into addin (or convert it to Net language)?&lt;BR /&gt;&lt;BR /&gt;I tried to convert iLogic to VB.Net but stuck (see -&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/invalid-callee-on-findusingvector-convert-ilogic-to-vb-net/m-p/11436727#M142928" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/invalid-callee-on-findusingvector-convert-ilogic-to-vb-net/m-p/11436727#M142928&lt;/A&gt;)&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 08:38:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11438206#M42601</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2022-09-22T08:38:17Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Visual Studio Debugging</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11440090#M42602</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5011186"&gt;@JelteDeJong&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Have tried to follow your article "Creating an Inventor Addin"&amp;nbsp;and ended up with error "Type 'ICadDoc' is not defined".&lt;/P&gt;&lt;P&gt;UPDATE: Solved with including Autodesk.iLogic.Interfaces library.&lt;BR /&gt;Now I have my first addin done!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS:&lt;BR /&gt;I believe I've found couple typos:&lt;/P&gt;&lt;P&gt;1. Double "&lt;SPAN&gt;Create a class “AbstractRule” ..." (second should be "ThisRule").&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2. Code of&amp;nbsp;StandardAddInServer ... line 3 ... "fiel" instead of "file".&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3. In article about Icons ... in code ... wrong name for large icon (...16x16).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 22 Sep 2022 22:35:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11440090#M42602</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2022-09-22T22:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Visual Studio Debugging</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11442161#M42603</link>
      <description>&lt;P&gt;I changed the typo's thanks for pointing those out.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;About your Idea: "&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/icon-customization-for-external-ilogic-rule-ribbon-button/idi-p/11363831" target="_blank"&gt;Icon Customization for external iLogic rule ribbon&lt;/A&gt;". You might want to look at my addin "&lt;A href="http://www.hjalte.nl/inventor-addins/31-button-constructor" target="_blank" rel="noopener"&gt;ButtonConstructor&lt;/A&gt;". That addin will allow you to change the icons of your buttons. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 23 Sep 2022 19:57:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/11442161#M42603</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2022-09-23T19:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Visual Studio Debugging</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/13355816#M42604</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;Dear, Mike&lt;BR /&gt;Don't you know why Inventor (2025.2.1) Viewport may not update during iLogic code step-by-step debugging with Visual Studio (Community 2022)?&lt;BR /&gt;Like with Application.ScreenUpdating = False (I don't use it).&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 08:16:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/13355816#M42604</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2025-03-06T08:16:09Z</dc:date>
    </item>
    <item>
      <title>Re: iLogic Visual Studio Debugging</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/13356766#M42605</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/572109"&gt;@Maxim-CADman77&lt;/a&gt;&amp;nbsp;- if you are modifying a parameter directly in the rule, the display will probably not update until you execute these two lines of code:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;RuleParametersOutput()
InventorVb.DocumentUpdate()&lt;/LI-CODE&gt;
&lt;P&gt;For debugging, you might want to add extra statements like that.&lt;/P&gt;
&lt;P&gt;You can also add statements like:&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;ThisApplication.ActiveView.Update()&lt;/LI-CODE&gt;
&lt;P&gt;and&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;ThisApplication.UserInterfaceManager.DoEvents()&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If none of those make a difference, please post some sample code that shows the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Mar 2025 16:11:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/ilogic-visual-studio-debugging/m-p/13356766#M42605</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2025-03-06T16:11:54Z</dc:date>
    </item>
  </channel>
</rss>

