Share

InfraWorks JavaScript examples: Tiled Model Export

Technical Support

Issue:

The current 3D model export in Autodesk InfraWorks™ simply writes everything to a single file. This often results in huge waiting times, hangs, or output files that are too huge to be usable.

Environment:

This article applies to the operating systems listed. If your operating system is not shown, it may be because it is not supported or because support information is not yet available. For details on operating systems no longer supported by the vendor, see Product Support Lifecycle.

Solution:

As long as there is no better solution provided on the program side, the attached javascript can be used to address this problem.
 
It allows running a 3D model export in a way that the area is split into several tiles. Each tile is written in a separate 3D model file. This has some advantages compared to the standard way that we have in UI:
  •          It is faster and more stable because no huge memory blocks are built
  •          There is better feedback of the overall progress
  •          It is possible to interrupt the export and resume it later.
  •          It is possible to break down the output to better manageable file sizes so that single files can be read/processed efficiently by external tools.
 
The comments in the example code explain how to use it.
Note:
  • It might be hard to find the right value for the tiling. So, even with the script, it will not always be easily possible to export a large project area completely within a bearable time.
  • Rename the attachment from .txt to .js first.

Attachments:

TiledModelExport.zip;

Products:

Infraworks 360; InfraWorks;

Was this information helpful?