Choose your top Archicad wishes!

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

AC23 API_OpeningType

pro
Newcomer
Hi.
While experimenting with creating/updating a API_OpeningType element with AC23 sdk, i encountered some anomalies as described below.
1. AddOn examples called "Element_Test" has a function "Do_CreateOpening" that does not work. Looking further i found that ACAPI_Element_Get crashes for API_OpeningType

API_Element			element;
BNClear (element);
element.header.typeID = API_WallID;
element.header.guid = wallGuid;
err = ACAPI_Element_Get (&element);
This will crash AC23.

2. White creating an wall opening with ACAPI_Element_Create function we cannto set the the API_Guid of element with a custom string. This is possible with other elements such as Wall, Beam etc.

3. While updating an existing opening, extrusionGeometryData.frame.basePoint co-ordinates cannot be modified. There is no indication in api documentation whether extrusionGeometryData.frame is immutable.

I am not sure if this is the right forum to discuss/report these issues. Any comments/suggestions will be helpful.

Thanks,
Prasenjit
0 REPLIES 0