<?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 Part Geometry Change event trigger not available as default in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8693462#M77320</link>
    <description>&lt;P&gt;After all these years of using Inventor I'm finally getting round to using iLogic to make life easier. So far so good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've got a fairly simple routine that runs and I want it to be refreshed every time a part has any change that would affect its mass, this includes material change, parameter change and also more importantly, geometry change (e.g. add a chamfer or drill a hole).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Event Triggers dialog, there are default tabs for parts/assemblies etc. and also a tab for "This Document".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "This Document" tab has an event called "Part Geometry Change" which does exactly what I want. Unfortunately, isn't available in the "Parts" tab. Is there a reason for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could add the rule to the Part Geometry Change event in my ipt template so that all future parts I create run the rule, but I'd like to add it as a default so that it runs even on old parts when they're opened.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I missing something obvious? It seems strange that "This Document" (when in a part file) would have different options to "Parts".&lt;/P&gt;
&lt;P&gt;Any ideas appreciated.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Mar 2019 12:06:09 GMT</pubDate>
    <dc:creator>Rory_M</dc:creator>
    <dc:date>2019-03-29T12:06:09Z</dc:date>
    <item>
      <title>Part Geometry Change event trigger not available as default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8693462#M77320</link>
      <description>&lt;P&gt;After all these years of using Inventor I'm finally getting round to using iLogic to make life easier. So far so good.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've got a fairly simple routine that runs and I want it to be refreshed every time a part has any change that would affect its mass, this includes material change, parameter change and also more importantly, geometry change (e.g. add a chamfer or drill a hole).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the Event Triggers dialog, there are default tabs for parts/assemblies etc. and also a tab for "This Document".&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The "This Document" tab has an event called "Part Geometry Change" which does exactly what I want. Unfortunately, isn't available in the "Parts" tab. Is there a reason for this?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I could add the rule to the Part Geometry Change event in my ipt template so that all future parts I create run the rule, but I'd like to add it as a default so that it runs even on old parts when they're opened.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I missing something obvious? It seems strange that "This Document" (when in a part file) would have different options to "Parts".&lt;/P&gt;
&lt;P&gt;Any ideas appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 12:06:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8693462#M77320</guid>
      <dc:creator>Rory_M</dc:creator>
      <dc:date>2019-03-29T12:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: Part Geometry Change event trigger not available as default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8693538#M77321</link>
      <description>&lt;P&gt;Hello, do you have the rule embedded in a part, assembly or drawing file?&lt;BR /&gt;The event exists in the part document because it has geometry, the assembly has no geometry, contains components and these have geometry.&lt;BR /&gt;The drawing does not have geometry either, that's why this event does not appear.&lt;BR /&gt;If you have a part file you must place this document and add the event there.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 12:38:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8693538#M77321</guid>
      <dc:creator>Sergio.D.Suárez</dc:creator>
      <dc:date>2019-03-29T12:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Part Geometry Change event trigger not available as default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8694173#M77322</link>
      <description>&lt;P&gt;The rule is external, but I want it to run in all part files.&lt;/P&gt;
&lt;P&gt;I know that parts, assemblies and drawings have different options, I'm looking to run this in part files only via the "Parts" tab in the Event Triggers dialog box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The problem is that the specific trigger that I want to use is missing from the "Parts" tab, and only appears in the "This Document" tab. This means that I can't set it as a rule for all parts.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See attached image, hopefully it will clarify.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ilogic.png" style="width: 910px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/620066i369E1A6B5941D193/image-size/large?v=v2&amp;amp;px=999" role="button" title="ilogic.png" alt="ilogic.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Mar 2019 16:07:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8694173#M77322</guid>
      <dc:creator>Rory_M</dc:creator>
      <dc:date>2019-03-29T16:07:08Z</dc:date>
    </item>
    <item>
      <title>Re: Part Geometry Change event trigger not available as default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8697826#M77323</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/785180"&gt;@Rory_M&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In external rule, follow below iLogic code syntax.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Sub Main()
	If ThisApplication.ActiveDocument.DocumentTYpe = DocumentTypeEnum.kPartDocumentObject Then
		'Your iLogic code to execute only in part document
	Else
		Exit Sub 
	End If 
End Sub&lt;/PRE&gt;
&lt;P&gt;Thanks and regards,&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 09:36:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8697826#M77323</guid>
      <dc:creator>chandra.shekar.g</dc:creator>
      <dc:date>2019-04-01T09:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: Part Geometry Change event trigger not available as default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8697976#M77324</link>
      <description>&lt;P&gt;Hi Chandra, thanks for the reply, it's much appreciated - Unfortunately I think you've misunderstood my question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your code snippet ensures that an iLogic rule runs in part files only.&amp;nbsp;I know how to do this, I've already got this functionality in my external rule.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My question is regarding an event trigger that is available under the "This Document" tab when a part is opened, but is missing from the "Parts" tab.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Why is there a difference in the triggers available between the "This Document" tab (when a part is opened) and the "Parts" tab? I'd expect them to be identical.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What I want to do is to run my external rule when the "Part Geometry Change" event is triggered.&lt;/P&gt;
&lt;P&gt;I want this event trigger to exist in every part file I open or create.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can add the event trigger to the "This Document" tab in my template. This fixes the problem with new files but doesn't help with old files that I open.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 10:52:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8697976#M77324</guid>
      <dc:creator>Rory_M</dc:creator>
      <dc:date>2019-04-01T10:52:56Z</dc:date>
    </item>
    <item>
      <title>Re: Part Geometry Change event trigger not available as default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8698860#M77325</link>
      <description>&lt;P&gt;We could provide this event for all parts in a future release. Could you enter this as an idea on&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/idb-p/v1232" target="_blank" rel="noopener"&gt;Inventor Ideas&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;This iLogic event is a wrapper around the PartEvents object in the API. That object is attached to a PartComponentDefinition object, which is accessible from a PartDocument object. So internally, we have to add code to attach an event handler to every part document object in the session.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 16:05:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8698860#M77325</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2019-04-01T16:05:29Z</dc:date>
    </item>
    <item>
      <title>Re: Part Geometry Change event trigger not available as default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8699618#M77326</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/537534"&gt;@MjDeck&lt;/a&gt;&amp;nbsp;for the reply, hopefully we'll see improvements in the future.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In the meantime I've added it to Ideastation as requested, feel free to upvote:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/inventor-ideas/ilogic-event-triggers-make-them-consistent/idi-p/8699614" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-ideas/ilogic-event-triggers-make-them-consistent/idi-p/8699614&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Apr 2019 20:27:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/8699618#M77326</guid>
      <dc:creator>Rory_M</dc:creator>
      <dc:date>2019-04-01T20:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Part Geometry Change event trigger not available as default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/10670770#M77327</link>
      <description>&lt;P&gt;Hi Rory_M,&lt;/P&gt;&lt;P&gt;Did you ever get a solution to this problem?&amp;nbsp; I am going through the exact same thing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards, Janek&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 15:32:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/10670770#M77327</guid>
      <dc:creator>JanekPop</dc:creator>
      <dc:date>2021-10-06T15:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: Part Geometry Change event trigger not available as default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/10681705#M77328</link>
      <description>&lt;P&gt;This has not changed as far as I am aware. A work around would be to either place the rule as an internal rule and perhaps in the template or&amp;nbsp; use an internal rule to trigger an external rule. It really depends on what files you need to process.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Oct 2021 00:05:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/10681705#M77328</guid>
      <dc:creator>A.Acheson</dc:creator>
      <dc:date>2021-10-12T00:05:23Z</dc:date>
    </item>
    <item>
      <title>Re: Part Geometry Change event trigger not available as default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/11707756#M77329</link>
      <description>&lt;P&gt;2023 and still not implemented. What a joke. Did anyone manage to find a workaround to this ?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 15:44:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/11707756#M77329</guid>
      <dc:creator>rdhillon6HET8</dc:creator>
      <dc:date>2023-01-26T15:44:21Z</dc:date>
    </item>
    <item>
      <title>Re: Part Geometry Change event trigger not available as default</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/11707959#M77330</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/12014149"&gt;@rdhillon6HET8&lt;/a&gt;.&amp;nbsp; Probably the most effective workaround for this issue would be to create your own custom event handler code, and include it within your own Inventor &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=ApplicationAddIn" target="_blank" rel="noopener"&gt;ApplicationAddIn&lt;/A&gt;, that way it would load with the other add-ins when Inventor loads, so it will already be working for you in the background.&amp;nbsp; The basis for the 'event' named "Part Geometry Change", listed in the Event Triggers dialog, is the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=PartEvents_OnSurfaceBodyChanged" target="_blank" rel="noopener"&gt;PartEvents.OnSurfaceBodyChanged&lt;/A&gt;.&amp;nbsp; And you can read more about how to create your own event handler code in the article at the following link, but this article was written with iLogic in mind, not necessarily Visual Studio, which is what most folks use for creating add-ins.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/community/article/348361" target="_blank" rel="noopener"&gt;Create &amp;amp; Use Event Handler(s) (Triggers) In iLogic Rule Other Than Ones In Event Triggers Dialog&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Jan 2023 17:03:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/part-geometry-change-event-trigger-not-available-as-default/m-p/11707959#M77330</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-01-26T17:03:09Z</dc:date>
    </item>
  </channel>
</rss>

