Through listing/scheduling ArchiCAD can easily make a list of library parts placed in the project, which follow the chosen criteria.
Is there a way to achieve something similar from a GDL script level?
Let's say the task is to create a library part which makes a live list of all the other library parts placed on the floor plan, and counts them. The lists (one for the names, one for the count) can be stored within this library part as array parameters.
Not sure why this would have to be a schedule or library part, but the Library Manager already gives you this information for each loaded library container or library part (placed objects, placed instances, list of these). As the name implies, this is where you are managing your loaded libraries, so this is the logical place to have this information available to you, in my opinion.
Thank you for your honest opinion, however it is not exactly what I am looking for.
I know library manager contains this information, but I would like my GDL object to read this information too. If you insist on examples why would a library part need this kind of information, here is my reason.
What I am trying to achieve is an object which knows if another object is placed next to it/touches it/ is connect to it. In order to interact those two objects have to "know" if and where another one is located.
Or maybe you know a better way to do it?