License Delivery maintenance is expected to occur on Saturday, November 30, between 8 AM and 11 AM CET. This may cause a short 3-hours outage in which license-related tasks: license key upload, download, update, SSA validation, access to the license pool and Graphisoft ID authentication may not function properly. We apologize for any inconvenience.
Archicad C++ API
About Archicad add-on development using the C++ API.

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

Anonymous
Not applicable
API_WallType has a "poly" property.
But it contains the original polygon of the original wall without taking into account the docking.
1 REPLY 1
Anonymous
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];
}
}