Class Geometry2dApi

java.lang.Object
nl.bimbase.bimworks.client.apis.SubApi
nl.bimbase.bimworks.client.apis.Geometry2dApi

public class Geometry2dApi extends SubApi
2D geometry: what the 2D viewer downloads, and floor plan SVG export. A model's footprint is a BQL query (GET PROJECTION().wkt("EPSG:4326") through BimApi.query(String, java.util.UUID...)).
  • Constructor Details

  • Method Details

    • downloadGeometry2D

      public long downloadGeometry2D(UUID versionUuid, String query, LongConsumer chunkListener) throws BimWorksException
      Download the 2D viewer geometry of a model, as the 2D viewer does: the payload arrives as binary pushes (settings, base translation, bounding box, geometry chunks).
      Parameters:
      query - the BQL selecting the products to draw
      chunkListener - receives each chunk's size, may be null
      Returns:
      the number of bytes received
      Throws:
      BimWorksException
    • exportSvg

      public InputStream exportSvg(UUID versionUuid) throws BimWorksException
      Floor plan of the first building storey as SVG. The caller closes the stream.
      Throws:
      BimWorksException