<?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: Access Imported Category color attributes in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/access-imported-category-color-attributes/m-p/8619521#M44042</link>
    <description>&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The imported materials do show up using "Snoop DB", along with the default materials. See screenshot 1&lt;/P&gt;
&lt;P&gt;But when I try to filter out the materials using&lt;/P&gt;
&lt;PRE&gt;collector.WherePasses(new ElementClassFilter(typeof(Material))).Cast&amp;lt;Material&amp;gt;()&lt;/PRE&gt;
&lt;P&gt;only the default materials are returne (screenshot 2)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me what method is Revit Lookup using to retrieve the imported materials? I am pretty beginner with Visual Studio and C# and couldn't find out how it's done by looking at the source code for Lookup.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Feb 2019 16:45:08 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-02-25T16:45:08Z</dc:date>
    <item>
      <title>Access Imported Category color attributes</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/access-imported-category-color-attributes/m-p/8614582#M44040</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a similar method to IsPainted(ElementId, Face) that can retrieve color information for imported categories?&lt;/P&gt;
&lt;P&gt;When I import a SAT file, I see that the faces retain their color, however this color is lost when I recreate the solids using FreeFormElement.Create(solid).&lt;/P&gt;
&lt;P&gt;If I can maintain that color information from the original import, I can then create materials and apply them to newly created solids.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Feb 2019 15:20:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/access-imported-category-color-attributes/m-p/8614582#M44040</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-22T15:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Access Imported Category color attributes</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/access-imported-category-color-attributes/m-p/8618614#M44041</link>
      <description>&lt;P&gt;All materials and categories are stored centrally in the Revit model.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use RevitLookup to explore them, their properties, and their relationships to your solids:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/jeremytammik/RevitLookup" target="_blank"&gt;https://github.com/jeremytammik/RevitLookup&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Once that is clear, you can probably assign the existing imported categories and materials to newly created forms as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 10:55:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/access-imported-category-color-attributes/m-p/8618614#M44041</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-02-25T10:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: Access Imported Category color attributes</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/access-imported-category-color-attributes/m-p/8619521#M44042</link>
      <description>&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The imported materials do show up using "Snoop DB", along with the default materials. See screenshot 1&lt;/P&gt;
&lt;P&gt;But when I try to filter out the materials using&lt;/P&gt;
&lt;PRE&gt;collector.WherePasses(new ElementClassFilter(typeof(Material))).Cast&amp;lt;Material&amp;gt;()&lt;/PRE&gt;
&lt;P&gt;only the default materials are returne (screenshot 2)&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you tell me what method is Revit Lookup using to retrieve the imported materials? I am pretty beginner with Visual Studio and C# and couldn't find out how it's done by looking at the source code for Lookup.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 16:45:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/access-imported-category-color-attributes/m-p/8619521#M44042</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-25T16:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: Access Imported Category color attributes</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/access-imported-category-color-attributes/m-p/8620402#M44043</link>
      <description>&lt;P&gt;I found the issue,&lt;/P&gt;
&lt;P&gt;I was using document.import() method which for some reason does not retain the color information. I was able to go around this issue by using shapeImporter class.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 21:59:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/access-imported-category-color-attributes/m-p/8620402#M44043</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-02-25T21:59:46Z</dc:date>
    </item>
  </channel>
</rss>

