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

Undocumented AC28 API change: ACAPI_IFC_APIGuidToIFCGuid

torokze
Participant

The API function ACAPI_IFC_APIGuidToIFCGuid has been removed from the Archicad 28 SDK. There is no information about the removal and replacement. Can I get more info?

Thanks

2 REPLIES 2

Hi!


I haven't used it myself, but from the example project IFC_Test I think the new equivalent mechanism is:

API_Elem_Head head{};
head.guid = elementGuid;
auto objectID = IFCAPI::GetObjectAccessor ().CreateElementObjectID (head);

Maybe you also need GetGlobalId. Also check out IFCAPI::v1::ObjectAccessor and the mentioned example project.

 

Hope that helps,
Bernd

vesalaasanen
Contributor

Did you get this working? Struggling with the same issue here.

Didn't find the answer?

Check other topics in this Forum

Back to Forum

Read the latest accepted solutions!

Accepted Solutions

Start a new conversation!