BIM.works Java SDK

Java SDK

  • Typed API
  • Multi-user, multi-threaded
  • Dogfooded by BIM Base
  • Documentation in IDE
String address = "https://bim.works";
try (BimWorksClientFactory factory = new BimWorksClientFactory(address)) {
  try (BimWorksClient client = factory.createClientWithApiToken("<YOUR_API_TOKEN>")) {
    UUID rootNodeUuid = client.fs.getRootNodeUuid();
    
    UploadModelResponse response = client.upload.uploadModel(
      new UploadBuilder(rootNodeUuid)
      .fromPath(Paths.get("/models/Schependomlaan.ifc")));
    
    String query = "GET qid WHERE type IN (IFCWINDOW, IFCDOOR)"
      + " AND (property.Pset_WindowCommon.IsExternal = true OR property.Pset_DoorCommon.IsExternal = true)";
    UUID versionUuid = response.getTreeNode().getLastVersionUuid();
    ArrayNode res = client.bim.query(query, versionUuid);
    
    System.out.println("Number of external doors and windows: " + res.size());
  }
}

Java SDK Features

Maven

Available as a set of Maven packages.

<dependencies>
  <dependency>
    <groupId>nl.bimbase.bimworks</groupId>
    <artifactId>client</artifactId>
    <version>2.0.6</version>
  </dependency>
</dependencies>

Java

Works on Java 17 and up

BIM.works Documentation

Documentation

All SDKs have extensive documentation. Click below to open the Java SDK documentation.