<?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: Deleting Shared Parameters in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/deleting-shared-parameters/m-p/7219457#M57325</link>
    <description>&lt;P&gt;I might be misreading the question, but it is worth noting that to the best of my knowledge, it is still impossible to truly purge Shared Parameters from a project (from a family, yes) database. The GUID remains, along with its link to its original name.&lt;/P&gt;
&lt;P&gt;And whether this helps, you can export "orphaned" Shared Parameters into a new Shared Parameter file.&lt;/P&gt;
&lt;P&gt;Dale&lt;/P&gt;</description>
    <pubDate>Tue, 11 Jul 2017 13:38:02 GMT</pubDate>
    <dc:creator>Dale.Bartlett</dc:creator>
    <dc:date>2017-07-11T13:38:02Z</dc:date>
    <item>
      <title>Deleting Shared Parameters</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/deleting-shared-parameters/m-p/7213592#M57323</link>
      <description>&lt;P&gt;I am trying to clean up our office project template.&amp;nbsp;There are&amp;nbsp;some previously made door parameters that I no longer need. I was able to delete some of the parameters through the "project parameters" tab. However, there are some shared parameters that I cannot delete. These are not parameters in the door family.&amp;nbsp;I cannot find their original shared parameter txt file because they were created by other team members over the past years. How can I delete these shared instance parameters?&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jul 2017 19:33:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/deleting-shared-parameters/m-p/7213592#M57323</guid>
      <dc:creator>slyons1234</dc:creator>
      <dc:date>2017-07-07T19:33:10Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Shared Parameters</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/deleting-shared-parameters/m-p/7218341#M57324</link>
      <description>&lt;P&gt;Dear Sarah,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Please accept our sincerer apology for the delay! We had a backlog in the queue these days.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I think this blog can give you some help if you can use API to your request.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2009/08/deleting-a-shared-parameter.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2009/08/deleting-a-shared-parameter.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to delete the parameter in UI. Maybe you can post your question here:&amp;nbsp;&lt;A href="https://forums.autodesk.com/t5/revit-architecture-forum/bd-p/133" target="_blank"&gt;https://forums.autodesk.com/t5/revit-architecture-forum/bd-p/133&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank for your understanding and cooperation.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 02:37:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/deleting-shared-parameters/m-p/7218341#M57324</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2017-07-11T02:37:05Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Shared Parameters</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/deleting-shared-parameters/m-p/7219457#M57325</link>
      <description>&lt;P&gt;I might be misreading the question, but it is worth noting that to the best of my knowledge, it is still impossible to truly purge Shared Parameters from a project (from a family, yes) database. The GUID remains, along with its link to its original name.&lt;/P&gt;
&lt;P&gt;And whether this helps, you can export "orphaned" Shared Parameters into a new Shared Parameter file.&lt;/P&gt;
&lt;P&gt;Dale&lt;/P&gt;</description>
      <pubDate>Tue, 11 Jul 2017 13:38:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/deleting-shared-parameters/m-p/7219457#M57325</guid>
      <dc:creator>Dale.Bartlett</dc:creator>
      <dc:date>2017-07-11T13:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Deleting Shared Parameters</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/deleting-shared-parameters/m-p/7223934#M57326</link>
      <description>&lt;P&gt;Since we have access to the SharedParameterElement's in a document, you can remove a shared parameter from the document, by deleting the SharedParameterElement that belongs to the shared parameter.&lt;/P&gt;
&lt;P&gt;(for finding the SharedParameterElement see my reply &lt;A href="https://forums.autodesk.com/t5/revit-api-forum/filter-with-shared-parameter-guid-id/m-p/7127726#M23197" target="_self"&gt;https://forums.autodesk.com/t5/revit-api-forum/filter-with-shared-parameter-guid-id/m-p/7127726#M23197&lt;/A&gt;)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NOTE OF CAUTION:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can do this at your own peril, since Revit will delete the parameter even if it's used in families&amp;nbsp;and/or ParameterBindings with&amp;nbsp;NO warning. If the&amp;nbsp;parameter was used in a formula in the family, the formula is deleted, even further degrading the family.&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So verify yourself that the parameter is not being used in any way.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;            Guid myGuid = new Guid("1941bdda-f6f3-4908-a1f2-25d0f968cb02");  // GUID of shared parameter
            SharedParameterElement sParamElement = SharedParameterElement.Lookup(document, myGuid);
            using (Transaction t = new Transaction(document, "remove sharedParameter"))
            {
                t.Start();
                document.Delete(sParamElement.Id);
                t.Commit();
            }
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 12 Jul 2017 23:00:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/deleting-shared-parameters/m-p/7223934#M57326</guid>
      <dc:creator>FAIR59</dc:creator>
      <dc:date>2017-07-12T23:00:12Z</dc:date>
    </item>
  </channel>
</rss>

