cancel
Showing results for 
Search instead for 
Did you mean: 
EN
cancel
Showing results for 
Search instead for 
Did you mean: 
vesalaasanen
Contributor

Getting API_CWallComponent surface textures

I'm trying to retrieve these surface materials of composite wall via API. I'm getting the API_CWallComponents and for each a API_BuildingMaterialID and from there a header name. Like in the picture example "Concrete". What I need is the surface "Concrete - 04" and the associated texture "Concrete - 04 cb -opt", but I cannot find a way to access them.


buildingmaterial.png
1 Solution

Accepted Solutions

The value of API_BuildingMaterialType.cutMaterial is the index of an API_MaterialType attribute. Use ACAPI_Attribute_Get with this index to look up the relevant API_MaterialType, which will provide you with the name etc.

Ralph Wessel BArch
Central Innovation

Go to post

5 Replies 5
Miha Nahtigal
Expert

I am guessing but isn't API_BuildingMaterialType.cutMaterial the property you are looking for?

BIMquants.comBETA - Quantities and Costs Estimation in Archicad - BETA testers needed.
vesalaasanen
Contributor

I'm getting empty results from there

Miha Nahtigal
Expert

What do yo mean by empty? The property is an object API_AttributeIndex.

BIMquants.comBETA - Quantities and Costs Estimation in Archicad - BETA testers needed.

The value of API_BuildingMaterialType.cutMaterial is the index of an API_MaterialType attribute. Use ACAPI_Attribute_Get with this index to look up the relevant API_MaterialType, which will provide you with the name etc.

Ralph Wessel BArch
Central Innovation
vesalaasanen
Contributor

Worked! Thank you guys so much! 

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!