cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
License Delivery maintenance is expected to occur on Saturday, October 19, between 4 and 6 PM CEST. This may cause a short 60-minute outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool may not function properly. We apologize for any inconvenience.
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