<?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: IsModified set with CustomGraphics bug, Workaround? in Fusion API and Scripts Forum</title>
    <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/ismodified-set-with-customgraphics-bug-workaround/m-p/11232435#M5886</link>
    <description>&lt;P&gt;No. I don't believe there is a workaround.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Jun 2022 19:14:37 GMT</pubDate>
    <dc:creator>BrianEkins</dc:creator>
    <dc:date>2022-06-13T19:14:37Z</dc:date>
    <item>
      <title>IsModified set with CustomGraphics bug, Workaround?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/ismodified-set-with-customgraphics-bug-workaround/m-p/11229027#M5883</link>
      <description>&lt;P&gt;The value of app.activeDocument.isModified goes from False to True as a side effect of executing the two statements below that add a new empty customGraphicsGroup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;rootComponent&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;_design&lt;/SPAN&gt;&lt;SPAN&gt;.rootComponent &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;_graphics&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;rootComponent&lt;/SPAN&gt;&lt;SPAN&gt;.customGraphicsGroups.add()&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like a bug, but particularly odd since custom graphics are not saved with the document anyway, as I understand it. Even more puzzling is that this happens during ExecutePreview in an add-in, so you might hope that this side effect would get rolled back when the pending transaction gets aborted, but it doesn't. Further, the document is left in a state where its isModified is True but there is nothing in the Undo list.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a workaround for this? isModified is is a getter with no associated setter so just changing it back is apparently off the table.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;For clarity, the variable app is set to&amp;nbsp;&lt;SPAN&gt;adsk&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;core&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Application&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;get&lt;/SPAN&gt;&lt;SPAN&gt;().&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2022 17:58:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/ismodified-set-with-customgraphics-bug-workaround/m-p/11229027#M5883</guid>
      <dc:creator>SendItCNC</dc:creator>
      <dc:date>2022-06-11T17:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: IsModified set with CustomGraphics bug, Workaround?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/ismodified-set-with-customgraphics-bug-workaround/m-p/11232381#M5884</link>
      <description>&lt;P&gt;It seems like there are two separate problems here.&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Creating or editing custom graphics causes the document to be modified.&lt;/LI&gt;&lt;LI&gt;Aborting a command, causes the document to be modified.&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Custom graphics are API-specific functionality and there may be something that can be done internally to not set the document to be modified. The API team will need to investigate it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The fact that canceling a command leaves the document modified also seems to be a problem, but I don't believe is API specific. If you start the &lt;STRONG&gt;Create Box&lt;/STRONG&gt; command and go through the steps to create a box but Cancel the dialog before creating the box, the document is set as modified. This indicates to me that it is a general Fusion issue and not specific to the API. Some commands behave as expected and some modify the document. I think it depends on what the command is doing in the preview. I agree this is also a problem but is much deeper than the API and will likely be more difficult to fix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It's interesting that this hasn't been reported before. I think in typical workflows users are editing designs so they're already in a modified state or will be at some time during the session, so this problem isn't noticed. It's only in very specific workflows that it is a problem. I don't know what you're doing, but an example would be an add-in that provides some type of advancement measurements. It's only querying the model but may be drawing custom graphics to show the results. In this case, it's unexpected to have Fusion prompt to save the document when it's closed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll coordinate to make sure bugs are logged to track this but I don't know how it will be prioritized in the backlogs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 18:54:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/ismodified-set-with-customgraphics-bug-workaround/m-p/11232381#M5884</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2022-06-13T18:54:55Z</dc:date>
    </item>
    <item>
      <title>Re: IsModified set with CustomGraphics bug, Workaround?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/ismodified-set-with-customgraphics-bug-workaround/m-p/11232412#M5885</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5741855"&gt;@BrianEkins&lt;/a&gt;&amp;nbsp;Thanks. I appreciate the insight.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do you know of any workaround to "unset" isModified from the API?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 19:01:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/ismodified-set-with-customgraphics-bug-workaround/m-p/11232412#M5885</guid>
      <dc:creator>SendItCNC</dc:creator>
      <dc:date>2022-06-13T19:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: IsModified set with CustomGraphics bug, Workaround?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/ismodified-set-with-customgraphics-bug-workaround/m-p/11232435#M5886</link>
      <description>&lt;P&gt;No. I don't believe there is a workaround.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2022 19:14:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/ismodified-set-with-customgraphics-bug-workaround/m-p/11232435#M5886</guid>
      <dc:creator>BrianEkins</dc:creator>
      <dc:date>2022-06-13T19:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: IsModified set with CustomGraphics bug, Workaround?</title>
      <link>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/ismodified-set-with-customgraphics-bug-workaround/m-p/13080579#M5887</link>
      <description>&lt;P&gt;This bug is still present in 2024. I'm intending to draw some temporary information on the screen, so one use case is for a user to only open and view a design.&lt;/P&gt;</description>
      <pubDate>Sat, 12 Oct 2024 11:47:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/fusion-api-and-scripts-forum/ismodified-set-with-customgraphics-bug-workaround/m-p/13080579#M5887</guid>
      <dc:creator>thomasa88</dc:creator>
      <dc:date>2024-10-12T11:47:19Z</dc:date>
    </item>
  </channel>
</rss>

