---
title: Geometry2dApi
summary: CLASS in nl.bimbase.bimworks.client.apis.
order: 10
languages: [java]
sdk-package: Java · nl.bimbase.bimworks.client.apis
---

# Geometry2dApi

[[page:reference/java/api|API catalogue]] · `nl.bimbase.bimworks.client.apis` · CLASS

````java sdk=java sdk-namespace="nl.bimbase.bimworks.client.apis"
public class Geometry2dApi
````

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 [[page:reference/java/nl-bimbase-bimworks-client-apis/bimapi-0f79f346#member-query-e6bb1bbdb01d|BimApi#query(String, java.util.UUID...)]]).

## Inheritance and interfaces

- [[page:reference/java/nl-bimbase-bimworks-client-apis/subapi-e2929b7e|SubApi]]

## Members

| Member | Kind | Description |
|---|---|---|
| [[page:reference/java/nl-bimbase-bimworks-client-apis/geometry2dapi-04482f9d#member-init-d1d58e54dd7b|Geometry2dApi(BimWorksClient)]] | CONSTRUCTOR |  |
| [[page:reference/java/nl-bimbase-bimworks-client-apis/geometry2dapi-04482f9d#member-downloadgeometry2d-d943a40601b3|downloadGeometry2D(UUID, String, LongConsumer)]] | METHOD | 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 c… |
| [[page:reference/java/nl-bimbase-bimworks-client-apis/geometry2dapi-04482f9d#member-exportsvg-f1b55d908aad|exportSvg(UUID)]] | METHOD | Floor plan of the first building storey as SVG. The caller closes the stream. |

## `Geometry2dApi(BimWorksClient)` {#member-init-d1d58e54dd7b}

````java sdk=java sdk-namespace="nl.bimbase.bimworks.client.apis"
public Geometry2dApi(nl.bimbase.bimworks.client.BimWorksClient bimWorksClient)
````



### Parameters

| Name | Type | Description |
|---|---|---|
| `bimWorksClient` | [[page:reference/java/nl-bimbase-bimworks-client/bimworksclient-a27e861c|BimWorksClient]] |  |

## `downloadGeometry2D(UUID, String, LongConsumer)` {#member-downloadgeometry2d-d943a40601b3}

````java sdk=java sdk-namespace="nl.bimbase.bimworks.client.apis"
public long downloadGeometry2D(java.util.UUID versionUuid, java.lang.String query, java.util.function.LongConsumer chunkListener) throws nl.bimbase.bimworks.client.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

| Name | Type | Description |
|---|---|---|
| `versionUuid` | `java.util.UUID` |  |
| `query` | `java.lang.String` | the BQL selecting the products to draw |
| `chunkListener` | `java.util.function.LongConsumer` | receives each chunk's size, may be null |

### Returns

the number of bytes received

## `exportSvg(UUID)` {#member-exportsvg-f1b55d908aad}

````java sdk=java sdk-namespace="nl.bimbase.bimworks.client.apis"
public java.io.InputStream exportSvg(java.util.UUID versionUuid) throws nl.bimbase.bimworks.client.BimWorksException
````

Floor plan of the first building storey as SVG. The caller closes the stream.

### Parameters

| Name | Type | Description |
|---|---|---|
| `versionUuid` | `java.util.UUID` |  |

## Inherited members

- `java.lang.Object#equals(java.lang.Object)`
- `java.lang.Object#toString()`
- `java.lang.Object#wait(long)`
- `java.lang.Object#wait(long,int)`
- `java.lang.Object#wait()`
- `java.lang.Object#finalize()`
- `java.lang.Object#getClass()`
- `java.lang.Object#hashCode()`
- `java.lang.Object#clone()`
- `java.lang.Object#notify()`
- `java.lang.Object#notifyAll()`
- [[page:reference/java/nl-bimbase-bimworks-client-apis/subapi-e2929b7e#member-getbimworksclient-a7cb880c7470|getBimWorksClient()]]
