BIM Coordinator Program (INT) April 22, 2024

Find the next step in your career as a Graphisoft Certified BIM Coordinator!

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];
Learn and get certified!