2024-05-30 01:49 PM
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.
Solved! Go to Solution.
2024-05-31 10:21 AM
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.
2024-05-30 02:31 PM
I am guessing but isn't API_BuildingMaterialType.cutMaterial the property you are looking for?
2024-05-30 02:52 PM
I'm getting empty results from there
2024-05-30 03:44 PM
What do yo mean by empty? The property is an object API_AttributeIndex.
2024-05-31 10:21 AM
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.
2024-05-31 12:44 PM
Worked! Thank you guys so much!