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.

How determine groups on next level from current group?

Anonymous
Not applicable
API 19 Win.

Hello!
Help me please!)
I have this structure:

Group1 -> (Element1,Element2,Group2,...)
Group2 -> (Element3,..,GroupN)

I know guid of Group1.

How can I determine only next level groups from Group1?
Where I can give guid of Group2 from Group1?

Thank You!
1 REPLY 1
Anonymous
Not applicable
It works:

GSErrCode ACAPI_ElementGroup_GetGroup (
API_Guid const& elemGuid
API_Guid* groupGuid
);

Instead elemGuid have to substitute the guid of the current group, then the function returns the guid of the group, the next level up.

It is obvious that function was conceived for this aim)).
Thank you!)
Learn and get certified!