<?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: is there any analog of LabelUtils.GetLabel(BuiltIncategory) earlier than 2020? in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-analog-of-labelutils-getlabel-builtincategory/m-p/10140134#M27618</link>
    <description>&lt;P&gt;Yes, it was easy, Category.Name shows a translated name of category. It could be guessed by myself &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you Jeremy!&lt;/P&gt;</description>
    <pubDate>Mon, 08 Mar 2021 20:52:09 GMT</pubDate>
    <dc:creator>Extraneous</dc:creator>
    <dc:date>2021-03-08T20:52:09Z</dc:date>
    <item>
      <title>is there any analog of LabelUtils.GetLabel(BuiltIncategory) earlier than 2020?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-analog-of-labelutils-getlabel-builtincategory/m-p/10139961#M27616</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;Is there any analog of the method&amp;nbsp;&lt;A href="https://www.revitapidocs.com/2020/3c5057a7-b59e-c650-0d46-643f3bae218d.htm" target="_blank" rel="noopener"&gt;LabelUtils.GetLabel for BuiltInCategory&lt;/A&gt;? It has been introduced only in Revit 2020, but I need to show the translated list of categories in 2019 and earlier. Thank you in advance!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 19:49:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-analog-of-labelutils-getlabel-builtincategory/m-p/10139961#M27616</guid>
      <dc:creator>Extraneous</dc:creator>
      <dc:date>2021-03-08T19:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: is there any analog of LabelUtils.GetLabel(BuiltIncategory) earlier than 2020?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-analog-of-labelutils-getlabel-builtincategory/m-p/10140075#M27617</link>
      <description>&lt;P&gt;I should think that for all the categories available in the document, you can say:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;    void BuiltInCategoryNames( Document doc )
    {
      Categories categories = doc.Settings.Categories;

      Array bics = Enum.GetValues(
        typeof( BuiltInCategory ) );

      foreach( BuiltInCategory bic in bics )
      {
        try
        {
          Category cat = categories.get_Item( bic );

          Debug.Print( cat.Name );
        }
        catch( Exception )
        {
        }
      }
    }&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Check out The Building Coder samples&amp;nbsp;CmdCategories, especially at the end:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/jeremytammik/the_building_coder_samples/blob/master/BuildingCoder/BuildingCoder/CmdCategories.cs" target="_blank"&gt;https://github.com/jeremytammik/the_building_coder_samples/blob/master/BuildingCoder/BuildingCoder/CmdCategories.cs&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 20:26:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-analog-of-labelutils-getlabel-builtincategory/m-p/10140075#M27617</guid>
      <dc:creator>jeremy_tammik</dc:creator>
      <dc:date>2021-03-08T20:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: is there any analog of LabelUtils.GetLabel(BuiltIncategory) earlier than 2020?</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-analog-of-labelutils-getlabel-builtincategory/m-p/10140134#M27618</link>
      <description>&lt;P&gt;Yes, it was easy, Category.Name shows a translated name of category. It could be guessed by myself &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Thank you Jeremy!&lt;/P&gt;</description>
      <pubDate>Mon, 08 Mar 2021 20:52:09 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/is-there-any-analog-of-labelutils-getlabel-builtincategory/m-p/10140134#M27618</guid>
      <dc:creator>Extraneous</dc:creator>
      <dc:date>2021-03-08T20:52:09Z</dc:date>
    </item>
  </channel>
</rss>

