The Global Archicad Community

Stay informed. Get help. Share your knowledge.

Discussions about using GRAPHISOFT's tools (Archicad API, BIMx API, BIMcloud API) for independent software developers

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


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.