<?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: Exporting Revit 2017 model materials using a CustomExporter and IExportConte in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/7257989#M61269</link>
    <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;Thank u for your reply. Now same question confused me. How can I get texture bitmap. I have read you blog:&lt;/P&gt;&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/07/texture-bitmap-and-uv-coordinates.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/07/texture-bitmap-and-uv-coordinates.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;that inspired me a lot.&lt;/P&gt;&lt;P&gt;But&amp;nbsp; I still have some questions.&lt;!--   Custom fonts for this template   --&gt;&lt;!--   Bootstrap core CSS   --&gt;&lt;!--   Bootstrap bridge   --&gt;&lt;!--   Custom styles for this template   --&gt;&lt;/P&gt;&lt;DIV class="container"&gt;&lt;DIV class="pkg"&gt;&lt;DIV class="row"&gt;&lt;DIV&gt;&lt;DIV class="pkg"&gt;&lt;DIV class="col-xs-12 col-sm-8 col-md-8 col-lg-8"&gt;&lt;DIV class="pkg"&gt;&lt;DIV class="entry-category-2014 entry-category-data_access entry-category-element_relationships entry-category-export entry-category-family entry-category-fbx entry-category-ifc entry-category-material entry-author-jeremy_tammik entry-type-post entry"&gt;&lt;DIV class="entry-inner"&gt;&lt;DIV class="entry-content"&gt;&lt;DIV class="entry-body"&gt;&lt;P&gt;I wonder how can you obtain the desired bitmap. Is the method you mentioned "Create a screen snapshot of that" ? Can you speak more detail about this?&lt;/P&gt;&lt;P&gt;Is it done manually through some windows screenshot tool?&amp;nbsp;That sounds a little stupid...&lt;/P&gt;&lt;P&gt;Another question is how can i do "1.Create a new temporary project 2.Create a large cube 3.Assign it the desired material 4.Create a screen snapshot of that" automally or through revit api? Can you have demo or code for this .&lt;/P&gt;&lt;P&gt;Looking forward your reply!&lt;/P&gt;&lt;P&gt;R&lt;SPAN&gt;egards&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 27 Jul 2017 10:57:02 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-07-27T10:57:02Z</dc:date>
    <item>
      <title>Exporting Revit 2017 model materials using a CustomExporter and IExportContext</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/6771690#M61265</link>
      <description>&lt;P&gt;We are attempting to utilize a CustomExporter and IExportContext to pull the geometry and materials from a Revit 2017 model. We seem to be having solid success at retrieving the &amp;nbsp;geometry from the various "OnElement...", "OnMaterial..", and "OnPolyMesh" methods. However, we have not figured out where to look for the materials.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are looking to utilize the geometry and materials to perform a custom 3d view in an external product. Just to make sure that I am using the correct terminology, we have the geometry to display the model, but do not have the information from the model that would allow us to display the geometry with the color and/or graphics that would &amp;nbsp;be needed to display their surfaces correctly in a rendering. I am using the term "material" to describe that graphical information that &amp;nbsp;would be needed to add to the geometry in order to render the model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am looking for:&lt;/P&gt;&lt;P&gt;1 - Suggestions on where we can look for the above information from our Revit2017 AddIn&lt;/P&gt;&lt;P&gt;2 - Any examples if this type off an export... I thought &amp;nbsp;I saw an example that&amp;nbsp;Jeremy (Tammik) had done a couple weeks ago that exported a Revit model to a web viewing 3d format that looked like it included the information that I am looking for, but I can't seem to find it now.&lt;/P&gt;&lt;P&gt;3 - Detailed documentation on CustomExporter and IExportContext.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks much for any assistance or direction you can provide.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Eric&lt;/P&gt;</description>
      <pubDate>Tue, 27 Dec 2016 21:23:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/6771690#M61265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-12-27T21:23:15Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Revit 2017 model materials using a CustomExporter and IExportConte</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/6775853#M61266</link>
      <description>&lt;P&gt;Dear Eric,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Maybe this is the post that you are thinking of?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/07/revit-2014-obj-exporter-and-new-sdk-samples.html#2" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/07/revit-2014-obj-exporter-and-new-sdk-samples.html#2&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2012/07/obj-model-exporter-with-colours.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2012/07/obj-model-exporter-with-colours.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is some more on the thorny issue of accessing bitmaps and UV coordinates:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/07/texture-bitmap-and-uv-coordinates.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/07/texture-bitmap-and-uv-coordinates.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Material assignment in Revit is complex in itself:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/08/attributes-relationships-and-other-stuff.html#6" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/08/attributes-relationships-and-other-stuff.html#6&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A couple of The Building Coder topic groups collect some discussions on the topic:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.24" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.24&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.5" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.5&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/material/" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/material/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All that I know about the custom exporter is also listed there:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.1" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/about-the-author.html#5.1&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please let us know how you get on with this, and what solution you end up with.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you!&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;</description>
      <pubDate>Fri, 30 Dec 2016 11:07:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/6775853#M61266</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2016-12-30T11:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Revit 2017 model materials using a CustomExporter and IExportConte</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/6788211#M61267</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Jeremy,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your response. I have been going through and reading each of the articles that you have referenced. I am still searching for how to best get the graphic associated with the texture mapping (materials was the term I used in my initial post) from within our Revit AddIn. I have also done some research into how architects would likely set this value from within the Revit 2017 product.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I believe that the property I am attempting to retrieve from the model is the "Image" file name that is set in the "Appearance" tab of the "Material Browser" from the "Edit Type" and "Edit Assembly" dialog boxes. Yes, that is quite a series of steps. Let me try to explain and I will send some screen shots as well. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Example:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;1 - Open Revit 2017&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;2 - Create a standard wall (Basic Concrete will be fine)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;3 - Select the "Edit Type" button from the properties windows&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;4 - From the "Type Properties" dialog, select the "Edit..." button next to the "Structure" field (screenshot1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;5 - From the "Edit Assembly" dialog, click on the "Material" field, and select the small "..." button within the field to bring up the "material Browser" dialog (screenshot2... "..." button circled in red)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;6 - From the "Material Browser" dialog, click on the "Appearance" tab&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;7 - From the "Appearance" tab, click on the file name directly below the "Image" field to bring up the "Select File" dialog to select a high resolution image to associate with the original wall that we inserted in step 2. Note that the file name does not look like a button, but responds like one when clicked on (screeshot3... "Appearance" tab and "file name" button circled in red)&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;I believe that what I am looking for is the file name (full path name would be even better) for the file that is shown. In my example and screen shots, the file name is "Finishes.Masonry Flooring.Terrazzo.Tan.1.jpg" and it is stored in the "Program Files (x86)\Common Files\Autodesk Shared\Materials\Textures\1\Mats\" folder. I believe that my Revit 2017 installation utilized all of the default folder locations.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Any suggestions on how I could get access to the field that contains the file name? Or any other suggestions on how an architect would/should better select a texture or material graphic for rendering or detailed display of a Revit 2017 model?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 17:39:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/6788211#M61267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-06T17:39:03Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Revit 2017 model materials using a CustomExporter and IExportConte</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/6789515#M61268</link>
      <description>&lt;P&gt;Rudolf Honke aka&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/1103138"&gt;@Revitalizer&lt;/a&gt;&amp;nbsp;provided a workaround that might help:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/07/texture-bitmap-and-uv-coordinates.html#3" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/07/texture-bitmap-and-uv-coordinates.html#3&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;</description>
      <pubDate>Sat, 07 Jan 2017 13:12:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/6789515#M61268</guid>
      <dc:creator>jeremytammik</dc:creator>
      <dc:date>2017-01-07T13:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Revit 2017 model materials using a CustomExporter and IExportConte</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/7257989#M61269</link>
      <description>&lt;P&gt;Hi Jeremy,&lt;/P&gt;&lt;P&gt;Thank u for your reply. Now same question confused me. How can I get texture bitmap. I have read you blog:&lt;/P&gt;&lt;P&gt;&lt;A href="http://thebuildingcoder.typepad.com/blog/2013/07/texture-bitmap-and-uv-coordinates.html" target="_blank"&gt;http://thebuildingcoder.typepad.com/blog/2013/07/texture-bitmap-and-uv-coordinates.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;that inspired me a lot.&lt;/P&gt;&lt;P&gt;But&amp;nbsp; I still have some questions.&lt;!--   Custom fonts for this template   --&gt;&lt;!--   Bootstrap core CSS   --&gt;&lt;!--   Bootstrap bridge   --&gt;&lt;!--   Custom styles for this template   --&gt;&lt;/P&gt;&lt;DIV class="container"&gt;&lt;DIV class="pkg"&gt;&lt;DIV class="row"&gt;&lt;DIV&gt;&lt;DIV class="pkg"&gt;&lt;DIV class="col-xs-12 col-sm-8 col-md-8 col-lg-8"&gt;&lt;DIV class="pkg"&gt;&lt;DIV class="entry-category-2014 entry-category-data_access entry-category-element_relationships entry-category-export entry-category-family entry-category-fbx entry-category-ifc entry-category-material entry-author-jeremy_tammik entry-type-post entry"&gt;&lt;DIV class="entry-inner"&gt;&lt;DIV class="entry-content"&gt;&lt;DIV class="entry-body"&gt;&lt;P&gt;I wonder how can you obtain the desired bitmap. Is the method you mentioned "Create a screen snapshot of that" ? Can you speak more detail about this?&lt;/P&gt;&lt;P&gt;Is it done manually through some windows screenshot tool?&amp;nbsp;That sounds a little stupid...&lt;/P&gt;&lt;P&gt;Another question is how can i do "1.Create a new temporary project 2.Create a large cube 3.Assign it the desired material 4.Create a screen snapshot of that" automally or through revit api? Can you have demo or code for this .&lt;/P&gt;&lt;P&gt;Looking forward your reply!&lt;/P&gt;&lt;P&gt;R&lt;SPAN&gt;egards&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 27 Jul 2017 10:57:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/7257989#M61269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-27T10:57:02Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Revit 2017 model materials using a CustomExporter and IExportConte</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/7258446#M61270</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've lost the code for that approach, but&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I remember that I used a Family in the shape of a box with an material parameter, residing in the center of a new project file.&lt;/P&gt;
&lt;P&gt;I think I did that manually, creating the simple family and placing it into an empty project file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then for each material in the project file, I assigned it to the placed FamilyInstance's material Parameter, via API.&lt;/P&gt;
&lt;P&gt;After this, I took a screenshot via Windows API.&lt;/P&gt;
&lt;P&gt;I think this can now be replaced by document.Export overload which enables you to generate image files without that Windows API approach.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;After all, the exported image files not only contain the material sample but also much white areas, so they need to be cropped.&lt;/P&gt;
&lt;P&gt;The view is larger than the box.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also think that a material is more than just a single texture bitmap.&lt;/P&gt;
&lt;P&gt;There may be additional bump maps, opacity maps and so on, but the generated image just displays the resulting composite image, not the texture bitmap alone.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I really do not recommend such a workaround.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2017 14:16:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/7258446#M61270</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2017-07-27T14:16:40Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Revit 2017 model materials using a CustomExporter and IExportConte</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/7260114#M61271</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Revitalizer,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your reply. In fact, in&amp;nbsp;Jeremy's blog he mentioned "&lt;!--  Custom fonts for this template  --&gt;&lt;!--  Bootstrap core CSS  --&gt;&lt;!--  Bootstrap bridge  --&gt;&lt;!--  Custom styles for this template  --&gt; The Building Coder: Texture Bitmap and UV Coordinates&amp;nbsp;&lt;/SPAN&gt;it might be better to grab the screen image directly rather than passing it through the Document.ExportImage method&lt;SPAN&gt;". After read you reply, I really understand what Jeremy's&amp;nbsp;mean and why you do not recommend this method.&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;But I'm still curious about how to&amp;nbsp;grab the screen image directly or get the path of texture bitmap. Anyway, thank you for your reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 01:41:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/7260114#M61271</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-28T01:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Revit 2017 model materials using a CustomExporter and IExportConte</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/7260777#M61272</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;there may be another way to get the paths of the texture files.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Export your model to a DXF file.&lt;/P&gt;
&lt;P&gt;In my case, I selected the DXF2018 format.&lt;/P&gt;
&lt;P&gt;This DXF is a plain text file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The material I'm looking for has the ID 96504.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can find something like this in the DXF file:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[...]&lt;/P&gt;
&lt;P&gt;AcDbMaterial&lt;BR /&gt;&amp;nbsp; 1&lt;BR /&gt;RevitMaterialDefinition&lt;U&gt;&lt;STRONG&gt;96504&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&amp;nbsp;70&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp;90&lt;BR /&gt;-1026186137&lt;BR /&gt;&amp;nbsp;71&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp;91&lt;BR /&gt;-1026186137&lt;BR /&gt;&amp;nbsp; 3&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;C:/Program Files (x86)/Common Files/Autodesk Shared/Materials/Textures/\1/Mats/Woods &amp;amp; Plastics.Finish Carpentry.Wood.Red Birch.png&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&amp;nbsp;73&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp;44&lt;/P&gt;
&lt;P&gt;[...]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you only need to correct the backslash-slash sequence /\ to get a valid file path.&lt;/P&gt;
&lt;P&gt;It would be interesting if you can get also user defined image paths since this is a material which references Autodesk's common material library.&lt;/P&gt;
&lt;P&gt;Also, if there is more than one image used in a material's definition (texture, opacity etc.), how to discern them...?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 09:39:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/7260777#M61272</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2017-07-28T09:39:57Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Revit 2017 model materials using a CustomExporter and IExportConte</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/7260819#M61273</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I've defined a new material and assigned a custom image file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I got this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[...]&lt;/P&gt;
&lt;P&gt;AcDbMaterial&lt;BR /&gt;&amp;nbsp; 1&lt;BR /&gt;RevitMaterialDefinition248403&lt;BR /&gt;&amp;nbsp;70&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp;71&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp; 3&lt;BR /&gt;&lt;U&gt;&lt;STRONG&gt;D:\Test.jpg&lt;/STRONG&gt;&lt;/U&gt;&lt;BR /&gt;&amp;nbsp;73&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1&lt;BR /&gt;&amp;nbsp;44&lt;/P&gt;
&lt;P&gt;[...]&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Seems that you only need to read the line after the " 3" line.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Revitalizer&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jul 2017 10:04:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/7260819#M61273</guid>
      <dc:creator>Revitalizer</dc:creator>
      <dc:date>2017-07-28T10:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Revit 2017 model materials using a CustomExporter and IExportConte</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/7263648#M61274</link>
      <description>&lt;P&gt;Hi &lt;SPAN&gt;Revitalizer,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you for your kind help. I'm sry to reply you so late for some reasons. Now I can get dxf file automaticly through&amp;nbsp;Document.Export(String, String, ICollection&amp;lt;ElementId&amp;gt;, DXFExportOptions) method. And then I can use a python script to pick up the bitmap file path from dxf file. &amp;nbsp;Finally, I use Copy(filepath) to get what I want.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;BTW, instead of&amp;nbsp;reading the line after the " 3" line, finding the key word "BitmapFile filename" will be more&amp;nbsp;accurate because there are many lines like " &amp;nbsp;3"," &amp;nbsp; 3"," &amp;nbsp; &amp;nbsp; 3" etc.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;PS: it's correct even though&amp;nbsp;you had more than one image texture.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;Young Wang&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 30 Jul 2017 08:01:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/7263648#M61274</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-07-30T08:01:23Z</dc:date>
    </item>
    <item>
      <title>Re: Exporting Revit 2017 model materials using a CustomExporter and IExportConte</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/8029888#M61275</link>
      <description>&lt;P&gt;Hi wbq9224,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you explain more how do you export the dxf file using the method that you mentioned?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;(Document.Export(String, String, ICollection&amp;lt;ElementId&amp;gt;, DXFExportOptions) method.)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 May 2018 10:26:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/exporting-revit-2017-model-materials-using-a-customexporter-and/m-p/8029888#M61275</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-05-28T10:26:57Z</dc:date>
    </item>
  </channel>
</rss>

