<?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: BuiltInParameterGroup String to Enumeration in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/builtinparametergroup-string-to-enumeration/m-p/7960707#M50523</link>
    <description>&lt;P&gt;C#&lt;BR /&gt;&lt;A href="http://lmgtfy.com/?q=c%23+how+change+string+to+enum" target="_blank"&gt;http://lmgtfy.com/?q=c%23+how+change+string+to+enum&lt;/A&gt;&lt;BR /&gt;Phyton&lt;BR /&gt;&lt;A href="http://lmgtfy.com/?q=Phyton+how+change+string+to+enum" target="_blank"&gt;http://lmgtfy.com/?q=Phyton+how+change+string+to+enum&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Apr 2018 05:48:54 GMT</pubDate>
    <dc:creator>MarryTookMyCoffe</dc:creator>
    <dc:date>2018-04-26T05:48:54Z</dc:date>
    <item>
      <title>BuiltInParameterGroup String to Enumeration</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/builtinparametergroup-string-to-enumeration/m-p/7960218#M50522</link>
      <description>&lt;P&gt;I am trying to create parameters from a list of parameters but I am running into an issue with the BuiltInParameterGroup.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I currently have the BuiltInParameterGroup as a string such as PG_CONSTRAINTS, but obviously that isn't working because the FamilyManager.AddParameter() function requriest a BuiltInParameterGroup and not a String.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an easy way to convert that string into the BuiltInParameterGroup enumeration? I'm working in Python, so if anyone has any idea specific to python that would be awesome, but I can also try to figure it out if it's in C#.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 25 Apr 2018 22:41:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/builtinparametergroup-string-to-enumeration/m-p/7960218#M50522</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-25T22:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: BuiltInParameterGroup String to Enumeration</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/builtinparametergroup-string-to-enumeration/m-p/7960707#M50523</link>
      <description>&lt;P&gt;C#&lt;BR /&gt;&lt;A href="http://lmgtfy.com/?q=c%23+how+change+string+to+enum" target="_blank"&gt;http://lmgtfy.com/?q=c%23+how+change+string+to+enum&lt;/A&gt;&lt;BR /&gt;Phyton&lt;BR /&gt;&lt;A href="http://lmgtfy.com/?q=Phyton+how+change+string+to+enum" target="_blank"&gt;http://lmgtfy.com/?q=Phyton+how+change+string+to+enum&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 05:48:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/builtinparametergroup-string-to-enumeration/m-p/7960707#M50523</guid>
      <dc:creator>MarryTookMyCoffe</dc:creator>
      <dc:date>2018-04-26T05:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: BuiltInParameterGroup String to Enumeration</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/builtinparametergroup-string-to-enumeration/m-p/7960832#M50524</link>
      <description>&lt;P&gt;Exactly!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://duckduckgo.com/?q=string+to+enumeration+.net" target="_blank"&gt;https://duckduckgo.com/?q=string+to+enumeration+.net&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Apr 2018 06:50:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/builtinparametergroup-string-to-enumeration/m-p/7960832#M50524</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2018-04-26T06:50:54Z</dc:date>
    </item>
    <item>
      <title>Re: BuiltInParameterGroup String to Enumeration</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/builtinparametergroup-string-to-enumeration/m-p/7962558#M50525</link>
      <description>&lt;P&gt;That was definitely the first thing I did. I also made sure to search all of the forums for a Revit specific solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As I am fairly new to coding, the conversion to Enum is a bit confusing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I have a list of strings that point to the string version of a BuiltInParameterGroup such as ["PG_GRAPHICS", "PG_IDENTITY_DATA", "PG_CONSTRAINTS"] how do I link it to the integer value that is associated with the Enumeration? Is this a task where I need to define the conversion for each BuiltInParameterGroup?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry if this is a stupid question, I can try approaching it from a different direction if this doesn't make sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;Sorry if my question was confusing/elementary.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For anyone working in python that might run into this in the future, this is how I was able to solve it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;exec("parameterGroup = BuiltInParameterGroup.%s" % pg)&lt;/PRE&gt;</description>
      <pubDate>Thu, 26 Apr 2018 16:08:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/builtinparametergroup-string-to-enumeration/m-p/7962558#M50525</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-04-26T16:08:13Z</dc:date>
    </item>
  </channel>
</rss>

