The Global ARCHICAD Community

Stay informed. Get help. Share your knowledge.

Discussions about using GRAPHISOFT's tools (API DevKit) for independent software developers

Moderators: ejrolon, Barry Kelly, Karl Ottenstein, LaszloNagy, gkmethy, MOREH Tamas, Akos Somorjai, Ed Brown, Mihály Palenik, Tibor Lorántfy, rmasaki


I have a really weird bug.
I am using acapi_element_getelemlist. I am trying to get all the elements that has 3D representation and that are on visible layers.
So the command is:
ACAPI_Element_GetElemList(API_ZombieElemID, APIFilt_In3D | API_Filt_OnVisLayer);

Sometimes my elemlist gets 0 items! When of course my scene is full of elements!
I didn’t yet realize why this is happening but I think it happens when calling this command after the user created a new layout, or calling this command after the file was opened (before doing anything to the scene)

This is really weird.

Thanks in advance!