We value your input!
Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey

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

Drawing update when Archicad is not in visible foreground

gunners6522
Contributor
Hi,

I have an add-on in which I'm using the DXF/DWG add-on to export drawings. What I'm currently having issues with, is making sure the drawings are fully updated before they are being exported. When I export a drawing, my procedure is to change the database and window to the drawing I need to export and finally I zoom to fit in order to make sure the whole drawing is being updated (APIDb_ChangeCurrentDatabaseID, APIDo_ChangeWindowID, APIDo_ZoomID). This all works really well.

However, when I minimize Archicad or bring another window in front of Archicad, while exporting drawings, many of them will not update and this results in missing content in the exported drawings.

Do people have any experience with forcing a complete drawing update when the Archicad window is not visible? I'm also currently experimenting with "WinUser.h" in order to force the Archicad window in front, before each drawing export, but haven't been succesful yet.
0 REPLIES 0