<?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: Adding external rule to event trigger in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783887#M76394</link>
    <description>&lt;P&gt;Do you have a rule or program that can find the parts that should have the flat pattern event trigger added to them?&lt;/P&gt;</description>
    <pubDate>Fri, 10 May 2019 17:06:55 GMT</pubDate>
    <dc:creator>MjDeck</dc:creator>
    <dc:date>2019-05-10T17:06:55Z</dc:date>
    <item>
      <title>Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8757185#M76381</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does someone know how to declare an external rule to be added to event triggers?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is a piece of the ilogic for a local ilogic rule.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;EventPropSet&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"RULE TO Trigger"&lt;/SPAN&gt;, &lt;SPAN&gt;"PartBodyChanged "&lt;/SPAN&gt;, 1200)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This doesn't work with external rules...&amp;nbsp;&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;EventPropSet&lt;/SPAN&gt;.&lt;SPAN&gt;Add&lt;/SPAN&gt;(&lt;SPAN&gt;"RULE TO Trigger"&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;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 27 Apr 2019 13:39:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8757185#M76381</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2019-04-27T13:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8760286#M76382</link>
      <description>&lt;P&gt;External rules are identified by the adding "file://" in front of the rule name. Here's a sample:&lt;/P&gt;
&lt;PRE&gt;Sub Main()	
	Dim EventPropSet As Inventor.PropertySet
	EventPropSet = GetiLogicEventPropSet(ThisApplication.ActiveDocument)
	
	Call ListiProps(EventPropSet)
	
	' To make sure that the document has an iLogic DocumentInterest, add a temporary rule
	Dim tempRule = iLogicVb.Automation.AddRule(ThisDoc.Document, "TemporaryRule_392856A2", "")
	
	EventPropSet.Add("file://SampleExternalRule", "BeforeDocSave0", 700)
	iLogicVb.Automation.DeleteRule(ThisDoc.Document, tempRule.Name)
	
	Call ListiProps(EventPropSet)
End Sub
&lt;/PRE&gt;
&lt;P&gt;The temporary rule trick is required for documents that have no rules or event triggers.&lt;/P&gt;
&lt;P&gt;Note: it's not a good idea to use absolute file paths for external rules. It's better to either put them in your project workspace, or set up a separate directory (using the iLogic Configuration command, which is on a dropdown under Tools &amp;gt; Options).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In Inventor 2018.1 and later, you can set event triggers to run external rules on all documents. This is often better than adding&amp;nbsp;event triggers to each individual document.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Apr 2019 17:31:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8760286#M76382</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-04-29T17:31:13Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8782668#M76383</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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for your help. But for the moment i don't get it to work. And i can't figuring out why.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My external rules are in one directory and i can access them from each part or drawing. But i can't get the rule to be placed in the event triggers.&amp;nbsp;&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://Drawing - Auto_AUTOCAD_DWG"&lt;/SPAN&gt;, &lt;SPAN&gt;"BeforeDocSave0"&lt;/SPAN&gt;, 700)
	&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;iLogicVb&lt;/SPAN&gt;.&lt;SPAN&gt;UpdateWhenDone&lt;/SPAN&gt; = &lt;SPAN&gt;True&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 May 2019 08:04:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8782668#M76383</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2019-05-10T08:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783764#M76384</link>
      <description>&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;, are you using Inventor 2018.1 or later?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 16:12:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783764#M76384</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-05-10T16:12:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783831#M76385</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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes i have 2019.3 at the moment...&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 16:45:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783831#M76385</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2019-05-10T16:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783845#M76386</link>
      <description>&lt;P&gt;In 2019, you can set an external rule to run on all drawings. That's an alternative to adding a trigger to individual drawing documents.&lt;BR /&gt;Does that meet your requirements?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 16:49:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783845#M76386</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-05-10T16:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783849#M76387</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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No it doesn't. I really need to activate a rule after that all my drawings are made and then i need to activate it and past it in the event triggers so that when i make a change to a drawing it uses the rule again.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your fast response.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 16:51:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783849#M76387</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2019-05-10T16:51:51Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783858#M76388</link>
      <description>&lt;P&gt;What does the rule do?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 16:56:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783858#M76388</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-05-10T16:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783860#M76389</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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;it's just a simple AUTOCAD DWG export.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But with specific naming.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 16:57:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783860#M76389</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2019-05-10T16:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783867#M76390</link>
      <description>&lt;P&gt;And you want it to run for all drawings?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 16:59:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783867#M76390</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-05-10T16:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783871#M76391</link>
      <description>&lt;P&gt;Yes thats also a question i asked on the forum. And someon from autodesk fixed that for me. But now i want to add the external rule to the triggers. But i want to use the add for external rules for other rules i use also.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 17:00:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783871#M76391</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2019-05-10T17:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783879#M76392</link>
      <description>&lt;P&gt;If you want it to run for all drawings, why not add it on the Drawings tab in the Event Triggers dialog? Then you don't need to add it to each document.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 17:03:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783879#M76392</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-05-10T17:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783884#M76393</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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the AUTOCAD it's an option. But i also have a flatpattern rule and that has to be activated en added to the event triggers in specific parts. So i would need to fix this issue that i have now.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 17:04:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783884#M76393</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2019-05-10T17:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783887#M76394</link>
      <description>&lt;P&gt;Do you have a rule or program that can find the parts that should have the flat pattern event trigger added to them?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 17:06:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783887#M76394</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-05-10T17:06:55Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783889#M76395</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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;No i do the flatpattern manual so i open the part activate the rule and at the same time i has to be placed in the event trigger so that when i change something to the part it does the rule again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 17:08:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783889#M76395</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2019-05-10T17:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783897#M76396</link>
      <description>&lt;P&gt;Ok, so you just want to automate the process of adding an event trigger to a single document?&lt;BR /&gt;You will decide you want to run a rule in that document.&lt;BR /&gt;Then you run it.&lt;BR /&gt;Then you run a separate rule to add an event trigger to run it automatically.&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 17:13:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783897#M76396</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-05-10T17:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783900#M76397</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;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes or I add the place rule to trigger in the rule I run. And This works with a local rule but the external rule is not place in the trigger and i don't know why.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 17:16:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783900#M76397</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2019-05-10T17:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783910#M76398</link>
      <description>&lt;P&gt;The problem with putting it in the same rule is that it has to check if the trigger already exists before adding it again. You don't want the rule to run twice (or more) every time the event happens.&amp;nbsp;&lt;BR /&gt;That makes the code more complicated.&lt;BR /&gt;&lt;BR /&gt;A related question: is your External Rules directory set up in the Tools &amp;gt; Options &amp;gt; iLogic Configuration dialog?&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 17:18:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783910#M76398</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-05-10T17:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783915#M76399</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;YEs it is. I have 2 sub directories one for drawings and one for parts and ass.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SO if you say it's beter to use an second rule to place it in event triggers then I make a second one that is called when I run for example the flatpattern rule. And in the second rule can we add a check if it Already is in the event triggers? A'd if it is do not hing and otherwise place ut in the event trigger?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is This something you can help me with?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 May 2019 17:21:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783915#M76399</guid>
      <dc:creator>Charlies_3D_T</dc:creator>
      <dc:date>2019-05-10T17:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Adding external rule to event trigger</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783935#M76400</link>
      <description>&lt;P&gt;Yes, I think I can help.&lt;BR /&gt;iLogic won't search for external rules in subdirectories. Since you have drawing rules in a subdirectory, please include the subdirectory name in this line of code:&lt;/P&gt;
&lt;PRE&gt;EventPropSet.Add("file://Drawing - Auto_AUTOCAD_DWG", "BeforeDocSave0", 700)&lt;/PRE&gt;
&lt;P&gt;Change it to something like this:&lt;/P&gt;
&lt;PRE&gt;EventPropSet.Add("file://Drawing Rules\Drawing - Auto_AUTOCAD_DWG", "BeforeDocSave0", 700)&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 May 2019 17:30:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/adding-external-rule-to-event-trigger/m-p/8783935#M76400</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-05-10T17:30:22Z</dc:date>
    </item>
  </channel>
</rss>

