<?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: Specify Coordinates at Point, Relocate Project does not trigger IUpdater in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/specify-coordinates-at-point-relocate-project-does-not-trigger/m-p/8149793#M50807</link>
    <description>&lt;P&gt;any update on this?&lt;/P&gt;</description>
    <pubDate>Mon, 23 Jul 2018 20:42:44 GMT</pubDate>
    <dc:creator>JOfford_13</dc:creator>
    <dc:date>2018-07-23T20:42:44Z</dc:date>
    <item>
      <title>Specify Coordinates at Point, Relocate Project does not trigger IUpdater</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/specify-coordinates-at-point-relocate-project-does-not-trigger/m-p/7936160#M50804</link>
      <description>&lt;P&gt;I have setup an IUpdater to monitor the X,Y,Z coordinates of certain elements&amp;nbsp;which triggers on Element.GetChangeTypeGeometry().&amp;nbsp; I then grab the current position of each element using something like the following.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;void Foo(Element element, ProjectLocation projectLocation = null)
{
     if (element.Location is LocationPoint locationPt)
     {
         double x, y, z;

         if (projectLocation != null)
         {
              var projectPosition = projectLocation.GetProjectPosition(locationPt.Point);

              x = projectPosition.EastWest;
              y = projectPosition.NorthSouth;
              z = projectPosition.Elevation;
         }
         else
         {
              var pt = locationPt.Point;

              x = pt.X;
              y = pt.Y;
              z = pt.Z;
         }
         // do stuff here ..
     }
}&lt;/PRE&gt;&lt;P&gt;This works great except the user clicks "Specify Coordinates At Point" or "Relocate Project".&amp;nbsp; That command modifies all the project position values but the IUpdater fails to trigger.&amp;nbsp; Is there any way to detect when these commands are run?&amp;nbsp; If not, is there anything that can be done to the IUpdater that would make it fire after these events?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Apr 2018 19:29:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/specify-coordinates-at-point-relocate-project-does-not-trigger/m-p/7936160#M50804</guid>
      <dc:creator>JOfford_13</dc:creator>
      <dc:date>2018-04-16T19:29:47Z</dc:date>
    </item>
    <item>
      <title>Re: Specify Coordinates at Point, Relocate Project does not trigger IUpdater</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/specify-coordinates-at-point-relocate-project-does-not-trigger/m-p/7936797#M50805</link>
      <description>&lt;P&gt;&amp;nbsp;Hi&amp;nbsp;&lt;SPAN class=""&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1144914" target="_self"&gt;JOfford_13&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Position changed will not trigger the Updater. Following is from API document:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;"&lt;EM&gt;&lt;STRONG&gt;GetChangeTypeGeometry&lt;/STRONG&gt; Method&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;DIV id="mainSection"&gt;
&lt;DIV id="mainBody"&gt;
&lt;DIV id="allHistory" class="saveHistory"&gt;
&lt;DIV id="remarksSection" class="section"&gt;&lt;EM&gt;Use this change type to trigger an Updater when the geometry of an element changes. Only physical changes to shape of the element(s) will trigger the updater. For example, changes like cutting a hole in a wall or adjusting its height are considered to be geometric changes. &lt;FONT color="#FF0000"&gt;However, moving a wall to a different location without modifying its shape is not considered to be a change in geometry and will not trigger the Updater.&lt;/FONT&gt;&lt;/EM&gt;"&lt;/DIV&gt;
&lt;DIV class="section"&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV class="section"&gt;If you want to catch the event, you need to use Element.GetChangeTypeAny() Method.
&lt;DIV id="header"&gt;&amp;nbsp;&lt;/DIV&gt;
.&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 17 Apr 2018 02:13:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/specify-coordinates-at-point-relocate-project-does-not-trigger/m-p/7936797#M50805</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2018-04-17T02:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Specify Coordinates at Point, Relocate Project does not trigger IUpdater</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/specify-coordinates-at-point-relocate-project-does-not-trigger/m-p/7938023#M50806</link>
      <description>&lt;P&gt;The documentation for GetChangeTypeGeometry is not accurate.&amp;nbsp; The following IUpdater configuration will trigger when a FamilyInstance is moved in Revit 2018.2.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var filter = new FamilyInstanceFilter(doc, familySymbolId);

UpdaterRegistry.AddTrigger(updaterId, filter, Element.GetChangeTypeGeometry());&lt;/PRE&gt;&lt;P&gt;Element.GetChangeTypeAny() does work in catching the base point movements however I discovered the following also works and probably has less overhead.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;var filter = new ElementClassFilter(typeof(BasePoint));

UpdaterRegistry.AddTrigger(updaterId, filter, Element.GetChangeTypeAny());&lt;/PRE&gt;</description>
      <pubDate>Tue, 17 Apr 2018 13:08:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/specify-coordinates-at-point-relocate-project-does-not-trigger/m-p/7938023#M50806</guid>
      <dc:creator>JOfford_13</dc:creator>
      <dc:date>2018-04-17T13:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Specify Coordinates at Point, Relocate Project does not trigger IUpdater</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/specify-coordinates-at-point-relocate-project-does-not-trigger/m-p/8149793#M50807</link>
      <description>&lt;P&gt;any update on this?&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 20:42:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/specify-coordinates-at-point-relocate-project-does-not-trigger/m-p/8149793#M50807</guid>
      <dc:creator>JOfford_13</dc:creator>
      <dc:date>2018-07-23T20:42:44Z</dc:date>
    </item>
  </channel>
</rss>

