<?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: Getting the default value of a parameter? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/getting-the-default-value-of-a-parameter/m-p/6389211#M65592</link>
    <description>&lt;P&gt;I am trying to do the same thing, i.e. get the default value of an instance parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My testing shows that the family symbol has the type parameters but not the instance parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any one got any ideas how to get the default value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jun 2016 08:24:05 GMT</pubDate>
    <dc:creator>PaulCollins7972</dc:creator>
    <dc:date>2016-06-17T08:24:05Z</dc:date>
    <item>
      <title>Getting the default value of a parameter?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-the-default-value-of-a-parameter/m-p/6327698#M65589</link>
      <description>&lt;P&gt;I need to detect if a parameter value has been changed from the default value.&lt;/P&gt;&lt;P&gt;Previously I did this by checking the default value of that parameter when such an element was added to the document via an IUpdater and then comparing my saved default value to the current value for each instance when it was time to do my calculations.&lt;/P&gt;&lt;P&gt;The issue with that solution is that it isn't&amp;nbsp;backwards compatible, it has to detect a changed value also in old project files that where made when I didn't have the IUpdater so I can't rely on that the user will add such an element before they&amp;nbsp;run my calculations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping that there would be an easy way of reading the default value of a parameter but I can't find one so I'm left with the idea of opening the .rfa file of the element and somehow read the parameter value from there. I've tried to add a new element programmatically in order to read the parameter from it and then delete it again but I can't manage to create one since the Element class doesn't have a constructor and for some reason using the Document.newFamilyInstance(..) method only gives me compile errors.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any ideas about how I can achieve this?&lt;/P&gt;</description>
      <pubDate>Mon, 16 May 2016 07:41:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-the-default-value-of-a-parameter/m-p/6327698#M65589</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-16T07:41:48Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the default value of a parameter?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-the-default-value-of-a-parameter/m-p/6327737#M65590</link>
      <description>Shouldn't the familySymbol parameter values be the defaults?</description>
      <pubDate>Mon, 16 May 2016 08:14:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-the-default-value-of-a-parameter/m-p/6327737#M65590</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-05-16T08:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the default value of a parameter?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-the-default-value-of-a-parameter/m-p/6382148#M65591</link>
      <description>&lt;P&gt;Yes it looks like the symbol should have the default parameter values, I'm going to try that &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 14 Jun 2016 11:36:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-the-default-value-of-a-parameter/m-p/6382148#M65591</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-06-14T11:36:40Z</dc:date>
    </item>
    <item>
      <title>Re: Getting the default value of a parameter?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/getting-the-default-value-of-a-parameter/m-p/6389211#M65592</link>
      <description>&lt;P&gt;I am trying to do the same thing, i.e. get the default value of an instance parameter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My testing shows that the family symbol has the type parameters but not the instance parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any one got any ideas how to get the default value?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Paul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2016 08:24:05 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/getting-the-default-value-of-a-parameter/m-p/6389211#M65592</guid>
      <dc:creator>PaulCollins7972</dc:creator>
      <dc:date>2016-06-17T08:24:05Z</dc:date>
    </item>
  </channel>
</rss>

