Choose your top Archicad wishes!

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

GDL Array Param only returns default values when returned from macro

Not applicable
Hey everyone,

i placed a library part with some changes in its memo with API commands. The GDL object that i place contains a call to a macro in its 2D script and requests back an array with calculated data from the macro. The problem is, that the new data from the macro arrives in the main object correctly (i tested it with displaying some texts in the Archicad 2D viewport from the array) but when i request the array data via the API next it only returns the default values of the array parameter and not the newly calculated ones. Any other parameter i am reading from the object is correct.

Question: Do i have to update the object somehow before reading it from the API?
Thanks in advance!