The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Discussions about using GRAPHISOFT's tools (API DevKit) for independent software developers

Moderators: Karl Ottenstein, LaszloNagy, ejrolon, Barry Kelly, gkmethy, rmasaki, MOREH Tamas, Akos Somorjai, Ed Brown, Mihály Palenik, Tibor Lorántfy

#299185
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)[j];
for (i = begInd; i < endInd; i++) {
begC = (*relData.coords);
endC = (*relData.coords)[i + 1];
}
}