<?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 &amp;quot;Add Leader&amp;quot; Failure Resolution? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/quot-add-leader-quot-failure-resolution/m-p/11612092#M15139</link>
    <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;We create room tags programatically, without leaders. In some cases they eventually move outside the room they were assigned to, so we get a warning:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the UI, it looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="noamgatCXBC7_1-1670753420921.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1151022i149E3E7713FB3DFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="noamgatCXBC7_1-1670753420921.png" alt="noamgatCXBC7_1-1670753420921.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the API, it has an equivalent callback that we get via&amp;nbsp;transaction.GetFailureHandlingOptions().SetFailuresPreprocessor() .&lt;/P&gt;&lt;P&gt;The problem is that the only resolution that is available is "Move to Room" (FailureResolutionType.MoveElements), equivalent to what we see in the UI. However, we would like to add a leader instead, but FailureResolutionType.FixElements is not available in this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;1) Is there a FailureResolutionType that would work in this case?&lt;/P&gt;&lt;P&gt;2) Are we allowed to perform custom transaction operations (such as setting HasLeader=true) in the failure preprocessor?&lt;/P&gt;&lt;P&gt;3) Is there a best-practice way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sun, 11 Dec 2022 10:16:22 GMT</pubDate>
    <dc:creator>noamgatCXBC7</dc:creator>
    <dc:date>2022-12-11T10:16:22Z</dc:date>
    <item>
      <title>"Add Leader" Failure Resolution?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/quot-add-leader-quot-failure-resolution/m-p/11612092#M15139</link>
      <description>&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;We create room tags programatically, without leaders. In some cases they eventually move outside the room they were assigned to, so we get a warning:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the UI, it looks like this:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="noamgatCXBC7_1-1670753420921.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1151022i149E3E7713FB3DFA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="noamgatCXBC7_1-1670753420921.png" alt="noamgatCXBC7_1-1670753420921.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the API, it has an equivalent callback that we get via&amp;nbsp;transaction.GetFailureHandlingOptions().SetFailuresPreprocessor() .&lt;/P&gt;&lt;P&gt;The problem is that the only resolution that is available is "Move to Room" (FailureResolutionType.MoveElements), equivalent to what we see in the UI. However, we would like to add a leader instead, but FailureResolutionType.FixElements is not available in this case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My questions are:&lt;/P&gt;&lt;P&gt;1) Is there a FailureResolutionType that would work in this case?&lt;/P&gt;&lt;P&gt;2) Are we allowed to perform custom transaction operations (such as setting HasLeader=true) in the failure preprocessor?&lt;/P&gt;&lt;P&gt;3) Is there a best-practice way to do this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 11 Dec 2022 10:16:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/quot-add-leader-quot-failure-resolution/m-p/11612092#M15139</guid>
      <dc:creator>noamgatCXBC7</dc:creator>
      <dc:date>2022-12-11T10:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: "Add Leader" Failure Resolution?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/quot-add-leader-quot-failure-resolution/m-p/11613449#M15140</link>
      <description>&lt;P&gt;Yup, good question, sounds tricky. I &lt;A href="https://autodesk.slack.com/archives/C0SR6NAP8/p1670830167500269" target="_blank"&gt;asked&lt;/A&gt; the development team for you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 07:31:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/quot-add-leader-quot-failure-resolution/m-p/11613449#M15140</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2022-12-12T07:31:02Z</dc:date>
    </item>
    <item>
      <title>Re: "Add Leader" Failure Resolution?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/quot-add-leader-quot-failure-resolution/m-p/11614171#M15141</link>
      <description>&lt;P&gt;Thank you very much! I don't have access to that slack but I will be very happy to hear about the resolution.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 13:20:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/quot-add-leader-quot-failure-resolution/m-p/11614171#M15141</guid>
      <dc:creator>noamgatCXBC7</dc:creator>
      <dc:date>2022-12-12T13:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: "Add Leader" Failure Resolution?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/quot-add-leader-quot-failure-resolution/m-p/11615521#M15142</link>
      <description>&lt;P&gt;That is a failure of warning severity not an error so you can likely dismiss it without providing a resolution (as can be done in UI in Revit 2022).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After deleting the warning fix the issue how you like.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Incidental in 2023 it seems to not care so much i.e. when moving a tag outside:&lt;/P&gt;&lt;P&gt;For 2022 it adds the leader, shows the warning but loses the value.&lt;/P&gt;&lt;P&gt;For 2023 it adds the leader and keeps the value without any warning.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FailuresAccessor.DeleteWarning (note the failing elements).&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 22:01:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/quot-add-leader-quot-failure-resolution/m-p/11615521#M15142</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2022-12-12T22:01:21Z</dc:date>
    </item>
    <item>
      <title>Re: "Add Leader" Failure Resolution?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/quot-add-leader-quot-failure-resolution/m-p/11673935#M15143</link>
      <description>&lt;P&gt;A: Adding custom failure resolution types and logic is unfortunately not supported. For a warning, you could use this callback to suppress it and add a followup event to make the change in another transaction...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;B: What version of Revit are they using? We recently made improvements in such cases we add the leader automatically (both in UI and API). We no longer show this warning.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;C: Yes, Revit 2023.1 or later no longer shows this warning for area\room\space tags. We did preserve the legacy behavior with a Revit.ini option for any customer that prefers it, but automatic tag leaders is the new default (with no warning).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the help link in Whats new in Revit 2023.1:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.autodesk.com/view/RVT/2023/ENU/?guid=GUID-3451EA78-36B5-41CA-9577-76BD9CBC330D" target="_blank"&gt;https://help.autodesk.com/view/RVT/2023/ENU/?guid=GUID-3451EA78-36B5-41CA-9577-76BD9CBC330D&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jan 2023 09:27:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/quot-add-leader-quot-failure-resolution/m-p/11673935#M15143</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2023-01-12T09:27:33Z</dc:date>
    </item>
  </channel>
</rss>

