<?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: Parameter in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/parameter/m-p/6538553#M63242</link>
    <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, now work correctly, but&amp;nbsp;When I use it&amp;nbsp;on the current sheet, Sh_Data1&amp;nbsp;&lt;SPAN&gt;contains 2 items with the some value, why?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 02 Sep 2016 08:26:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-09-02T08:26:02Z</dc:date>
    <item>
      <title>Parameter</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/parameter/m-p/6536420#M63238</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a problem to migrate an old dll to 2016 / 2017.&lt;/P&gt;
&lt;P&gt;The problem is on this line:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim Sh_Data1 As Parameter = csheet.Parameter("Data")&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Data is a shared parameter, on Revit 2015 work correctly, on Revit 2017 I receive this error:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Not valid CAST from "Data" string to Integer type&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How I can solve it?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 12:43:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/parameter/m-p/6536420#M63238</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T12:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/parameter/m-p/6536567#M63239</link>
      <description>&lt;P&gt;Please try the Element.GetParameters Method instead.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 13:39:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/parameter/m-p/6536567#M63239</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2016-09-01T13:39:27Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/parameter/m-p/6536612#M63240</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tahnks&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;can you make me a sample?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 13:59:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/parameter/m-p/6536612#M63240</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T13:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/parameter/m-p/6537029#M63241</link>
      <description>&lt;PRE&gt;Dim Sh_Data1 As IList(Of Parameter) = csheet.GetParameters("Data")&lt;/PRE&gt;&lt;P&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Sep 2016 16:00:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/parameter/m-p/6537029#M63241</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-01T16:00:31Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/parameter/m-p/6538553#M63242</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks, now work correctly, but&amp;nbsp;When I use it&amp;nbsp;on the current sheet, Sh_Data1&amp;nbsp;&lt;SPAN&gt;contains 2 items with the some value, why?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Sep 2016 08:26:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/parameter/m-p/6538553#M63242</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-09-02T08:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Parameter</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/parameter/m-p/6540565#M63243</link>
      <description>&lt;P&gt;This is so natural. Please read the following quote from the API guide:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"Multiple matches of parameters with the same name can occur because shared parameters or project parameters can be bound to an element category even if there is a built-in parameter with the same name already.&lt;/P&gt;
&lt;P&gt;If this method is used to find built-in parameters the code will not be portable to other languages of Revit (because built-in parameter names are translated, and this method matches the translation).&lt;/P&gt;
&lt;P&gt;For the reasons above this method should be used sparingly and when portability across multiple languages is not a requirement.&lt;/P&gt;
&lt;P&gt;Safer approaches include:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;get_Parameter(Guid) to get a shared parameter by stored guid.&lt;/LI&gt;
&lt;LI&gt;get_Parameter(BuiltInParameter) to find a built-in parameter in a language-independent way."&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Sat, 03 Sep 2016 04:26:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/parameter/m-p/6540565#M63243</guid>
      <dc:creator>Mustafa.Salaheldin</dc:creator>
      <dc:date>2016-09-03T04:26:41Z</dc:date>
    </item>
  </channel>
</rss>

