<?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: Label for ElectricalSystemType in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/label-for-electricalsystemtype/m-p/10749216#M22481</link>
    <description>&lt;P&gt;I don't see a utility for that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it were my task and I can't find such a method I'd create one of each system in a model and open it in the different language versions to extract the values in order to build my own label utility.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/revit/troubleshooting/caas/CloudHelp/cloudhelp/2022/ENU/Revit-Installation/files/GUID-BD09C1B4-5520-475D-BE7E-773642EEBD6C-htm.html" target="_blank" rel="noopener"&gt;Use Revit in Other Languages | Revit 2022 | Autodesk Knowledge Network&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are only ten items listed but quite a few numbers missing (good job you don't have to create 31 system types). I don't know the history of that (if rationalisation has taken place or they are reserved perhaps).&lt;/P&gt;</description>
    <pubDate>Wed, 10 Nov 2021 21:57:56 GMT</pubDate>
    <dc:creator>RPTHOMAS108</dc:creator>
    <dc:date>2021-11-10T21:57:56Z</dc:date>
    <item>
      <title>Label for ElectricalSystemType</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/label-for-electricalsystemtype/m-p/10748596#M22480</link>
      <description>&lt;P&gt;To get the Category name for the current language I usually use something like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;Category.GetCategory(document, BuiltInCategory.OST_ElectricalCircuit).Name;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To get the name for &lt;STRONG&gt;&lt;EM&gt;BuiltInParameter&lt;/EM&gt; &lt;/STRONG&gt;I could use &lt;STRONG&gt;&lt;EM&gt;LabelUtils&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if is possible to get the label of the &lt;EM&gt;&lt;STRONG&gt;ElectricalSystemType&lt;/STRONG&gt; &lt;/EM&gt;enum.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public enum ElectricalSystemType
{
    UndefinedSystemType = 0,
    Data = 5,
    PowerCircuit = 6,
    Telephone = 9,
    Security = 10,
    FireAlarm = 11,
    NurseCall = 12,
    Controls = 13,
    Communication = 14,
    PowerBalanced = 30,
    PowerUnBalanced = 31
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know if I have an &lt;STRONG&gt;&lt;EM&gt;ElectricalSystem&lt;/EM&gt; &lt;/STRONG&gt;created in my project I could get the name of the &lt;STRONG&gt;&lt;EM&gt;SystemType&lt;/EM&gt; &lt;/STRONG&gt;using the &lt;STRONG&gt;&lt;EM&gt;BuiltInParameter.RBS_ELEC_CIRCUIT_TYPE&lt;/EM&gt;&lt;/STRONG&gt; and getting the &lt;STRONG&gt;&lt;EM&gt;AsValueString&lt;/EM&gt; &lt;/STRONG&gt;like the example below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="csharp"&gt;public string GetSystemName(ElectricalSystem electricalSystem)
{
    if (electricalSystem.get_Parameter(BuiltInParameter.RBS_ELEC_CIRCUIT_TYPE) is Parameter parameter)
    {
        return parameter.AsValueString();
    }
    return electricalSystem.SystemType.ToString();
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This gets the name of the &lt;EM&gt;&lt;STRONG&gt;SystemType&lt;/STRONG&gt; &lt;/EM&gt;on the current Revit language.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That's what I need, but using &lt;STRONG&gt;&lt;EM&gt;ElectricalSystemType&lt;/EM&gt; &lt;/STRONG&gt;enum without any &lt;STRONG&gt;&lt;EM&gt;ElectricalSystem&lt;/EM&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I don't know if is possible, does anyone knows how!?&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 16:56:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/label-for-electricalsystemtype/m-p/10748596#M22480</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2021-11-10T16:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Label for ElectricalSystemType</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/label-for-electricalsystemtype/m-p/10749216#M22481</link>
      <description>&lt;P&gt;I don't see a utility for that.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it were my task and I can't find such a method I'd create one of each system in a model and open it in the different language versions to extract the values in order to build my own label utility.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://knowledge.autodesk.com/support/revit/troubleshooting/caas/CloudHelp/cloudhelp/2022/ENU/Revit-Installation/files/GUID-BD09C1B4-5520-475D-BE7E-773642EEBD6C-htm.html" target="_blank" rel="noopener"&gt;Use Revit in Other Languages | Revit 2022 | Autodesk Knowledge Network&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There are only ten items listed but quite a few numbers missing (good job you don't have to create 31 system types). I don't know the history of that (if rationalisation has taken place or they are reserved perhaps).&lt;/P&gt;</description>
      <pubDate>Wed, 10 Nov 2021 21:57:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/label-for-electricalsystemtype/m-p/10749216#M22481</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2021-11-10T21:57:56Z</dc:date>
    </item>
    <item>
      <title>Re: Label for ElectricalSystemType</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/label-for-electricalsystemtype/m-p/10753993#M22482</link>
      <description>&lt;P&gt;Probably not gonna track all the names on each language, by default gonna show the enum name with space.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm developing a plugin to add a prefix/abbreviation in front of Communication circuits, does not exist a classification for Telephone, Security, Fire Alarm... etc. So I'm using the system type of electrical circuit.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="CircuitNameCapturar.PNG" style="width: 400px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/989085iBB5B9CD2913CFEC8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="CircuitNameCapturar.PNG" alt="CircuitNameCapturar.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;That's why I want a user-friendly name for this system type, with the language and so on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 12 Nov 2021 17:57:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/label-for-electricalsystemtype/m-p/10753993#M22482</guid>
      <dc:creator>ricaun</dc:creator>
      <dc:date>2021-11-12T17:57:39Z</dc:date>
    </item>
  </channel>
</rss>

