Export opened project into one of the suggested view modes and formats, and download it.
Example of code:
iframeRoomtodo.contentWindow.postMessage(JSON.stringify({action:"export_project"}), "*");
Also, if pass specific type as argument, export will start immediately:
iframeRoomtodo.contentWindow.postMessage(JSON.stringify({action:"export_project", exportType: 'ifc'}), "*"]);