<?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: Button iLogic external in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12429108#M15862</link>
    <description>&lt;P&gt;Just posting a correction to something I said in Message 4.&amp;nbsp; I said "&lt;SPAN&gt;I believe that they will only stay there during that session of Inventor, then will be gone again after restarting Inventor."&amp;nbsp; Well, that was true according to my testing back while using Inventor 2022 and how the old version rules I was using at the time worked for that task.&amp;nbsp; However, apparently that is not the case when using some updated code with updated settings for use in 2024.&amp;nbsp; I copied one of my old rules, modified it a bit, ran it to add a rule to the ribbon, and it seemed to work better now.&amp;nbsp; Plus, the rule button is still there after closing Inventor, then restarting it.&amp;nbsp; But I did observe something odd.&amp;nbsp; Only the small button icon was visible where I placed it, even though when I added it by code, I specified True for the 'ShowText' parameter of the &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=CommandControls_AddButton" target="_blank" rel="noopener"&gt;AddButton&lt;/A&gt; method.&amp;nbsp; And when I open the Customize dialog to review the buttons in that panel, the checkbox is checked in the Text column for that rule button.&amp;nbsp; To fix this oddity, I had to uncheck the box, then checked it again.&amp;nbsp; But at least the button stayed there, and still worked as designed, when clicked.&amp;nbsp; In this recent testing, I did not attempt to create any new RibbonTab or RibbonPanel, just added the button to an existing panel.&amp;nbsp; In my old tests, the new RibbonTabs and new RibbonPanels that were created by my rule were gone after restarting Inventor.&amp;nbsp; I have not tested that part again in 2024 yet though.&amp;nbsp; It would be nice if they simply included the ability to add tabs and panels to the Customize dialog.&amp;nbsp; I even created an &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/add-more-capabilities-to-the-customize-dialog-box-exe-add-tab/idi-p/9371747" target="_blank" rel="noopener"&gt;'Idea' post&lt;/A&gt; about it in the &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232" target="_blank" rel="noopener"&gt;Inventor Ideas forum&lt;/A&gt; back in early 2020.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Edit:&amp;nbsp; I attached the updated rule I used in my recent testing, just for reference.&amp;nbsp; It contains some methods that are not currently being used, but they could be further developed and included, if needed.&amp;nbsp; I was using all of them in my old codes, when I was adding tabs &amp;amp; panels also.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Dec 2023 18:55:16 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2023-12-08T18:55:16Z</dc:date>
    <item>
      <title>Button iLogic external</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12427773#M15856</link>
      <description>&lt;P&gt;I want too add button too external rule without add-ins&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can not found&amp;nbsp;&lt;SPAN&gt;ControlDefinition&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;for iLogic External rule&amp;nbsp; &amp;nbsp;like&amp;nbsp; MacroControlDefinition&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best Regards Johan&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oMacroDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;MacroControlDefinition&lt;/SPAN&gt; 
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oItem&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;
	
		
	&lt;SPAN&gt;oMacroDef&lt;/SPAN&gt; = &lt;SPAN&gt;oControlDefs&lt;/SPAN&gt;.&lt;SPAN&gt;AddMacroControlDefinition&lt;/SPAN&gt;(&lt;SPAN&gt;oItem&lt;/SPAN&gt;)	
		&lt;SPAN&gt;oPanel&lt;/SPAN&gt;.&lt;SPAN&gt;CommandControls&lt;/SPAN&gt;.&lt;SPAN&gt;AddMacro&lt;/SPAN&gt;(&lt;SPAN&gt;oMacroDef&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)	
	&lt;SPAN&gt;Next&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;oCommandType&lt;/SPAN&gt; = &lt;SPAN&gt;InputRadioBox&lt;/SPAN&gt;(&lt;SPAN&gt;"Select One"&lt;/SPAN&gt;, _
&lt;SPAN&gt;"Built in commands"&lt;/SPAN&gt;, &lt;SPAN&gt;"Macro commands"&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;, &lt;SPAN&gt;"ilogic"&lt;/SPAN&gt;)

&lt;SPAN&gt;' Get the ribbon associated with the document&lt;/SPAN&gt;
&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oRibbon&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;Ribbon&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt;
&lt;SPAN&gt;oDoc&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveEditDocument&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kAssemblyDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
    &lt;SPAN&gt;oRibbon&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;UserInterfaceManager&lt;/SPAN&gt;.&lt;SPAN&gt;Ribbons&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Assembly"&lt;/SPAN&gt;)
    &lt;SPAN&gt;oType&lt;/SPAN&gt; = &lt;SPAN&gt;"Assembly"&lt;/SPAN&gt;
&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kPartDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
    &lt;SPAN&gt;oRibbon&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;UserInterfaceManager&lt;/SPAN&gt;.&lt;SPAN&gt;Ribbons&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Part"&lt;/SPAN&gt;)
    &lt;SPAN&gt;oType&lt;/SPAN&gt; = &lt;SPAN&gt;"Part"&lt;/SPAN&gt;
&lt;SPAN&gt;ElseIf&lt;/SPAN&gt; &lt;SPAN&gt;oDoc&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentType&lt;/SPAN&gt; = &lt;SPAN&gt;DocumentTypeEnum&lt;/SPAN&gt;.&lt;SPAN&gt;kDrawingDocumentObject&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
    &lt;SPAN&gt;oRibbon&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;UserInterfaceManager&lt;/SPAN&gt;.&lt;SPAN&gt;Ribbons&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"Drawing"&lt;/SPAN&gt;)
    &lt;SPAN&gt;oType&lt;/SPAN&gt; = &lt;SPAN&gt;"Drawing"&lt;/SPAN&gt;
&lt;SPAN&gt;Else&lt;/SPAN&gt;
    &lt;SPAN&gt;oType&lt;/SPAN&gt; = &lt;SPAN&gt;"Unknown"&lt;/SPAN&gt;
	&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

&lt;SPAN&gt;oName&lt;/SPAN&gt; = &lt;SPAN&gt;"TEST_"&lt;/SPAN&gt;

&lt;SPAN&gt;'delete existing tab, in case it exist from previous test&lt;/SPAN&gt;
&lt;SPAN&gt;Try&lt;/SPAN&gt;
&lt;SPAN&gt;oRibbon&lt;/SPAN&gt;.&lt;SPAN&gt;RibbonTabs&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;oName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oType&lt;/SPAN&gt;).&lt;SPAN&gt;Delete&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;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oTab&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;RibbonTab&lt;/SPAN&gt;
&lt;SPAN&gt;oTab&lt;/SPAN&gt; = &lt;SPAN&gt;oRibbon&lt;/SPAN&gt;.&lt;SPAN&gt;RibbonTabs&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;oName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oType&lt;/SPAN&gt;, &lt;SPAN&gt;oName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oType&lt;/SPAN&gt;, &lt;SPAN&gt;"ClientId123"&lt;/SPAN&gt;)
&lt;SPAN&gt;oTab&lt;/SPAN&gt;.&lt;SPAN&gt;Active&lt;/SPAN&gt; = &lt;SPAN&gt;True&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oPanel&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;RibbonPanel&lt;/SPAN&gt;
&lt;SPAN&gt;sPanelName&lt;/SPAN&gt; = &lt;SPAN&gt;oName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;" Tools"&lt;/SPAN&gt;

&lt;SPAN&gt;oPanel&lt;/SPAN&gt; = &lt;SPAN&gt;oTab&lt;/SPAN&gt;.&lt;SPAN&gt;RibbonPanels&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;sPanelName&lt;/SPAN&gt;, &lt;SPAN&gt;sPanelName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"_"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oType&lt;/SPAN&gt;, &lt;SPAN&gt;sPanelName&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;"_"&lt;/SPAN&gt; &amp;amp; &lt;SPAN&gt;oType&lt;/SPAN&gt;)

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oControlDefs&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ControlDefinitions&lt;/SPAN&gt;
&lt;SPAN&gt;oControlDefs&lt;/SPAN&gt; = &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;CommandManager&lt;/SPAN&gt;.&lt;SPAN&gt;ControlDefinitions&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oButtonsList&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;New&lt;/SPAN&gt; &lt;SPAN&gt;ArrayList&lt;/SPAN&gt;
&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oCommandType&lt;/SPAN&gt; = &lt;SPAN&gt;False&lt;/SPAN&gt;
	
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oType&lt;/SPAN&gt; = &lt;SPAN&gt;"Drawing"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;	
		&lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"Test.Test_01"&lt;/SPAN&gt;)
		&lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"Test.Test_02"&lt;/SPAN&gt;)		
	&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oType&lt;/SPAN&gt; = &lt;SPAN&gt;"Assembly"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"Test.Test_03"&lt;/SPAN&gt;)
		&lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"Test.Test_04"&lt;/SPAN&gt;)	
	&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oType&lt;/SPAN&gt; = &lt;SPAN&gt;"Part"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"Test.Test_05"&lt;/SPAN&gt;)
		&lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"Test.Test_06"&lt;/SPAN&gt;)
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oMacroDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;MacroControlDefinition&lt;/SPAN&gt; 
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oItem&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;
	
		
	&lt;SPAN&gt;oMacroDef&lt;/SPAN&gt; = &lt;SPAN&gt;oControlDefs&lt;/SPAN&gt;.&lt;SPAN&gt;AddMacroControlDefinition&lt;/SPAN&gt;(&lt;SPAN&gt;oItem&lt;/SPAN&gt;)	
		&lt;SPAN&gt;oPanel&lt;/SPAN&gt;.&lt;SPAN&gt;CommandControls&lt;/SPAN&gt;.&lt;SPAN&gt;AddMacro&lt;/SPAN&gt;(&lt;SPAN&gt;oMacroDef&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)	
	&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;Else&lt;/SPAN&gt;
	
	&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oType&lt;/SPAN&gt; = &lt;SPAN&gt;"Drawing"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;	
		&lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"DrawingBalloonCmd"&lt;/SPAN&gt;)
		&lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"DrawingBalloonAllCmd"&lt;/SPAN&gt;)		
	&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oType&lt;/SPAN&gt; = &lt;SPAN&gt;"Assembly"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"AppZoomSelectCmd"&lt;/SPAN&gt;)
		&lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"AppZoomAllCmd"&lt;/SPAN&gt;)		
	&lt;SPAN&gt;Else&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;oType&lt;/SPAN&gt; = &lt;SPAN&gt;"Part"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
		&lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"PartExtrudeCmd"&lt;/SPAN&gt;)	
		&lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"PartRevolveCmd"&lt;/SPAN&gt;)		
	&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;

	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oButtonDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;ButtonDefinition&lt;/SPAN&gt;
	&lt;SPAN&gt;For&lt;/SPAN&gt; &lt;SPAN&gt;Each&lt;/SPAN&gt; &lt;SPAN&gt;oItem&lt;/SPAN&gt; &lt;SPAN&gt;In&lt;/SPAN&gt; &lt;SPAN&gt;oButtonsList&lt;/SPAN&gt;
		&lt;SPAN&gt;oButtonDef&lt;/SPAN&gt; = &lt;SPAN&gt;oControlDefs&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;oItem&lt;/SPAN&gt;)		
		&lt;SPAN&gt;oPanel&lt;/SPAN&gt;.&lt;SPAN&gt;CommandControls&lt;/SPAN&gt;.&lt;SPAN&gt;AddButton&lt;/SPAN&gt;(&lt;SPAN&gt;oButtonDef&lt;/SPAN&gt;, &lt;SPAN&gt;False&lt;/SPAN&gt;)	
	&lt;SPAN&gt;Next&lt;/SPAN&gt;

&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 07:58:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12427773#M15856</guid>
      <dc:creator>JMGunnar</dc:creator>
      <dc:date>2023-12-08T07:58:28Z</dc:date>
    </item>
    <item>
      <title>Re: Button iLogic external</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12427908#M15857</link>
      <description>What version of Inventor are you using?</description>
      <pubDate>Fri, 08 Dec 2023 09:09:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12427908#M15857</guid>
      <dc:creator>bradeneuropeArthur</dc:creator>
      <dc:date>2023-12-08T09:09:35Z</dc:date>
    </item>
    <item>
      <title>Re: Button iLogic external</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12428355#M15858</link>
      <description>&lt;P&gt;Inventor 2024&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;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 13:00:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12428355#M15858</guid>
      <dc:creator>JMGunnar</dc:creator>
      <dc:date>2023-12-08T13:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: Button iLogic external</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12428755#M15859</link>
      <description>&lt;P&gt;There is no 'special' type of ControlDefinition that is just for iLogic rules...at least not yet, or not exposed to us.&amp;nbsp; They will just be a regular &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-ControlDefinition" target="_blank" rel="noopener"&gt;ControlDefinition&lt;/A&gt;, and will primarily be uses as a &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-ButtonDefinition" target="_blank" rel="noopener"&gt;ButtonDefinition&lt;/A&gt;.&amp;nbsp; But they are bundled into a &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=GUID-CommandCategory" target="_blank" rel="noopener"&gt;CommandCategory&lt;/A&gt;.&amp;nbsp; That same CommandCategory also has all other 'add-in' related ControlDefinitions and toolbars bundled into it though, which kind of sucks, in my opinion.&amp;nbsp; It would make things slightly easier to be able to just get them all in one pre-defined group.&amp;nbsp; However, if you loop through all ControlDefinitions, you will find that all of them for iLogic rules will have their name starting with "iLogic.Rule:".&amp;nbsp; After that portion of its name, will be any sub folder that the rule file is in, if at a lower level than the main external rules folder, then the name of the external rule file, with its file extension.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When we add them by code iLogic rule, I believe that they will only stay there during that session of Inventor, then will be gone again after restarting Inventor.&amp;nbsp; That is why folks use add-ins for customizing the user interface, because add-ins are designed to start when Inventor starts, then put all user interface stuff in place automatically each time.&amp;nbsp; If we add the iLogic rule buttons manually, using the customization dialog, then they will stay there permanently.&amp;nbsp; Attached is an iLogic rule I created a while back to 'inspect' an existing iLogic rule button that has been placed into the ribbon manually, initially just to see how everything was set by Autodesk behind the scenes.&amp;nbsp; As you can see, even that code is fairly long and complex.&amp;nbsp; One of the other codes I used to use before, for adding rules to the ribbon as buttons, was even longer and more complex.&amp;nbsp; But I wrote those rules before updating from Inventor 2022 directly to Inventor 2024, back when the manual process was not yet built-in, so the rule for adding a button it is no longer used for 2024 version.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 18:28:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12428755#M15859</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-12-08T18:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Button iLogic external</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12428785#M15860</link>
      <description>&lt;P&gt;You can add iLogic rules to ribbon:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ILogic-Button-01.jpg" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1302561iCBC4782DA94F69E1/image-size/large?v=v2&amp;amp;px=999" role="button" title="ILogic-Button-01.jpg" alt="ILogic-Button-01.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can make custom icon for each rule also.&amp;nbsp; I did one for "Flat Out".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another way is add rules to "Global Forms":&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ILogic-Button-02.jpg" style="width: 228px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1302562iD472C9B9D70AD4EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="ILogic-Button-02.jpg" alt="ILogic-Button-02.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The settings are inside "Design Data":&amp;nbsp;C:\Vault Workspace\Design Data\iLogic\UI\iLogicBrowserUiFormSpecification.xml&lt;/P&gt;&lt;P&gt;I put them in Vault and shared to other users.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 16:15:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12428785#M15860</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2023-12-08T16:15:49Z</dc:date>
    </item>
    <item>
      <title>Re: Button iLogic external</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12428845#M15861</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;There is no 'special' type of ControlDefinition that is just for iLogic rules...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, but the command does start with iLogic.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ILogic-Button-03.jpg" style="width: 726px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1302575i66F9CD09B86A6F0D/image-size/large?v=v2&amp;amp;px=999" role="button" title="ILogic-Button-03.jpg" alt="ILogic-Button-03.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;VBA Macro to list all Commands:&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub PrintCommandNames()

    Dim oControlDefs As ControlDefinitions
    Set oControlDefs = ThisApplication.CommandManager.ControlDefinitions

    Dim oControlDef As ControlDefinition
    
'replace ????? with user folder name    
Open "C:\Users\?????\Documents\CommandNames.txt" For Output As #1

    Print #1, Tab(10); "Command Name"; Tab(75); "Description"; vbNewLine
    
    For Each oControlDef In oControlDefs

        Print #1, oControlDef.InternalName; Tab(55); oControlDef.DescriptionText
        
    Next
    Close #1
End Sub​&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;</description>
      <pubDate>Fri, 08 Dec 2023 16:37:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12428845#M15861</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2023-12-08T16:37:29Z</dc:date>
    </item>
    <item>
      <title>Re: Button iLogic external</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12429108#M15862</link>
      <description>&lt;P&gt;Just posting a correction to something I said in Message 4.&amp;nbsp; I said "&lt;SPAN&gt;I believe that they will only stay there during that session of Inventor, then will be gone again after restarting Inventor."&amp;nbsp; Well, that was true according to my testing back while using Inventor 2022 and how the old version rules I was using at the time worked for that task.&amp;nbsp; However, apparently that is not the case when using some updated code with updated settings for use in 2024.&amp;nbsp; I copied one of my old rules, modified it a bit, ran it to add a rule to the ribbon, and it seemed to work better now.&amp;nbsp; Plus, the rule button is still there after closing Inventor, then restarting it.&amp;nbsp; But I did observe something odd.&amp;nbsp; Only the small button icon was visible where I placed it, even though when I added it by code, I specified True for the 'ShowText' parameter of the &lt;A href="https://help.autodesk.com/view/INVNTOR/2024/ENU/?guid=CommandControls_AddButton" target="_blank" rel="noopener"&gt;AddButton&lt;/A&gt; method.&amp;nbsp; And when I open the Customize dialog to review the buttons in that panel, the checkbox is checked in the Text column for that rule button.&amp;nbsp; To fix this oddity, I had to uncheck the box, then checked it again.&amp;nbsp; But at least the button stayed there, and still worked as designed, when clicked.&amp;nbsp; In this recent testing, I did not attempt to create any new RibbonTab or RibbonPanel, just added the button to an existing panel.&amp;nbsp; In my old tests, the new RibbonTabs and new RibbonPanels that were created by my rule were gone after restarting Inventor.&amp;nbsp; I have not tested that part again in 2024 yet though.&amp;nbsp; It would be nice if they simply included the ability to add tabs and panels to the Customize dialog.&amp;nbsp; I even created an &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/add-more-capabilities-to-the-customize-dialog-box-exe-add-tab/idi-p/9371747" target="_blank" rel="noopener"&gt;'Idea' post&lt;/A&gt; about it in the &lt;A href="https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232" target="_blank" rel="noopener"&gt;Inventor Ideas forum&lt;/A&gt; back in early 2020.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Edit:&amp;nbsp; I attached the updated rule I used in my recent testing, just for reference.&amp;nbsp; It contains some methods that are not currently being used, but they could be further developed and included, if needed.&amp;nbsp; I was using all of them in my old codes, when I was adding tabs &amp;amp; panels also.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2023 18:55:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12429108#M15862</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-12-08T18:55:16Z</dc:date>
    </item>
    <item>
      <title>Re: Button iLogic external</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12438129#M15863</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Thank's again&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Yes this is still not rember new Ribbon or Panel&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In my old tests, the new RibbonTabs and new RibbonPanels that were created by my rule were gone after restarting Inventor.&amp;nbsp; I have not tested that part again in 2024 yet though&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But this works&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To create a custom icon use:&lt;/STRONG&gt;&lt;BR /&gt;png format&lt;/P&gt;&lt;P&gt;16x16px or 32x32px&lt;/P&gt;&lt;P&gt;Must be put in the same folder as the Rule is stored&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;File name:&lt;/STRONG&gt;&lt;BR /&gt;&amp;lt;Form or rule name&amp;gt; . &amp;lt;Light or dark&amp;gt; . &amp;lt;Small or large&amp;gt; .png&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example: “Push Parameters.light.large.png”&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank's again&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7812054"&gt;@WCrihfield&lt;/a&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Dec 2023 09:24:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/button-ilogic-external/m-p/12438129#M15863</guid>
      <dc:creator>JMGunnar</dc:creator>
      <dc:date>2023-12-13T09:24:57Z</dc:date>
    </item>
  </channel>
</rss>

