<?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 to add ilogic to event triggers in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/9242318#M104437</link>
    <description>&lt;P&gt;I'm trying to add and external rule to an event trigger as in the code previous in the tread. It looks like you had the same issue earlier?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Lars&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2020 09:07:25 GMT</pubDate>
    <dc:creator>LarsBJepsen</dc:creator>
    <dc:date>2020-01-10T09:07:25Z</dc:date>
    <item>
      <title>Ilogic to add ilogic to event triggers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/8633888#M95162</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does someon know if it's possible to add a ilogic rule to event triggers?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want to run an ilogic rule and when it's finished i want it to be added to event triger at part geometry change.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 08:31:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/8633888#M95162</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2019-03-04T08:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to add ilogic to event triggers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/8634201#M95184</link>
      <description>&lt;P&gt;search on inventor code injector&lt;/P&gt;
&lt;P&gt;&lt;A href="https://beinginventive.typepad.com/being-inventive/2012/02/injecting-ilogic-code-and-ilogic-event-triggers-automatically.html" target="_blank"&gt;https://beinginventive.typepad.com/being-inventive/2012/02/injecting-ilogic-code-and-ilogic-event-triggers-automatically.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 11:15:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/8634201#M95184</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2019-03-04T11:15:29Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to add ilogic to event triggers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/8634216#M95187</link>
      <description>&lt;P&gt;Thank you but I Already use that one. But I want to write a rule that does that specificaly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 11:24:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/8634216#M95187</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2019-03-04T11:24:06Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to add ilogic to event triggers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/8634354#M95194</link>
      <description>&lt;P&gt;the injector code is open, you can debug it.&lt;/P&gt;
&lt;P&gt;there are many comment lines explaning things.&lt;/P&gt;
&lt;P&gt;in the code you will find some code to set the events, but it is not so simple&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2019 12:37:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/8634354#M95194</guid>
      <dc:creator>HermJan.Otterman</dc:creator>
      <dc:date>2019-03-04T12:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to add ilogic to event triggers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/8642177#M95312</link>
      <description>&lt;P&gt;Hi, here is an example I hope it is useful, it is a rule that after executing is automatically added to event, in the category of geometry change. For your rule in particular, replace the text box with your rule, or with the subroutine you have. Regards!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;main&lt;/SPAN&gt;()
	
	
	
&lt;SPAN&gt;MessageBox&lt;/SPAN&gt;.&lt;SPAN&gt;Show&lt;/SPAN&gt;(&lt;SPAN&gt;"Example"&lt;/SPAN&gt;, &lt;SPAN&gt;"Title"&lt;/SPAN&gt;)






&lt;SPAN&gt;Events&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;

&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Events&lt;/SPAN&gt;
&lt;SPAN&gt;On&lt;/SPAN&gt; &lt;SPAN&gt;Error&lt;/SPAN&gt; &lt;SPAN&gt;Resume&lt;/SPAN&gt; &lt;SPAN&gt;Next&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;EventPropSet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySet&lt;/SPAN&gt;
	&lt;SPAN&gt;EventPropSet&lt;/SPAN&gt; = &lt;SPAN&gt;GetiLogicEventPropSet&lt;/SPAN&gt;(&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;)
	&lt;SPAN&gt;EventPropSet&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"Inicio"&lt;/SPAN&gt;, &lt;SPAN&gt;"PartBodyChanged "&lt;/SPAN&gt;, 1200)

&lt;SPAN&gt;'After Open Document					: AfterDocOpen                 		: 400&lt;/SPAN&gt;
&lt;SPAN&gt;'Close(Document)						: DocClose                     		: 500&lt;/SPAN&gt;
&lt;SPAN&gt;'Before Save Document                   : BeforeDocSave           			: 700&lt;/SPAN&gt;
&lt;SPAN&gt;'After Save Document               		: AfterDocSave               		: 800&lt;/SPAN&gt;
&lt;SPAN&gt;'Any Model Parameter Change        		: AfterAnyParamChange   			: 1000&lt;/SPAN&gt;
&lt;SPAN&gt;'Part Geometry Change**            		: PartBodyChanged         			: 1200&lt;/SPAN&gt;
&lt;SPAN&gt;'Material Change**                  	: AfterMaterialChange     			: 1400&lt;/SPAN&gt;
&lt;SPAN&gt;'Drawing View Change***               	: AfterDrawingViewsUpdate  			: 1500&lt;/SPAN&gt;
&lt;SPAN&gt;'iProperty(Change)                  	: AfterAnyiPropertyChange           : 1600&lt;/SPAN&gt;
&lt;SPAN&gt;'Feature Suppression Change**          	: AfterFeatureSuppressionChange   	: 2000&lt;/SPAN&gt;
&lt;SPAN&gt;'Component Suppression Change*   		: AfterComponentSuppressionChange 	: 2200&lt;/SPAN&gt;
&lt;SPAN&gt;'iPart / iAssembly Change Component* 	: AfterComponentReplace   			: 2400&lt;/SPAN&gt;
&lt;SPAN&gt;'New Document                         	: AfterDocNew                  		: 2600&lt;/SPAN&gt;

&lt;SPAN&gt;InventorVb&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentUpdate&lt;/SPAN&gt;()
	

&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;


&lt;SPAN&gt;Function&lt;/SPAN&gt; &lt;SPAN&gt;GetiLogicEventPropSet&lt;/SPAN&gt;(&lt;SPAN&gt;cDocument&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt;) &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySet&lt;/SPAN&gt;
	&lt;SPAN&gt;On&lt;/SPAN&gt; &lt;SPAN&gt;Error&lt;/SPAN&gt; &lt;SPAN&gt;Resume&lt;/SPAN&gt; &lt;SPAN&gt;Next&lt;/SPAN&gt;
		&lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt; = &lt;SPAN&gt;cDocument&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"iLogicEventsRules"&lt;/SPAN&gt;)
		
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
			&lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt; = &lt;SPAN&gt;cDocument&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"_iLogicEventsRules"&lt;/SPAN&gt;)
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
		
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt;.&lt;SPAN&gt;InternalName&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;"{2C540830-0723-455E-A8E2-891722EB4C3E}"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
			&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt;
			&lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt; = &lt;SPAN&gt;cDocument&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"iLogicEventsRules"&lt;/SPAN&gt;, &lt;SPAN&gt;"{2C540830-0723-455E-A8E2-891722EB4C3E}"&lt;/SPAN&gt;)
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
		
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
			&lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt; = &lt;SPAN&gt;cDocument&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"iLogicEventsRules"&lt;/SPAN&gt;, &lt;SPAN&gt;"{2C540830-0723-455E-A8E2-891722EB4C3E}"&lt;/SPAN&gt;)
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
		
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
			&lt;SPAN&gt;MsgBox&lt;/SPAN&gt; (&lt;SPAN&gt;"Unable to create the Event Triggers property for this file!"&lt;/SPAN&gt;, , &lt;SPAN&gt;"Event Triggers Not Set"&lt;/SPAN&gt;)
			&lt;SPAN&gt;Err&lt;/SPAN&gt;.&lt;SPAN&gt;Raise&lt;/SPAN&gt;(1)
			&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Function&lt;/SPAN&gt;
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	&lt;SPAN&gt;On&lt;/SPAN&gt; &lt;SPAN&gt;Error&lt;/SPAN&gt; &lt;SPAN&gt;GoTo&lt;/SPAN&gt; 0
	
	&lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Function&lt;/SPAN&gt;
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 08:43:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/8642177#M95312</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-03-07T08:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to add ilogic to event triggers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/8642342#M95320</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4253164"&gt;@Sergio.D.Suárez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you that was what i needed!!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 10:04:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/8642342#M95320</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2019-03-07T10:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to add ilogic to event triggers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/8740419#M96686</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/4253164"&gt;@Sergio.D.Suárez&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Do you know how to declare the same rule but for an external rule?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So i want to place an external rule in the event triggers now. But if i change the name to the name of the external one it's not working.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Apr 2019 16:09:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/8740419#M96686</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2019-04-18T16:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to add ilogic to event triggers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/9242280#M104435</link>
      <description>&lt;P&gt;Hi&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/5638374"&gt;@Charlies_3D_T&lt;/a&gt;&amp;nbsp; did you ever find a solution for declaring an external rule?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Lars&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 08:45:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/9242280#M104435</guid>
      <dc:creator>LarsBJepsen</dc:creator>
      <dc:date>2020-01-10T08:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to add ilogic to event triggers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/9242303#M104436</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7589458"&gt;@LarsBJepsen&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What do you want to do?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For example if i want to use an external rule is use this command:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN&gt;RunExternalRule&lt;/SPAN&gt;(&lt;SPAN&gt;"FlatPattern"&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But important for you is to set the settings inside inventor that it knows where you put your external rules.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 08:59:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/9242303#M104436</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2020-01-10T08:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to add ilogic to event triggers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/9242318#M104437</link>
      <description>&lt;P&gt;I'm trying to add and external rule to an event trigger as in the code previous in the tread. It looks like you had the same issue earlier?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/Lars&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2020 09:07:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/9242318#M104437</guid>
      <dc:creator>LarsBJepsen</dc:creator>
      <dc:date>2020-01-10T09:07:25Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to add ilogic to event triggers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/9242420#M104440</link>
      <description>&lt;P&gt;This is the solution normaly:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Sub&lt;/SPAN&gt; &lt;SPAN&gt;Events&lt;/SPAN&gt;
	&lt;SPAN&gt;On&lt;/SPAN&gt; &lt;SPAN&gt;Error&lt;/SPAN&gt; &lt;SPAN&gt;Resume&lt;/SPAN&gt; &lt;SPAN&gt;Next&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;EventPropSet&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySet&lt;/SPAN&gt;
	&lt;SPAN&gt;EventPropSet&lt;/SPAN&gt; = &lt;SPAN&gt;GetiLogicEventPropSet&lt;/SPAN&gt;(&lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;)
		
	&lt;SPAN&gt;' To make sure that the document has an iLogic DocumentInterest, add a temporary rule&lt;/SPAN&gt;
	&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;tempRule&lt;/SPAN&gt; = &lt;SPAN&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN&gt;Automation&lt;/SPAN&gt;.&lt;SPAN&gt;AddRule&lt;/SPAN&gt;(&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;, &lt;SPAN&gt;"TemporaryRule_392856A2"&lt;/SPAN&gt;, &lt;SPAN&gt;""&lt;/SPAN&gt;)

	&lt;SPAN&gt;EventPropSet&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"file://FlatPattern"&lt;/SPAN&gt;, &lt;SPAN&gt;"PartBodyChanged"&lt;/SPAN&gt;, 1250)
	&lt;SPAN&gt;iLogicVb&lt;/SPAN&gt;.&lt;SPAN&gt;Automation&lt;/SPAN&gt;.&lt;SPAN&gt;DeleteRule&lt;/SPAN&gt;(&lt;SPAN&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN&gt;Document&lt;/SPAN&gt;, &lt;SPAN&gt;tempRule&lt;/SPAN&gt;.&lt;SPAN&gt;Name&lt;/SPAN&gt;)

&lt;SPAN&gt;'After Open Document					: AfterDocOpen                 		: 400&lt;/SPAN&gt;
&lt;SPAN&gt;'Close(Document)						: DocClose                     		: 500&lt;/SPAN&gt;
&lt;SPAN&gt;'Before Save Document                   : BeforeDocSave           			: 700&lt;/SPAN&gt;
&lt;SPAN&gt;'After Save Document               		: AfterDocSave               		: 800&lt;/SPAN&gt;
&lt;SPAN&gt;'Any Model Parameter Change        		: AfterAnyParamChange   			: 1000&lt;/SPAN&gt;
&lt;SPAN&gt;'Part Geometry Change**            		: PartBodyChanged         			: 1200&lt;/SPAN&gt;
&lt;SPAN&gt;'Material Change**                  	: AfterMaterialChange     			: 1400&lt;/SPAN&gt;
&lt;SPAN&gt;'Drawing View Change***               	: AfterDrawingViewsUpdate  			: 1500&lt;/SPAN&gt;
&lt;SPAN&gt;'iProperty(Change)                  	: AfterAnyiPropertyChange           : 1600&lt;/SPAN&gt;
&lt;SPAN&gt;'Feature Suppression Change**          	: AfterFeatureSuppressionChange   	: 2000&lt;/SPAN&gt;
&lt;SPAN&gt;'Component Suppression Change*   		: AfterComponentSuppressionChange 	: 2200&lt;/SPAN&gt;
&lt;SPAN&gt;'iPart / iAssembly Change Component* 	: AfterComponentReplace   			: 2400&lt;/SPAN&gt;
&lt;SPAN&gt;'New Document                         	: AfterDocNew                  		: 2600&lt;/SPAN&gt;

&lt;SPAN&gt;InventorVb&lt;/SPAN&gt;.&lt;SPAN&gt;DocumentUpdate&lt;/SPAN&gt;()
	

&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Sub&lt;/SPAN&gt;


&lt;SPAN&gt;Function&lt;/SPAN&gt; &lt;SPAN&gt;GetiLogicEventPropSet&lt;/SPAN&gt;(&lt;SPAN&gt;cDocument&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Document&lt;/SPAN&gt;) &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;Inventor&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySet&lt;/SPAN&gt;
	&lt;SPAN&gt;On&lt;/SPAN&gt; &lt;SPAN&gt;Error&lt;/SPAN&gt; &lt;SPAN&gt;Resume&lt;/SPAN&gt; &lt;SPAN&gt;Next&lt;/SPAN&gt;
		&lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt; = &lt;SPAN&gt;cDocument&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"iLogicEventsRules"&lt;/SPAN&gt;)
		
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
			&lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt; = &lt;SPAN&gt;cDocument&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Item&lt;/SPAN&gt;(&lt;SPAN&gt;"_iLogicEventsRules"&lt;/SPAN&gt;)
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
		
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt;.&lt;SPAN&gt;InternalName&lt;/SPAN&gt; &amp;lt;&amp;gt; &lt;SPAN&gt;"{2C540830-0723-455E-A8E2-891722EB4C3E}"&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
			&lt;SPAN&gt;Call&lt;/SPAN&gt; &lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt;.&lt;SPAN&gt;Delete&lt;/SPAN&gt;
			&lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt; = &lt;SPAN&gt;cDocument&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"iLogicEventsRules"&lt;/SPAN&gt;, &lt;SPAN&gt;"{2C540830-0723-455E-A8E2-891722EB4C3E}"&lt;/SPAN&gt;)
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
		
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
			&lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt; = &lt;SPAN&gt;cDocument&lt;/SPAN&gt;.&lt;SPAN&gt;PropertySets&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"iLogicEventsRules"&lt;/SPAN&gt;, &lt;SPAN&gt;"{2C540830-0723-455E-A8E2-891722EB4C3E}"&lt;/SPAN&gt;)
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
		
		&lt;SPAN&gt;If&lt;/SPAN&gt; &lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt; &lt;SPAN&gt;Is&lt;/SPAN&gt; &lt;SPAN&gt;Nothing&lt;/SPAN&gt; &lt;SPAN&gt;Then&lt;/SPAN&gt;
			&lt;SPAN&gt;MsgBox&lt;/SPAN&gt; (&lt;SPAN&gt;"Unable to create the Event Triggers property for this file!"&lt;/SPAN&gt;, , &lt;SPAN&gt;"Event Triggers Not Set"&lt;/SPAN&gt;)
			&lt;SPAN&gt;Err&lt;/SPAN&gt;.&lt;SPAN&gt;Raise&lt;/SPAN&gt;(1)
			&lt;SPAN&gt;Exit&lt;/SPAN&gt; &lt;SPAN&gt;Function&lt;/SPAN&gt;
		&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;
	&lt;SPAN&gt;On&lt;/SPAN&gt; &lt;SPAN&gt;Error&lt;/SPAN&gt; &lt;SPAN&gt;GoTo&lt;/SPAN&gt; 0
	
	&lt;SPAN&gt;Return&lt;/SPAN&gt; &lt;SPAN&gt;iLogicEventPropSet&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;Function&lt;/SPAN&gt;
&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jan 2020 09:33:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/9242420#M104440</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2020-01-10T09:33:07Z</dc:date>
    </item>
    <item>
      <title>Re: Ilogic to add ilogic to event triggers</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/11435709#M142901</link>
      <description>&lt;P&gt;Hi Sergio,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you very much for that great code snippet. I'm new in VBA so how do I need to modify your snippet in case of I need to add multiple triggers? I think I need something like a loop to get this result (that is defined in my new Template).&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support/tipps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Br&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Guido&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="guidooverath_2-1663755644338.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1118698i0247F535828EE6B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="guidooverath_2-1663755644338.png" alt="guidooverath_2-1663755644338.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Sep 2022 10:21:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/ilogic-to-add-ilogic-to-event-triggers/m-p/11435709#M142901</guid>
      <dc:creator>guido_overath</dc:creator>
      <dc:date>2022-09-21T10:21:27Z</dc:date>
    </item>
  </channel>
</rss>

