<?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: ParameterBindings lose value after ReInsert in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/parameterbindings-lose-value-after-reinsert/m-p/11953502#M12154</link>
    <description>&lt;P&gt;Thank you for your reply.&lt;BR /&gt;In practice it doesn't work the way you said. For some projects I have the value all the time, and for some it is lost after ReInsert.&lt;/P&gt;</description>
    <pubDate>Wed, 10 May 2023 06:23:07 GMT</pubDate>
    <dc:creator>dorer69044</dc:creator>
    <dc:date>2023-05-10T06:23:07Z</dc:date>
    <item>
      <title>ParameterBindings lose value after ReInsert</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/parameterbindings-lose-value-after-reinsert/m-p/11948645#M12152</link>
      <description>&lt;P&gt;My Add-in creates an assembly for the selected items.&lt;BR /&gt;And for each creation of assembly, I run ParameterBindings.Insert and if I get false, I try ParameterBindings.ReInsert.&lt;BR /&gt;After the second time I create, when I check my first assembly, I see that I lose the parameter value after ReInsert.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This only happens if I have a project for Revit 2021 and I update it to Revit 2023.&lt;BR /&gt;And run the Add-in for the updated project in Revit 2023.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Does anyone have any idea how I can save the parameter value after ResInsert?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 10:12:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/parameterbindings-lose-value-after-reinsert/m-p/11948645#M12152</guid>
      <dc:creator>dorer69044</dc:creator>
      <dc:date>2023-05-08T10:12:17Z</dc:date>
    </item>
    <item>
      <title>Re: ParameterBindings lose value after ReInsert</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/parameterbindings-lose-value-after-reinsert/m-p/11949871#M12153</link>
      <description>&lt;P&gt;Hi &lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/13739463"&gt;@dorer69044&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See documentation of ReInsert: &lt;A title="ReInsert Method (Definition, Binding)" href="https://www.revitapidocs.com/2022/50ccd2e2-a484-e0a2-ef18-7ee552bf2e8a.htm" target="_blank" rel="noopener"&gt;ReInsert Method (Definition, Binding)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;U&gt;"Removes an existing parameter and creates a new binding for a given parameter."&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The values are lost because the parameter was deleted by ReInsert.&lt;EM&gt;&lt;U&gt;&lt;BR /&gt;&lt;/U&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best to add the parameter if it didn't exist to begin with, if it does and doesn't have the correct Categories attached supply a warning to User to add Category X to Project Parameter Y.. (as a initialization check maybe)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also see post: &lt;A title="Adding a category to a project parameter" href="https://forums.autodesk.com/t5/revit-api-forum/adding-a-category-to-a-project-parameter/m-p/9112847" target="_blank" rel="noopener"&gt;Adding a category to a project parameter&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note: Above post could be a issue for elements in groups if the parameter is group bound&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Michel&lt;/P&gt;</description>
      <pubDate>Mon, 08 May 2023 19:48:17 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/parameterbindings-lose-value-after-reinsert/m-p/11949871#M12153</guid>
      <dc:creator>TripleM-Dev.net</dc:creator>
      <dc:date>2023-05-08T19:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: ParameterBindings lose value after ReInsert</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/parameterbindings-lose-value-after-reinsert/m-p/11953502#M12154</link>
      <description>&lt;P&gt;Thank you for your reply.&lt;BR /&gt;In practice it doesn't work the way you said. For some projects I have the value all the time, and for some it is lost after ReInsert.&lt;/P&gt;</description>
      <pubDate>Wed, 10 May 2023 06:23:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/parameterbindings-lose-value-after-reinsert/m-p/11953502#M12154</guid>
      <dc:creator>dorer69044</dc:creator>
      <dc:date>2023-05-10T06:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: ParameterBindings lose value after ReInsert</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/parameterbindings-lose-value-after-reinsert/m-p/11989156#M12155</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/824630"&gt;@jeremy_tammik&lt;/a&gt;&lt;BR /&gt;Do you have any idea&amp;nbsp;&lt;SPAN&gt;how I can save the parameter value after ResInsert?&lt;BR /&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2023 16:02:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/parameterbindings-lose-value-after-reinsert/m-p/11989156#M12155</guid>
      <dc:creator>dorer69044</dc:creator>
      <dc:date>2023-05-25T16:02:41Z</dc:date>
    </item>
  </channel>
</rss>

