We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

Archicad C++ API
About Archicad add-on development using the C++ API.

access custom image in carpet object

Anonymous
Not applicable
Hi all,

how to access the "use image" option inside the Archicad carpet object for example? See image for details.

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:

ModelerAPI::Material material;
polygon.GetMaterial(&material);

if (material.HasTexture()) {
    ModelerAPI::Texture texture;
    material.GetTexture(&texture);
}
Thanks
Source

1.png
1 REPLY 1
Peter Baksa
Graphisoft
Graphisoft

Maybe a late answer helps others:

The Carpet object builds a model with a blank white material, and displays a picture independent from the material (picture GDL command).

Péter Baksa
Software Engineer, Library as a Platform
Graphisoft SE, Budapest