<?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: Categories that can create legend components in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9659069#M32899</link>
    <description>&lt;P&gt;Thanks to both for your anwsers, as&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1035859"&gt;@RPTHOMAS108&lt;/a&gt;&amp;nbsp;, I also havent found any solution for this through API so I have ended up checking and making the list manually. I put it here in case someone looking for the same thing comes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FamilyInstances = [“OST_DuctAccessory”, “OST_PipeAccessory”, “OST_PlumbingFixtures”, “OST_StructuralFraming”, “OST_StructuralFoundation”, “OST_ElectricalEquipment”, “OST_SpecialityEquipment”, “OST_MechanicalEquipment”, “OST_LightingFixtures”, “OST_Furniture”, “OST_Casework”, “OST_Columns”, “OST_StructuralColumns”, ”OST_Doors”, ”OST_Sprinklers”, “OST_DuctTerminal”, “OST_DuctFitting”, “OST_PipeFitting”, “OST_Planting”, “OST_Windows”];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SystemFamilies = [“OST_CableTray”, ”OST_RoofSoffit”, “OST_Ceilings”, “OST_DuctCurves”, “OST_Roofs”, “OST_Walls”, “OST_StackedWalls”, ”OST_CurtainWallPanels”, “OST_Floors”, ”OST_PipeCurves”, ”OST_FlexPipeCurves”,” OST_Conduit”];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Jul 2020 08:31:35 GMT</pubDate>
    <dc:creator>jjesusdelpino</dc:creator>
    <dc:date>2020-07-28T08:31:35Z</dc:date>
    <item>
      <title>Categories that can create legend components</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9654853#M32896</link>
      <description>&lt;P&gt;Hi there forum. Is there a way to know if a legend component can be created from a determined category? E.G. I can create legend components from cable trays, but I cant do that with railings. I havent seen any specific rule o parameter that specifies this property. Any ideas? Thanks&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jul 2020 10:43:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9654853#M32896</guid>
      <dc:creator>jjesusdelpino</dc:creator>
      <dc:date>2020-07-25T10:43:22Z</dc:date>
    </item>
    <item>
      <title>Re: Categories that can create legend components</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9657012#M32897</link>
      <description>&lt;P&gt;You might have better luck discussing this in the general architectural forum, not the API one.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 09:57:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9657012#M32897</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-07-27T09:57:58Z</dc:date>
    </item>
    <item>
      <title>Re: Categories that can create legend components</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9658428#M32898</link>
      <description>&lt;P&gt;I've found no obvious solution to this via the API i.e. a Boolean property on the category class. I believe also that Legend views don't have a specific class. So there is no static methods available on such for checking category suitability of placed elements that way either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You'll find sketch based system families (floors/Railings/Stairs...) are not applicable since Legend views don't have a sketch plane. If you think about it apart from annotation objects Legend views contain types not instances (since you usually drag the types onto the Legend from the project browser). However there is also no property for this indicated on ElementType class.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jul 2020 21:57:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9658428#M32898</guid>
      <dc:creator>RPTHOMAS108</dc:creator>
      <dc:date>2020-07-27T21:57:38Z</dc:date>
    </item>
    <item>
      <title>Re: Categories that can create legend components</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9659069#M32899</link>
      <description>&lt;P&gt;Thanks to both for your anwsers, as&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1035859"&gt;@RPTHOMAS108&lt;/a&gt;&amp;nbsp;, I also havent found any solution for this through API so I have ended up checking and making the list manually. I put it here in case someone looking for the same thing comes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;FamilyInstances = [“OST_DuctAccessory”, “OST_PipeAccessory”, “OST_PlumbingFixtures”, “OST_StructuralFraming”, “OST_StructuralFoundation”, “OST_ElectricalEquipment”, “OST_SpecialityEquipment”, “OST_MechanicalEquipment”, “OST_LightingFixtures”, “OST_Furniture”, “OST_Casework”, “OST_Columns”, “OST_StructuralColumns”, ”OST_Doors”, ”OST_Sprinklers”, “OST_DuctTerminal”, “OST_DuctFitting”, “OST_PipeFitting”, “OST_Planting”, “OST_Windows”];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SystemFamilies = [“OST_CableTray”, ”OST_RoofSoffit”, “OST_Ceilings”, “OST_DuctCurves”, “OST_Roofs”, “OST_Walls”, “OST_StackedWalls”, ”OST_CurtainWallPanels”, “OST_Floors”, ”OST_PipeCurves”, ”OST_FlexPipeCurves”,” OST_Conduit”];&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 08:31:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9659069#M32899</guid>
      <dc:creator>jjesusdelpino</dc:creator>
      <dc:date>2020-07-28T08:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: Categories that can create legend components</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9659690#M32900</link>
      <description>&lt;P&gt;Thank you very much, both of you, for solving and sharing this result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I cleaned it up by converting the strings to built-in categories and sorting them alphabetically:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;    BuiltInCategory [] _bics_for_FamilyInstance = new BuiltInCategory[]
    {
      BuiltInCategory.OST_Casework,
      BuiltInCategory.OST_Columns,
      BuiltInCategory.OST_Doors,
      BuiltInCategory.OST_DuctAccessory,
      BuiltInCategory.OST_DuctFitting,
      BuiltInCategory.OST_DuctTerminal,
      BuiltInCategory.OST_ElectricalEquipment,
      BuiltInCategory.OST_Furniture,
      BuiltInCategory.OST_LightingFixtures,
      BuiltInCategory.OST_MechanicalEquipment,
      BuiltInCategory.OST_PipeAccessory,
      BuiltInCategory.OST_PipeFitting,
      BuiltInCategory.OST_Planting,
      BuiltInCategory.OST_PlumbingFixtures,
      BuiltInCategory.OST_SpecialityEquipment,
      BuiltInCategory.OST_Sprinklers,
      BuiltInCategory.OST_StructuralColumns,
      BuiltInCategory.OST_StructuralFoundation,
      BuiltInCategory.OST_StructuralFraming,
      BuiltInCategory.OST_Windows };

    BuiltInCategory[] _bics_for_SystemFamily = new BuiltInCategory[]
    {
      BuiltInCategory.OST_CableTray,
      BuiltInCategory.OST_Ceilings,
      BuiltInCategory.OST_Conduit,
      BuiltInCategory.OST_CurtainWallPanels,
      BuiltInCategory.OST_DuctCurves,
      BuiltInCategory.OST_FlexPipeCurves,
      BuiltInCategory.OST_Floors,
      BuiltInCategory.OST_PipeCurves,
      BuiltInCategory.OST_RoofSoffit,
      BuiltInCategory.OST_Roofs,
      BuiltInCategory.OST_StackedWalls,
      BuiltInCategory.OST_Walls };&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for being so ****. &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;Wow, a perfectly normal Freudian psychological expression has been automatically censored and replaced by asterisks:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Anal_retentiveness" target="_blank"&gt;https://en.wikipedia.org/wiki/Anal_retentiveness&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Surprise, surprise. What a world we live in...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The two lists above now reside in The Building Coder samples for posterity:&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" target="_blank" rel="noopener"&gt;https://github.com/jeremytammik/the_building_coder_samples&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jeremy&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 13:47:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9659690#M32900</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-07-28T13:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Categories that can create legend components</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9659768#M32901</link>
      <description>&lt;P&gt;Result saved for posterity:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://thebuildingcoder.typepad.com/blog/2020/07/cyrillic-encoding-and-categories-for-legends.html#2" target="_blank"&gt;https://thebuildingcoder.typepad.com/blog/2020/07/cyrillic-encoding-and-categories-for-legends.html#2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you, guys!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 14:10:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9659768#M32901</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-07-28T14:10:46Z</dc:date>
    </item>
    <item>
      <title>Re: Categories that can create legend components</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9659906#M32902</link>
      <description>&lt;P&gt;In the end I have had to use that list with BuildingCategories in my code so your **** retentivenes has already been proven necesary haha.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 15:06:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9659906#M32902</guid>
      <dc:creator>jjesusdelpino</dc:creator>
      <dc:date>2020-07-28T15:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: Categories that can create legend components</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9659956#M32903</link>
      <description>&lt;P&gt;Glad to hear it was useful for you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am in discussion with friends on the topic of perfection versus the Pareto 80-20 principle:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://en.wikipedia.org/wiki/Pareto_principle" target="_blank"&gt;https://en.wikipedia.org/wiki/Pareto_principle&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I try to favour both.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I see this as an&amp;nbsp; effective demonstration that both can be achieved simultaneously.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In simple cases only, of course.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Luckily, all programming issues are simple, always.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unless someone seriously messed them up.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, the most common case...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 15:21:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/categories-that-can-create-legend-components/m-p/9659956#M32903</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2020-07-28T15:21:32Z</dc:date>
    </item>
  </channel>
</rss>

