cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Streamline your workflows and master BIM coordination! Program starts April 28!

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

Get elements of the same type by GUID

Emkave
Enthusiast

Hello everyone. I am trying to implement one functionality where I use a GUID of an element "A" to iterate over the elements ("B", "C", "D"...) that match the type of element "A".

So by using a guid of a door I want then to iterate over the other doors that are the similar instance.

 

Thanks for the help in advance!

1 REPLY 1
LChen
Graphisoft

Hi, Sorry I'm not so clear what you'd like to do. the guid is generated automatically by Archicad when you placed on floor plan, or each object has its own guid which is stored in gdl library part (API_LibPart.ownUnID). If you'd identify whether the instance of 'A' and 'B' are the same type (door, for example), then you can check whether the value of element.door.openingBase.libInd is the same or not.

HTH.  

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!