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

API_WallType refMat, sidMat, oppMat

Fermat
Participant

From ArchiCAD 27 when I look for the wall materials values during debug session, the 'hasValue' field is set to true or false correctly due to what has been set inside the wall settings dialog but the index of the material is different from 0 only is the materials are override.

Till ArchiCAD 26 the material index was fill with the right value even if it was not override.

I need the index of the material even if the override flag isn't set.

Can someone help me?


2.png
1 ACCEPTED SOLUTION

Accepted Solutions
Solution
LChen
Graphisoft
Graphisoft

Hi,

From Archicad27, if the wall 'hasValue' is false (not override), it means the material(surface) for representation is from building material, so you need to refer 'buildingMaterial' parameter and get the surface index from it.

HTH. 

View solution in original post

1 REPLY 1
Solution
LChen
Graphisoft
Graphisoft

Hi,

From Archicad27, if the wall 'hasValue' is false (not override), it means the material(surface) for representation is from building material, so you need to refer 'buildingMaterial' parameter and get the surface index from it.

HTH. 

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!