<?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: How to get a material's AssetProperties by Asset schema in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/8623774#M44077</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Dear Ehsan,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your update.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;No problem at all.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Glad that Jim's answer resolves your question.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Basically, all I wanted to say is:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;All threads submitted to this forum by ADN members are automatically escalated to ADN cases, so you do not have to do anything extra yourself at all&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 27 Feb 2019 06:25:30 GMT</pubDate>
    <dc:creator>jeremytammik</dc:creator>
    <dc:date>2019-02-27T06:25:30Z</dc:date>
    <item>
      <title>How to get a material's AssetProperties by Asset schema</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/8612189#M44072</link>
      <description>&lt;P&gt;I am trying to read the content of AppearanceAssetElement instances for a given material. I am following the instructions give in Boris Shafiro AU presentation about Schemas (&lt;A href="https://www.autodesk.com/autodesk-university/class/New-API-Modify-Visual-Appearance-Materials-Revit-2017#video" target="_blank"&gt;https://www.autodesk.com/autodesk-university/class/New-API-Modify-Visual-Appearance-Materials-Revit-2017#video&lt;/A&gt;) and I have a few questions, I get the asset like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;ElementId appearanceAssetId = material.AppearanceAssetId;&lt;/P&gt;
&lt;P&gt;var appearanceAssetElem = document.GetElement(appearanceAssetId) as AppearanceAssetElement;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Asset asset = appearanceAssetElem.GetRenderingAsset();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First question. What's the appropriate way to get the schema of an asset? I can "guess" the schema by looking at asset.Name. That gives me something like "CeramicSchema" which I assume means this asset belongs to&amp;nbsp;&lt;A href="http://www.revitapidocs.com/2019/f5a10581-6ac2-be19-0e32-f87d05bc8b83.htm" target="_blank"&gt;Autodesk.Revit.DB.Visual&lt;/A&gt;.Ceramic schema, but is there an enum or static field that would be more reliable?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So now I can get the properties like this:&lt;/P&gt;
&lt;P&gt;AssetProperty certamicPattern = asset[Ceramic.CeramicPattern];&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but that wouldn't capture all the asset properties, in fact, with this strategy I would lose more than half of the asset properties. Some of them are from the SchemaCommon, but then there are some that I am not quite sure which (if any) schema they belong to, these are a few names that I get when simply iterating over all the asset properties:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;- AdvancedUIDefinition&lt;/P&gt;
&lt;P&gt;- AssetLibID&lt;/P&gt;
&lt;P&gt;- ExchangeGUID&lt;/P&gt;
&lt;P&gt;- ImplementationGeneric&lt;/P&gt;
&lt;P&gt;- ...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Should I simply Ignore everything that doesn't fit into SchemaCommon or Ceramic schema? Is there a schema somewhere that I am missing?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for the help!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 18:07:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/8612189#M44072</guid>
      <dc:creator>ebarMLN7G</dc:creator>
      <dc:date>2019-02-21T18:07:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a material's AssetProperties by Asset schema</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/8612794#M44073</link>
      <description>&lt;P&gt;One important detail that i forgot to mention is that I need to store the information in an external format and I need to know in advance what all the property assets are. That's why the schema are so helpful for me. I can look at a schema's property and predetermine all the property assets that I need to collect.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Feb 2019 21:45:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/8612794#M44073</guid>
      <dc:creator>ebarMLN7G</dc:creator>
      <dc:date>2019-02-21T21:45:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a material's AssetProperties by Asset schema</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/8618645#M44074</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Ehsan,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your query.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;You escalated it manually twice to ADN, the Autodesk Developer Network technical support.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Before you did so, it was already escalated automatically as well, since you submitted this thread using an email address registered as an ADN member.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;All threads submitted here by ADN members are automatically escalated to ADN.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;We now have three identical ADN cases for this:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;SPAN&gt;15094157 [How to get a material's AssetProperties by Asset schema]&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;15097692 [How to get a material's AssetProperties by Asset schema]&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;15098327 [How to get a material's AssetProperties by Asset schema]&lt;/SPAN&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am closing the latter two as duplicates of the first.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;My colleague Jim Jia is exploring the first for you.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for refraining from duplicating cases in future.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 11:16:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/8618645#M44074</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-02-25T11:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a material's AssetProperties by Asset schema</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/8619127#M44075</link>
      <description>&lt;P&gt;&lt;EM&gt;Dear Ehsan,&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;gt; Is there an enum or static field to identity what kind of the asset belongs to?&lt;/EM&gt;&lt;BR /&gt;Per communication and investigation, I am sorry to say that there is currently no straightforward API access to this functionality. You have to get this information from another way, for example, you can get it from Name property or UIDefinition asset property.&lt;BR /&gt;If you still think this is important to you, it's recommended to post your request in official vote forum here: &lt;A href="http://forums.autodesk.com/t5/revit-ideas/idb-p/302/tab/most-recent" target="_blank"&gt;http://forums.autodesk.com/t5/revit-ideas/idb-p/302/tab/most-recent&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;gt;&amp;gt; More items are found while iterating over all asset properties, why?&lt;BR /&gt;The reason is like what you said, there are some common properties in assets. It's also useful part of Autodesk entire Material library, this is not Revit specific. Some other software may use them for certain purpose.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Besides, this page has similar discussion on material&amp;amp;texture API, FYI:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://forums.autodesk.com/t5/revit-api-forum/revit-api-materials-and-textures/m-p/5538937#M9081" target="_blank"&gt;https://forums.autodesk.com/t5/revit-api-forum/revit-api-materials-and-textures/m-p/5538937#M9081&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Feb 2019 14:43:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/8619127#M44075</guid>
      <dc:creator>JimJia</dc:creator>
      <dc:date>2019-02-25T14:43:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a material's AssetProperties by Asset schema</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/8623225#M44076</link>
      <description>&lt;P&gt;Hi Jeremy, sorry for the inconvenience, was not aware of how the escalating system works.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Ehsan&lt;/P&gt;</description>
      <pubDate>Tue, 26 Feb 2019 22:28:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/8623225#M44076</guid>
      <dc:creator>ebarMLN7G</dc:creator>
      <dc:date>2019-02-26T22:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a material's AssetProperties by Asset schema</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/8623774#M44077</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Dear Ehsan,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you for your update.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;No problem at all.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Glad that Jim's answer resolves your question.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Basically, all I wanted to say is:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;All threads submitted to this forum by ADN members are automatically escalated to ADN cases, so you do not have to do anything extra yourself at all&amp;nbsp; &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Feb 2019 06:25:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/8623774#M44077</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2019-02-27T06:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get a material's AssetProperties by Asset schema</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/12901979#M44078</link>
      <description>&lt;P&gt;Hi everyone, it has been a while since, is there any update with the mapping of Material class and Schema?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jul 2024 02:49:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/how-to-get-a-material-s-assetproperties-by-asset-schema/m-p/12901979#M44078</guid>
      <dc:creator>longt61</dc:creator>
      <dc:date>2024-07-17T02:49:02Z</dc:date>
    </item>
  </channel>
</rss>

