<?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 access custom image in carpet object in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/access-custom-image-in-carpet-object/m-p/298759#M3892</link>
    <description>&lt;DIV class="actalk-migrated-content"&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;how to access the "use image" option inside the Archicad carpet object for example? See image for details.&lt;BR /&gt;&lt;BR /&gt;Whe I access the Material using ModelerAPI, Archicad tells me, that there is no texture inside this material. My method is working fine with other elements like walls where I get the texture, if there is one:&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;ModelerAPI::Material material;
polygon.GetMaterial(&amp;amp;material);

if (material.HasTexture()) {
    ModelerAPI::Texture texture;
    material.GetTexture(&amp;amp;texture);
}
&lt;/PRE&gt;
Thanks&lt;BR /&gt;Source&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/68770iA5240A886C6B4120/image-size/large?v=v2&amp;amp;px=999" border="0" alt="1.png" title="1.png" /&gt;</description>
    <pubDate>Tue, 06 Dec 2022 13:02:55 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-06T13:02:55Z</dc:date>
    <item>
      <title>access custom image in carpet object</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/access-custom-image-in-carpet-object/m-p/298759#M3892</link>
      <description>&lt;DIV class="actalk-migrated-content"&gt;Hi all,&lt;BR /&gt;&lt;BR /&gt;how to access the "use image" option inside the Archicad carpet object for example? See image for details.&lt;BR /&gt;&lt;BR /&gt;Whe I access the Material using ModelerAPI, Archicad tells me, that there is no texture inside this material. My method is working fine with other elements like walls where I get the texture, if there is one:&lt;BR /&gt;
&lt;PRE&gt;&lt;I&gt;
&lt;/I&gt;ModelerAPI::Material material;
polygon.GetMaterial(&amp;amp;material);

if (material.HasTexture()) {
    ModelerAPI::Texture texture;
    material.GetTexture(&amp;amp;texture);
}
&lt;/PRE&gt;
Thanks&lt;BR /&gt;Source&lt;/DIV&gt;&lt;BR /&gt;&lt;IMG src="http://community.graphisoft.com/t5/image/serverpage/image-id/68770iA5240A886C6B4120/image-size/large?v=v2&amp;amp;px=999" border="0" alt="1.png" title="1.png" /&gt;</description>
      <pubDate>Tue, 06 Dec 2022 13:02:55 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/access-custom-image-in-carpet-object/m-p/298759#M3892</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-06T13:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: access custom image in carpet object</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/access-custom-image-in-carpet-object/m-p/364389#M3893</link>
      <description>&lt;P&gt;Maybe a late answer helps others:&lt;/P&gt;
&lt;P&gt;The Carpet object builds a model with a blank white material, and displays a picture independent from the material (picture GDL command).&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2022 10:09:28 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/access-custom-image-in-carpet-object/m-p/364389#M3893</guid>
      <dc:creator>Peter Baksa</dc:creator>
      <dc:date>2022-12-08T10:09:28Z</dc:date>
    </item>
  </channel>
</rss>

