I’m sorry for answering late. If I’m right then your code is from the older WebService&API interface. If so, then the major problem of the interface was not the update of the GUI but the low transfer rates. I did not notice any GUI updates during reading of the results in the new Dlubal.API and by the way it is much faster (approximately factor 10).
https://www.dlubal.com/en/solutions/dlubal-api/dlubal-api-ii