<?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: Is it possible to delete Arrowhead types? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13026198#M3030</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7906386"&gt;@gopinath.rajendran&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have tested deleting all arrowhead types and was able to remove all except &lt;STRONG&gt;"Arrow Open 90 Degree 1.25mm".&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Each time I attempt to delete this specific arrowhead type, I encounter an exception/crash. &lt;BR /&gt;&lt;SPAN&gt;The issue persists regardless of whether I try to delete this arrowhead type first or last.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Could you please verify if the same arrowhead type is causing the issue on your end?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 17 Sep 2024 15:42:31 GMT</pubDate>
    <dc:creator>naveen.kumar.t</dc:creator>
    <dc:date>2024-09-17T15:42:31Z</dc:date>
    <item>
      <title>Is it possible to delete Arrowhead types?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025122#M3021</link>
      <description>&lt;P&gt;var arrowHeads = new FilteredElementCollector(doc).WhereElementIsElementType().Cast&amp;lt;ElementType&amp;gt;().Where(t =&amp;gt; t.FamilyName == "Arrowhead").ToList();&lt;/P&gt;&lt;P&gt;using (Transaction trans = new Transaction(doc, "Remove Arrowhead"))&lt;BR /&gt;{&lt;BR /&gt;trans.Start();&lt;/P&gt;&lt;P&gt;foreach (var arrowHead in arrowHeads)&lt;BR /&gt;{&lt;BR /&gt;doc.Delete(arrowHead.Id);&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;trans.Commit();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;Throws an Autodesk.Revit.Exceptions.InternalException: 'An internal error has occurred,' and then Revit crashed&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 06:34:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025122#M3021</guid>
      <dc:creator>gopinath.rajendran</dc:creator>
      <dc:date>2024-09-17T06:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete Arrowhead types?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025175#M3022</link>
      <description>&lt;P&gt;Maybe the type is in use? Can you share a complete minimal reproducible case for us and the development team to take a closer look?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/about-the-author.html#1b&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S. Your code will be more readable if you use the insert code button marked &lt;STRONG&gt;&amp;lt;/&amp;gt;&lt;/STRONG&gt; to add it to your post.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 06:59:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025175#M3022</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2024-09-17T06:59:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete Arrowhead types?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025215#M3023</link>
      <description>&lt;P class="lia-align-left"&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7906386"&gt;@gopinath.rajendran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;You can't able to delete the System Types, we can able to purge the system types. Kindly check the below link for additional reference.&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;Reference Image&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Mohamed_Arshad_0-1726557582704.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1409991iEA9FBDF02CF5D427/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Mohamed_Arshad_0-1726557582704.png" alt="Mohamed_Arshad_0-1726557582704.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;Reference Links&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/purge-unused-via-the-api/td-p/6431564" target="_blank" rel="noopener"&gt;https://forums.autodesk.com/t5/revit-api-forum/purge-unused-via-the-api/td-p/6431564&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2017/11/purge-and-detecting-an-empty-view.html" target="_blank" rel="noopener"&gt;https://thebuildingcoder.typepad.com/blog/2017/11/purge-and-detecting-an-empty-view.html&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2022/03/purge-unused-and-the-autodesk-camel.html" target="_blank" rel="noopener"&gt;https://thebuildingcoder.typepad.com/blog/2022/03/purge-unused-and-the-autodesk-camel.html&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&amp;nbsp;&lt;/P&gt;&lt;P class="lia-align-left"&gt;&lt;STRONG&gt;Hope this will Helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 07:20:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025215#M3023</guid>
      <dc:creator>Mohamed_Arshad</dc:creator>
      <dc:date>2024-09-17T07:20:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete Arrowhead types?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025256#M3024</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gopinathrajendran_0-1726556972928.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1409987i28EE2F46881662FF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gopinathrajendran_0-1726556972928.png" alt="gopinathrajendran_0-1726556972928.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;After the exception mentioned above, if I try to commit the transaction, the following window appears&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gopinathrajendran_1-1726558528750.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1409999i49300CF49EF0D403/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gopinathrajendran_1-1726558528750.png" alt="gopinathrajendran_1-1726558528750.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I couldn't replicate the crash in a separate piece of code. Maybe resolving this error will fix the crashing issue. After encountering the first error window, Revit always crashes when using the plugin.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Here complete code:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;var doc = ActiveUIDocument.Document;&lt;BR /&gt;var arrowHeads = new FilteredElementCollector(doc).WhereElementIsElementType().Cast&amp;lt;ElementType&amp;gt;().Where(t =&amp;gt; t.FamilyName == "Arrowhead").ToList();&lt;/P&gt;&lt;P&gt;using (Transaction trans = new Transaction(doc, "Remove Arrowhead"))&lt;BR /&gt;{&lt;BR /&gt;trans.Start();&lt;/P&gt;&lt;P&gt;foreach (var arrowHead in arrowHeads)&lt;BR /&gt;{&lt;BR /&gt;try&lt;BR /&gt;{&lt;BR /&gt;doc.Delete(arrowHead.Id);&lt;/P&gt;&lt;P&gt;}&lt;BR /&gt;catch (System.Exception ex)&lt;BR /&gt;{&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;trans.Commit();&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;This error window can be replicated using the &lt;STRONG&gt;rac_basic_sample_project.rvt&lt;/STRONG&gt; sample model in Revit.&lt;/P&gt;&lt;P&gt;it happens on Revit 2023, Revit 2024 and Revit 2025.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 07:42:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025256#M3024</guid>
      <dc:creator>gopinath.rajendran</dc:creator>
      <dc:date>2024-09-17T07:42:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete Arrowhead types?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025290#M3025</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8461394"&gt;@Mohamed_Arshad&lt;/a&gt;Thanks for your input. It's not about deleting all the elements. I need to know how to prevent Revit from crashing when an element is not deletable.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 08:01:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025290#M3025</guid>
      <dc:creator>gopinath.rajendran</dc:creator>
      <dc:date>2024-09-17T08:01:19Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete Arrowhead types?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025401#M3026</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7906386"&gt;@gopinath.rajendran&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can determine whether the Arrowhead type is deletable or not by using the &lt;STRONG&gt;CanBeDeleted&lt;/STRONG&gt; property. &lt;BR /&gt;This will help prevent Revit from crashing.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://www.revitapidocs.com/2015/5efe8253-d555-00c2-8db6-9114e328fcc7.htm" target="_blank" rel="noopener"&gt;https://www.revitapidocs.com/2015/5efe8253-d555-00c2-8db6-9114e328fcc7.htm&lt;/A&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 09:03:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025401#M3026</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2024-09-17T09:03:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete Arrowhead types?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025425#M3027</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5661631"&gt;@naveen.kumar.t&lt;/a&gt;&amp;nbsp; I tried this before, and it is true for all elements.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gopinathrajendran_0-1726564008803.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1410040i209042F52EBF6E26/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gopinathrajendran_0-1726564008803.png" alt="gopinathrajendran_0-1726564008803.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 09:07:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025425#M3027</guid>
      <dc:creator>gopinath.rajendran</dc:creator>
      <dc:date>2024-09-17T09:07:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete Arrowhead types?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025431#M3028</link>
      <description>&lt;P&gt;HI&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5661631"&gt;@naveen.kumar.t&lt;/a&gt;&amp;nbsp;&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7906386"&gt;@gopinath.rajendran&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5661631"&gt;@naveen.kumar.t&lt;/a&gt;&amp;nbsp; I checked the mentioned property but it true for Arrow Head, My suggestion is to try use &lt;A href="https://www.bing.com/ck/a?!&amp;amp;&amp;amp;p=512ed2dd087efbecJmltdHM9MTcyNjUzMTIwMCZpZ3VpZD0wNjNkMjk3Zi02ZWJlLTYyM2ItMzE5OC0zZDg3NmZkZjYzYzQmaW5zaWQ9NTIzOQ&amp;amp;ptn=3&amp;amp;ver=2&amp;amp;hsh=3&amp;amp;fclid=063d297f-6ebe-623b-3198-3d876fdf63c4&amp;amp;psq=IFailureProcess+revit+api&amp;amp;u=a1aHR0cHM6Ly9zcGlkZXJpbm5ldC50eXBlcGFkLmNvbS9ibG9nLzIwMTEvMDIvaW1wbGVtZW50LWFuLWlmYWlsdXJlc3Byb2Nlc3Nvci1vZi1yZXZpdC1hcGktd2l0aC1jLmh0bWw&amp;amp;ntb=1Pre" target="_blank" rel="noopener"&gt;IFailurePreProcessor&lt;/A&gt; to handle Revit based errors. If we got any serious errors we can skip the process without crashing Revit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this will Helps &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 09:12:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025431#M3028</guid>
      <dc:creator>Mohamed_Arshad</dc:creator>
      <dc:date>2024-09-17T09:12:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete Arrowhead types?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025524#M3029</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’ve &lt;A href="https://autodesk.slack.com/archives/C0SR6NAP8/p1726567632940619" target="_blank" rel="noopener"&gt;escalated the issue&lt;/A&gt; to the Revit Engineering team, and I’ll get back to you as soon as I hear from them&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 10:10:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13025524#M3029</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2024-09-17T10:10:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete Arrowhead types?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13026198#M3030</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/7906386"&gt;@gopinath.rajendran&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I have tested deleting all arrowhead types and was able to remove all except &lt;STRONG&gt;"Arrow Open 90 Degree 1.25mm".&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Each time I attempt to delete this specific arrowhead type, I encounter an exception/crash. &lt;BR /&gt;&lt;SPAN&gt;The issue persists regardless of whether I try to delete this arrowhead type first or last.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Could you please verify if the same arrowhead type is causing the issue on your end?&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 15:42:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13026198#M3030</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2024-09-17T15:42:31Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete Arrowhead types?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13026462#M3031</link>
      <description>&lt;P&gt;Yes. It is&lt;/P&gt;</description>
      <pubDate>Tue, 17 Sep 2024 17:15:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13026462#M3031</guid>
      <dc:creator>gopinath.rajendran</dc:creator>
      <dc:date>2024-09-17T17:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to delete Arrowhead types?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13027885#M3032</link>
      <description>&lt;P&gt;The &lt;STRONG&gt;Arrow Open 90 Degree 1.25mm&lt;/STRONG&gt; arrowhead type is being used by a component.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Upon reviewing the journal file, I discovered that this particular arrowhead type is internally utilized by&amp;nbsp;StairsPathType&amp;nbsp;&lt;CODE&gt;StairsPathType::setArrowheadTypeId&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This explains why Revit throws an exception when attempting to delete it.&lt;/P&gt;</description>
      <pubDate>Wed, 18 Sep 2024 09:24:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-it-possible-to-delete-arrowhead-types/m-p/13027885#M3032</guid>
      <dc:creator>naveen.kumar.t</dc:creator>
      <dc:date>2024-09-18T09:24:13Z</dc:date>
    </item>
  </channel>
</rss>

