2D viewer

The Viewer2d, which draws the floor plans BIM.works generated per storey, is being phased out; for new work, show plans in the 3D viewer with an orthographic camera.

Warning

The 2D viewer is being phased out. For a new application, show plans in the 3D viewer in orthographic mode: Show a floor plan. It shows the same storeys and keeps selection, colours and annotations, and it is the viewer that gets new features.

The 2D viewer (@bimworks/viewer2d) draws the plans BIM.works generated on the server for each building storey, with WebGL. It connects to the same ObjectStateManager as the 3D viewer, so visibility, selection and colours work the same way. This section is for applications that already use it.

Pages#

  • Show floor plans in the 2D viewerCreate a Viewer2d, list the storeys and show one, colour, select and label objects, load it with a versions token, and destroy and unload it again.