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

How to determine the angle at the end of the wall?

Not applicable
API_WallType has a "poly" property.
But it contains the original polygon of the original wall without taking into account the docking.

Not applicable
O'h I'm sorry.
In API guide described API_WallRelation, that contains needed polygon.
For my aim this code works.

API_Polygon* poly;
API_WallRelation relData;

poly = &relData.connPoly;

for (j = 1; j <= poly->nSubPolys; j++) {
begInd = (*relData.pends)[j - 1] + 1;
endInd = (*relData.pends);
for (i = begInd; i < endInd; i++) {
begC = (*relData.coords);
endC = (*relData.coords)[i + 1];

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!