<?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: IUpdater does not work? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/11271717#M18238</link>
    <description>&lt;P&gt;Yes, that's exactly what I'm doing.&amp;nbsp; If the parameter should be checked against information in the family or model, you can just check on&amp;nbsp;&lt;EM&gt;GetChangeTypeAny().&amp;nbsp;&amp;nbsp;&lt;/EM&gt;If you need to compare against an old parameter value, you can use a storage schema:&amp;nbsp;&lt;A href="https://thebuildingcoder.typepad.com/blog/2011/04/extensible-storage.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2011/04/extensible-storage.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Jul 2022 14:26:57 GMT</pubDate>
    <dc:creator>Kevin.Lawson.PE</dc:creator>
    <dc:date>2022-07-01T14:26:57Z</dc:date>
    <item>
      <title>IUpdater does not work?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/11264539#M18234</link>
      <description>&lt;P&gt;Hello Devs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I create an application to test when the &lt;EM&gt;IUpdater&lt;/EM&gt; is triggered and what &lt;EM&gt;BuiltInParameter&lt;/EM&gt; was the source of the trigger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the video about the plugin and the &lt;EM&gt;IUpdater&lt;/EM&gt; problems.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FMg_2_C8w-LM%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DMg_2_C8w-LM&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FMg_2_C8w-LM%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="200" height="112" scrolling="no" title="IUpdater does not work with some BuiltInParameter - English" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By default, the application adds all the &lt;EM&gt;BuiltInParameter&lt;/EM&gt; on the &lt;EM&gt;IUpdater&lt;/EM&gt; trigger.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Some parameters trigger normally and others do not trigger... Maybe &lt;EM&gt;IUpdater&lt;/EM&gt; does not work with all &lt;EM&gt;BuiltInParameter&lt;/EM&gt; in Revit. Maybe is a feature not a bug.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another thing I test was in Revit 2023 and I noticed the parameter &lt;EM&gt;BuiltInParameter.LEADER_LINE&lt;/EM&gt; stop triggering.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FTGOhVcOiHI8%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DTGOhVcOiHI8&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FTGOhVcOiHI8%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="200" height="112" scrolling="no" title="Leader Line does not Trigger - English" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now I'm worried to use &lt;EM&gt;IUpdater&lt;/EM&gt; with parameters, my application could break if I use a parameter that decides to stop triggering in Revit 2024 for some reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is some &lt;EM&gt;BuiltInParameter&lt;/EM&gt; that does not trigger using &lt;EM&gt;IUpdater&lt;/EM&gt;.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;BuiltInParameter.ELEMENT_LOCKED_PARAM
BuiltInParameter.TAG_LEADER_TYPE
BuiltInParameter.LEADER_LINE (Revit 2023)&lt;/LI-CODE&gt;&lt;P&gt;This list is what I found but testing manually, I am pretty sure has more &lt;EM&gt;BuiltInParameter &lt;/EM&gt;that does not trigger by &lt;EM&gt;IUpdater&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you what to download and test the application: &lt;A href="https://github.com/ricaun-io/RevitAddin.UpdaterTester" target="_blank"&gt;https://github.com/ricaun-io/RevitAddin.UpdaterTester&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Related Posts:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/unpin-command-binding-ribbon-vs-toggle/td-p/11246327" target="_blank"&gt;Unpin Command Binding - Ribbon vs Toggle&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;See yaa!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 17:29:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/11264539#M18234</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2022-06-28T17:29:57Z</dc:date>
    </item>
    <item>
      <title>Re: IUpdater does not work?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/11264806#M18235</link>
      <description>&lt;P&gt;Yes, Some parameters don't have the proper reporting mechanisms implemented.&amp;nbsp;Autodesk is aware of the problem, here's a post from Arnost back in 2015:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/instance-elevation-param-change-is-not-firing-updater/m-p/5506993/highlight/true#M8709" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/instance-elevation-param-change-is-not-firing-updater/m-p/5506993/highlight/true#M8709&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know&amp;nbsp;BuiltInParameter.INSTANCE_FREE_HOST_PARAM also doesn't report.&amp;nbsp; I ended up using&amp;nbsp;Element.GetChangeTypeAny() and then checking the parameter in the Execute function.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I didn't realize that parameters were losing functionality across versions. That is concerning.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jun 2022 19:41:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/11264806#M18235</guid>
      <dc:creator>Kevin.Lawson.PE</dc:creator>
      <dc:date>2022-06-28T19:41:40Z</dc:date>
    </item>
    <item>
      <title>Re: IUpdater does not work?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/11266912#M18236</link>
      <description>&lt;P&gt;Thank you very much for all your work, documentation and careful analysis! I added it to the existing &lt;A href="https://autodesk.slack.com/archives/C0SR6NAP8/p1656396485455249" target="_blank"&gt;internal discussion thread&lt;/A&gt; for the devteam to digest and enjoy...&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jun 2022 15:17:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/11266912#M18236</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-06-29T15:17:43Z</dc:date>
    </item>
    <item>
      <title>Re: IUpdater does not work?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/11271565#M18237</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5263562"&gt;@Kevin.Lawson.PE&lt;/a&gt; I have seen another topic related to the &lt;EM&gt;BuiltInParameter.INSTANCE_FREE_HOST_PARAM&lt;/EM&gt; no triggering...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The annoying part about using &lt;EM&gt;Element.GetChangeTypeAny()&lt;/EM&gt; is that you don't know what causes the change, tracking the old value and compare with the updater value.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you doing something like this?&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 13:41:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/11271565#M18237</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2022-07-01T13:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: IUpdater does not work?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/11271717#M18238</link>
      <description>&lt;P&gt;Yes, that's exactly what I'm doing.&amp;nbsp; If the parameter should be checked against information in the family or model, you can just check on&amp;nbsp;&lt;EM&gt;GetChangeTypeAny().&amp;nbsp;&amp;nbsp;&lt;/EM&gt;If you need to compare against an old parameter value, you can use a storage schema:&amp;nbsp;&lt;A href="https://thebuildingcoder.typepad.com/blog/2011/04/extensible-storage.html" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2011/04/extensible-storage.html&amp;nbsp;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 14:26:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/11271717#M18238</guid>
      <dc:creator>Kevin.Lawson.PE</dc:creator>
      <dc:date>2022-07-01T14:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: IUpdater does not work?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/11271896#M18239</link>
      <description>&lt;P&gt;I probably use memory instead of using &lt;STRONG&gt;Extensible Storage&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;When the document opens get all &lt;EM&gt;ElementId&lt;/EM&gt; and initial &lt;EM&gt;Parameter&lt;/EM&gt; values.&lt;/P&gt;&lt;P&gt;If the &lt;EM&gt;Uptader&lt;/EM&gt; is triggered just compare with the initial list and if is different do something. Also could add the &lt;EM&gt;Element.GetChangeTypeElementAddition&lt;/EM&gt; and &lt;EM&gt;Element.GetChangeTypeElementDeletion&lt;/EM&gt; to update the list if some is change on the document.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Gonna try some code after lunch.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Jul 2022 15:27:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/11271896#M18239</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2022-07-01T15:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: IUpdater does not work?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/13000958#M18240</link>
      <description>&lt;P&gt;Are we to assume that any "calculated" value will not trigger the updater? I am working with walls and the Area, Volume, nor Length parameters fire, but the Height, Mark, and Type all do. So essentially, any parameter that isn't user modifiable won't trigger an updater?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Sep 2024 17:40:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/13000958#M18240</guid>
      <dc:creator>Sean_Page</dc:creator>
      <dc:date>2024-09-04T17:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: IUpdater does not work?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/13002881#M18241</link>
      <description>&lt;P&gt;Maybe could be related.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When using a &lt;STRONG&gt;IUpdater&lt;/STRONG&gt; to trigger with &lt;STRONG&gt;BuiltInParameter.CURVE_ELEM_LENGTH &lt;/STRONG&gt;that is the parameter for &lt;STRONG&gt;Length&lt;/STRONG&gt; in the &lt;STRONG&gt;Wall&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trigger works when a wall is extended, changing the length of the &lt;STRONG&gt;Curve. &lt;/STRONG&gt;But in the &lt;STRONG&gt;UpdateData&lt;/STRONG&gt; the &lt;STRONG&gt;IsChangeTriggered&lt;/STRONG&gt; is false when &lt;STRONG&gt;BuiltInParameter.CURVE_ELEM_LENGTH&lt;/STRONG&gt; is used.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public void Execute(UpdaterData data)
{
    var elementId = data.GetModifiedElementIds().First();
    var changeTypeParameter = Element.GetChangeTypeParameter(new ElementId(BuiltInParameter.CURVE_ELEM_LENGTH));
    var isLengthChangeTriggered = data.IsChangeTriggered(elementId, changeTypeParameter);
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my tests when changing the curve &lt;STRONG&gt;Length&lt;/STRONG&gt; of the wall the updater is trigger without the &lt;STRONG&gt;IsChangeTriggered.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a full Unit Test: &lt;A href="https://github.com/ricaun-io/RevitTest.Updater" target="_blank" rel="noopener"&gt;https://github.com/ricaun-io/RevitTest.Updater&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;div class="video-embed-center video-embed"&gt;&lt;iframe class="embedly-embed" src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FL-NuSBzscFk%3Ffeature%3Doembed&amp;amp;display_name=YouTube&amp;amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DL-NuSBzscFk&amp;amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FL-NuSBzscFk%2Fhqdefault.jpg&amp;amp;type=text%2Fhtml&amp;amp;schema=youtube" width="200" height="112" scrolling="no" title="RevitTest IUpdater Walls - Revit API" frameborder="0" allow="autoplay; fullscreen; encrypted-media; picture-in-picture" allowfullscreen="true"&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could try some other internal Revit parameters to see if the updater trigger or not.&lt;/P&gt;</description>
      <pubDate>Thu, 05 Sep 2024 14:50:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/iupdater-does-not-work/m-p/13002881#M18241</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2024-09-05T14:50:23Z</dc:date>
    </item>
  </channel>
</rss>

