Get elements of the same type by GUID
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
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!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
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.