<?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 texture file in Archicad C++ API</title>
    <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-texture-file/m-p/664954#M10434</link>
    <description>&lt;P&gt;Hi sxs,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this path means, that the file is in the embedded library of the project. It should be accessible if you use the path with file operations from the ACAPI. So you can e.g. copy it to another place in the filesystem to make it accessible with the Windows File Explorer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
    <pubDate>Fri, 06 Jun 2025 05:33:05 GMT</pubDate>
    <dc:creator>BerndSchwarzenbacher</dc:creator>
    <dc:date>2025-06-06T05:33:05Z</dc:date>
    <item>
      <title>How to get texture file</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-texture-file/m-p/664947#M10433</link>
      <description>&lt;P&gt;Hi,everyone:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="cpp"&gt;	API_Component3D	mat = {};

	mat.header.typeID = API_UmatID;
	mat.header.index = iumat;//iumat is input
	
	//
	auto err = ACAPI_ModelAccess_GetComponent(&amp;amp;mat);
        if(err != NoError)
          return;
        //
	std::string texture_path;
	//
	{
		//
		GS::UniString texture_str;
		if (mat.umat.mater.texture.fileLoc)
		{
			err = mat.umat.mater.texture.fileLoc-&amp;gt;ToPath(&amp;amp;texture_str);
			if (err == NoError)
			{
				texture_path = texture_str.ToCStr();
			}

			delete mat.umat.mater.texture.fileLoc;
			mat.umat.mater.texture.fileLoc = nullptr;
		}
		exporter-&amp;gt;PrintLog("texture path ");
		exporter-&amp;gt;PrintLog(texture_path);
		exporter-&amp;gt;PrintLog("\n");
	}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp; This is my code for getting texture,but&amp;nbsp;the output texture path does not exist.&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="sxs_0-1749179467518.png" style="width: 400px;"&gt;&lt;img src="https://community.graphisoft.com/t5/image/serverpage/image-id/87701i85AA7CE1E29AD169/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sxs_0-1749179467518.png" alt="sxs_0-1749179467518.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 03:12:35 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-texture-file/m-p/664947#M10433</guid>
      <dc:creator>sxs</dc:creator>
      <dc:date>2025-06-06T03:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get texture file</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-texture-file/m-p/664954#M10434</link>
      <description>&lt;P&gt;Hi sxs,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think this path means, that the file is in the embedded library of the project. It should be accessible if you use the path with file operations from the ACAPI. So you can e.g. copy it to another place in the filesystem to make it accessible with the Windows File Explorer.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope that helps,&lt;BR /&gt;Bernd&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 05:33:05 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-texture-file/m-p/664954#M10434</guid>
      <dc:creator>BerndSchwarzenbacher</dc:creator>
      <dc:date>2025-06-06T05:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get texture file</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-texture-file/m-p/664955#M10435</link>
      <description>&lt;P&gt;Ok,I got it.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 05:39:06 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-texture-file/m-p/664955#M10435</guid>
      <dc:creator>sxs</dc:creator>
      <dc:date>2025-06-06T05:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get texture file</title>
      <link>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-texture-file/m-p/664956#M10436</link>
      <description>&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jun 2025 05:40:54 GMT</pubDate>
      <guid>https://community.graphisoft.com/t5/Archicad-C-API/How-to-get-texture-file/m-p/664956#M10436</guid>
      <dc:creator>sxs</dc:creator>
      <dc:date>2025-06-06T05:40:54Z</dc:date>
    </item>
  </channel>
</rss>

