<?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 Modifying &amp;quot;Keywords&amp;quot; parameter of a Material in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/modifying-quot-keywords-quot-parameter-of-a-material/m-p/8773101#M42596</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to create an add-in which takes data from a Spreadsheet and creates materials in a Revit project. So far I can easily access every property of a Material or AppearanceAssetElement and edit them. All except one, which are the Keywords in the Identity tab (Descriptive Information). I've done research on the subject and I couldn't find any working examples of code. The Material class doesn't have any kind of property or Parameter for this kind of data.&amp;nbsp;&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="Post_RevitLookup_MaterialParameters.PNG" style="width: 566px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/633565i1D25AEFCC0630665/image-dimensions/566x369?v=v2" width="566" height="369" role="button" title="Post_RevitLookup_MaterialParameters.PNG" alt="Post_RevitLookup_MaterialParameters.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have no problems with setting the value of Keywords in Appearance asset for the material (I do it by accessing the "keyword" AssetPropertyString of the asset), but I haven't found a way to access the Keyword property of the Material. I am coding in Revit 2018.3, with updated Visual API, and the documentation did not provide any help on the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, I have accessed the journal file, where I manually edited the Keywords value. It resulted in the following entry:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Jrn.Data "MaterialProperty"  _
        , "", "physmat_Keywords", 1 _
        , 0, "new, test"&lt;/PRE&gt;
&lt;P&gt;So it seems like there is some kind of a property connected to the Material object, but I have no idea how to access it. Is it even possible to edit this property via RevitAPI?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Mon, 06 May 2019 13:13:35 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-05-06T13:13:35Z</dc:date>
    <item>
      <title>Modifying "Keywords" parameter of a Material</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/modifying-quot-keywords-quot-parameter-of-a-material/m-p/8773101#M42596</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am trying to create an add-in which takes data from a Spreadsheet and creates materials in a Revit project. So far I can easily access every property of a Material or AppearanceAssetElement and edit them. All except one, which are the Keywords in the Identity tab (Descriptive Information). I've done research on the subject and I couldn't find any working examples of code. The Material class doesn't have any kind of property or Parameter for this kind of data.&amp;nbsp;&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="Post_RevitLookup_MaterialParameters.PNG" style="width: 566px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/633565i1D25AEFCC0630665/image-dimensions/566x369?v=v2" width="566" height="369" role="button" title="Post_RevitLookup_MaterialParameters.PNG" alt="Post_RevitLookup_MaterialParameters.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I have no problems with setting the value of Keywords in Appearance asset for the material (I do it by accessing the "keyword" AssetPropertyString of the asset), but I haven't found a way to access the Keyword property of the Material. I am coding in Revit 2018.3, with updated Visual API, and the documentation did not provide any help on the issue.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Additionally, I have accessed the journal file, where I manually edited the Keywords value. It resulted in the following entry:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Jrn.Data "MaterialProperty"  _
        , "", "physmat_Keywords", 1 _
        , 0, "new, test"&lt;/PRE&gt;
&lt;P&gt;So it seems like there is some kind of a property connected to the Material object, but I have no idea how to access it. Is it even possible to edit this property via RevitAPI?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 06 May 2019 13:13:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/modifying-quot-keywords-quot-parameter-of-a-material/m-p/8773101#M42596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-06T13:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Modifying "Keywords" parameter of a Material</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/modifying-quot-keywords-quot-parameter-of-a-material/m-p/8779923#M42597</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;So can anyone give me a hint, is it even possible to change this Material property through Revit API?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 May 2019 06:52:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/modifying-quot-keywords-quot-parameter-of-a-material/m-p/8779923#M42597</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-05-09T06:52:30Z</dc:date>
    </item>
  </channel>
</rss>

