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.

Problem with ACAPI_Goodies(APIAny_TriangulatePolyId)function

Anonymous
Not applicable
Hi,

One of my zone is ended up with hole but I am getting element.zone.poly.nSubPolys = 1. And I am using Archicad 9.0.

I am trying to use ACAPI_Goodies(APIAny_TriangulatePolyId, &memo, &coords); I am getting APIERR_REFUSEDPAR error. I checked for zone.poly structure nCoords = 22, nSubPolys =1 and nArcs = 0, poly_id = 1298. So, there are no arcs in the poly.

I am giving example zone polygon with coordinate values and can you please tell me why this command is failing?
1 REPLY 1
Ralph Wessel
Mentor
Ranga wrote:
I am trying to use ACAPI_Goodies(APIAny_TriangulatePolyId, &memo, &coords); I am getting APIERR_REFUSEDPAR error.
I'm guessing your polygon has coincident edges (2->3 and 6->7) and APIAny_TriangulatePolyId won't accept that.
Ralph Wessel BArch
Learn and get certified!