<?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: Accessing Dirty Bits from API in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/accessing-dirty-bits-from-api/m-p/12800148#M167854</link>
    <description>&lt;P&gt;This is it! Thank you so much. I knew I was going to need to decompose some value but didn't know where it was stored (I was not aware of the "RecentChanges" property).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 27 May 2024 14:45:15 GMT</pubDate>
    <dc:creator>brady.deslippe</dc:creator>
    <dc:date>2024-05-27T14:45:15Z</dc:date>
    <item>
      <title>Accessing Dirty Bits from API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/accessing-dirty-bits-from-api/m-p/12799828#M167849</link>
      <description>&lt;P&gt;Is there any way to determine which bits are set for a dirty document? I can see dirty bits in the ctrl+d window (see picture). I want to access this information within the api for an addin. I.e. I want to be able to say "if dirty because of migration then..." or "if dirty from property edit then ..." etc.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="bradydeslippe_1-1716810178527.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1367767iE5E63CCF38BABF43/image-size/medium?v=v2&amp;amp;px=400" role="button" title="bradydeslippe_1-1716810178527.png" alt="bradydeslippe_1-1716810178527.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;For more context, we are upgrading our system and have quite the rabbit hole of customizations. I want to be able to catch certain dirtying events, or at least check which have occurred via this dirty bits entry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 11:44:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/accessing-dirty-bits-from-api/m-p/12799828#M167849</guid>
      <dc:creator>brady.deslippe</dc:creator>
      <dc:date>2024-05-27T11:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Dirty Bits from API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/accessing-dirty-bits-from-api/m-p/12800087#M167851</link>
      <description>&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-52286817-FBE8-4891-9909-C1FD6700AAEA" target="_blank"&gt;https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-52286817-FBE8-4891-9909-C1FD6700AAEA&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like the Ctrl-d has more dirty "reasons".&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub Main()
Dim oDoc As Document
Dim oCompDef As ComponentDefinition
Dim oModelStates As ModelStates
Dim oModelState As ModelState
Dim oOccu As ComponentOccurrence
Dim oOccuDef As ComponentDefinition
Dim oOccuDoc As Document
Dim CommandEnum As Integer

'break

oDoc = ThisDoc.Document
Logger.Info(oDoc.DisplayName &amp;amp; " Changed " &amp;amp; oDoc.RecentChanges)
CommandEnum = oDoc.RecentChanges
If (CommandEnum &amp;gt;= 1024) Then
	Logger.Info("View Rep Switch " &amp;amp; CommandEnum)
	CommandEnum = CommandEnum - 1024
End If
If (CommandEnum &amp;gt;= 512) Then
	Logger.Info("ModelState Switch " &amp;amp; CommandEnum)
	CommandEnum = CommandEnum - 512
End If
If (CommandEnum &amp;gt;= 256) Then
	Logger.Info("ModelState Update, dirty " &amp;amp; CommandEnum)
	CommandEnum = CommandEnum - 256
End If
If (CommandEnum &amp;gt;= 128) Then
	Logger.Info("File Format Change, dirty " &amp;amp; CommandEnum)
	CommandEnum = CommandEnum - 128
End If
If (CommandEnum &amp;gt;= 64) Then
	Logger.Info("Reference Change, dirty " &amp;amp; CommandEnum)
	CommandEnum = CommandEnum - 64
End If
If (CommandEnum &amp;gt;= 32) Then
	Logger.Info("NonShapeEdit, dirty " &amp;amp; CommandEnum)
	CommandEnum = CommandEnum - 32
End If
If (CommandEnum &amp;gt;= 16) Then
	Logger.Info("Reference File Change, dirty " &amp;amp; CommandEnum)
	CommandEnum = CommandEnum - 16
End If
If (CommandEnum &amp;gt;= 8) Then
	Logger.Info("Properties Change, dirty " &amp;amp; CommandEnum)
	CommandEnum = CommandEnum - 8
End If
If (CommandEnum &amp;gt;= 4) Then
	Logger.Info("File Op, dirty " &amp;amp; CommandEnum)
	CommandEnum = CommandEnum - 4
End If
If (CommandEnum &amp;gt;= 2) Then
	Logger.Info("Query " &amp;amp; CommandEnum)
	CommandEnum = CommandEnum - 2
End If
If (CommandEnum &amp;gt;= 1) Then
	Logger.Info("Geometry Change, dirty " &amp;amp; CommandEnum)
End If
End Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Mon, 27 May 2024 14:09:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/accessing-dirty-bits-from-api/m-p/12800087#M167851</guid>
      <dc:creator>Frederick_Law</dc:creator>
      <dc:date>2024-05-27T14:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Dirty Bits from API</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/accessing-dirty-bits-from-api/m-p/12800148#M167854</link>
      <description>&lt;P&gt;This is it! Thank you so much. I knew I was going to need to decompose some value but didn't know where it was stored (I was not aware of the "RecentChanges" property).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 14:45:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/accessing-dirty-bits-from-api/m-p/12800148#M167854</guid>
      <dc:creator>brady.deslippe</dc:creator>
      <dc:date>2024-05-27T14:45:15Z</dc:date>
    </item>
  </channel>
</rss>

