Reference

Every API, language and code, generated from the source where the source has it. Reference pages describe; they do not teach.

The BQL pages describe the query language clause by clause and feature by feature. The feature flags, file types and error codes are generated from the server's own enumerations, so they cannot drift from the release you are running.

The languages are a family: BQL selects and reads objects, and the others reuse its conditions and feature paths — BVL changes what the viewer shows, BUL changes model data, BCL evaluates rules per object, BRL defines reports, BSL sequences visualisations BCOL compares two versions and BFL defines virtual features — derived properties, quantities and classifications that the other languages then read like stored ones. Each language has an overview, a grammar page rendered from the grammar the parser is generated from, and BQL a cheatsheet.

The SDKs come in two families (SDKs). The OpenAPI SDKs — Java, .NET, TypeScript, PHP and Python — are generated from the OpenAPI document; their reference documents every class, method and model, each method with a complete example in the same four steps in every language. The classic SDKs — JavaScript, Java and .NET — are the hand-written clients of the task API that the viewers build on; their pages give the client factory, the sub-APIs and the error handling, and link to the API catalogues generated from their sources. The HTTP API has its own part, API, with a runnable page per operation.

BQL#

The BIM.works Query Language, clause by clause — what a query is, the order of its clauses, the model parameter, the response shape, and an index of every feature page.

  • GETThe projection clause — which features a query returns, arithmetic over them, aliases, aggregates and nested queries over related objects.
  • WHEREThe selection — boolean expressions over features, the numeric and string comparators, tolerances, has-value tests, relation paths with all/any/count, and relation aggregates.
  • GROUP BYGrouping and the aggregate functions — COUNT, SUM, MIN, MAX, AVG, MEDIAN, MODE, RANGE, STDDEV, COLLECT and FIRST, single and multi-key groups, BIN buckets, and the grouped result shape.
  • ORDER BY, LIMIT and OFFSETSorting on one or more features, ascending and descending, the original file order, spatial sequencing with GEOMETRY, and paging with LIMIT and OFFSET.
  • UNITPer-feature unit conversion in GET — the UNIT clause, the length, area, volume, mass and temperature units, unit literals in expressions, and how converted values appear in the result.
  • USING and parametersResult-wide unit conversion with USING LENGTH_UNIT, AREA_UNIT, VOLUME_UNIT, MASS_UNIT and TEMPERATURE_UNIT, the original_* fields, and query parameters ($name) with their binding rules.
  • Functions and CASEValue functions in GET and WHERE — CASE, COALESCE, GREATEST and LEAST, rounding and maths, text functions, and the conversions between text and numbers — with their rules for units, missing values and mismatches.
  • TypesThe IFC class of an object — type with inheritance, NI for exact matches, IN lists and parameters, niceType, occurrences versus type definitions, and the suggestedType and suggestion facets.
  • AttributesDirect IFC attributes — attribute.Name and the other schema attributes, the wildcard, the name/type/value fields, references to other objects, and attribute.meta.
  • PropertiesProperty sets and properties — property.Pset.Name, the set and name wildcards, quoted names, the fields of a property, list, enumerated, bounded and complex properties, origin, and property.meta.
  • QuantitiesQuantity sets and quantities — quantity.Qset.Name, wildcards, the fields of a quantity, units, aggregating quantities, and quantity.meta.
  • ClassificationsClassification references — identity, identification and itemReference, name and location, the classification system and its fields, wildcards, filtering, and classification.meta.
  • Calculated valuesValues BIM.works derives from geometry and structure — calculated.quantity (floor area, volume, perimeter …), calculated.property (level, isExternal …), calculated.geometry flags and counts, consistency checks, aabb and obb.
  • Building storeysThe storey an object belongs to — buildingStorey.attribute.Name and Elevation, the level index, filtering and grouping by storey, the storeys themselves, and the other spatial containers.
  • LayersPresentation layers — layer.name, the wildcard, filtering on the layer, and layer.meta.
  • MaterialsMaterials and material layers — material.name, color and layerThickness, the classification and properties of a material, the parenthesised multi-material form, filtering, and material.meta.
  • Type objectsThe type definition of an occurrence — typeObject.attribute, typeObject.property, the merging of type and occurrence properties, origin, and the own relation.
  • Sub-features and relationsReading features of related objects — the single-target and multi-target relations, dot and parenthesised forms, nested WHERE/ORDER BY/LIMIT, the all/any/count quantifiers in WHERE, systems, zones, ports, space boundaries and decomposition.
  • Openings and fillingsThe void and fill relationships — hasOpenings and fillings from an element, hasFillings and voidsElement from an opening, fills and fillsVoid from a door or window.
  • Shapes: SLICE and PROJECTIONMeasuring a set of objects as one shape — a horizontal SLICE at a height or a PROJECTION onto a plane, unioned before it is measured — its options, its members (area, outline as WKT or GeoJSON, the figure the viewer draws), where it can stand in a query, and how it behaves over several models.
  • ModelFeatures of the model an object belongs to — model.name, id, versionUuid, ifcVersion, discipline, filesize and the header fields; the model conditions ifcVersion, discipline and count in WHERE.
  • Linked dataThe linkedData feature — the files, links, texts and identifiers linked to an object on the version queried, their count, and per item its kind, family, extension, category, title, validity and state; in WHERE, objects with or without linked data and by what is linked.
  • Meta featuresSurveying which features exist instead of reading their values — attribute.meta, property.meta, quantity.meta, classification.meta, layer.meta, material.meta and calculated.meta, and why they are GET-only.
  • Spatial and advancedGeometry predicates and functions — CLASHES_WITH, geometry:contains/contained_in/touches/clearance, virtual BOX/CYLINDER/CONE/SPHERE, inscribed circles and cylinders, usable area and headroom, space-boundary semantics, SHORTEST_PATH and GRAPH traversal, walkable routes, geo-reference tests, full-text search and viewpoints.
  • OutputWhat a query returns — the record and leaf value shapes, the value types, the plain and compact JSON formats, grouped results and groupPath slicing, qid-only and count results, table export, and the IFC and ifcXML output of the OpenAPI Query.
  • ASTThe JSON form of a parsed query — how the tree is shaped, the __type discriminator, ParseQuery and AstToBql for converting in both directions, the MinimalBql form, and validation.
  • BQL cheatsheetEvery clause, operator, function, unit and feature path of BQL on one page, each with a one-line example.
  • BQL grammarThe Xtext grammar of BQL as shipped in this release.

BVL#

The BIM.works Visualisation Language — if/else blocks over BQL conditions, groups, the action vocabulary (show, hide, colour, select, labels, annotations, section and fade behaviour), subjects, and where BVL runs.

  • BVL grammarThe Xtext grammar of BVL as shipped in this release.

BUL#

The BIM.works Update Language — SET, DEL, DELETE OBJECT and TRANSFORM statements over a BQL WHERE, CONVERT SCHEMA and GEOREFERENCE for the whole model, feature addressing for attributes, properties, quantities and classifications, values and units, and the transaction that commits them.

  • BUL grammarThe Xtext grammar of BUL as shipped in this release.

SDKs#

The two families of BIM.works SDKs — the OpenAPI SDKs for Java, .NET, TypeScript, PHP and Python, generated from the OpenAPI document, and the classic hand-written SDKs for JavaScript, Java and .NET — what each covers and which one to use.

  • Java SDKThe Java SDK generated from the OpenAPI document (Maven nl.bimbase.bimworks:sdk) — the artifact, connecting and logging in, the four steps of every example, the API classes and models, errors, files and uploads.
  • .NET SDKThe .NET SDK generated from the OpenAPI document (NuGet BIMworks.Sdk) — the package, connecting and logging in, the four steps of every example, the API classes and models, responses and errors, files and uploads.
  • TypeScript SDKThe TypeScript and JavaScript SDK generated from the OpenAPI document (npm @bimworks/sdk) — installation, connecting and logging in, the four steps of every example, the API classes and models, errors, files and uploads.
  • PHP SDKThe PHP SDK generated from the OpenAPI document (Composer bimbase/bimworks) — the package, connecting and logging in, the four steps of every example, the API classes and models, errors, files and uploads.
  • Python SDKThe Python SDK generated from the OpenAPI document (bimworks on the BIM.works Python index) — the package, connecting and logging in, the four steps of every example, the API classes and models, errors, files and uploads.

.NET SDK · BIMworks.Sdk#

  • ActionsApi.NET SDK: the Actions operations, 6 methods, each with its parameters, result and a complete example.
  • LinkedDataApi.NET SDK: the Linked data operations, 15 methods, each with its parameters, result and a complete example.
  • ModelApi.NET SDK: the Model operations, 12 methods, each with its parameters, result and a complete example.
  • AccountApi.NET SDK: the Account operations, 10 methods, each with its parameters, result and a complete example.
  • IFCApi.NET SDK: the IFC - Industry Foundation Classes operations, 21 methods, each with its parameters, result and a complete example.
  • GISApi.NET SDK: the GIS - Geographic Information Systems operations, 6 methods, each with its parameters, result and a complete example.
  • AuthApi.NET SDK: the Auth - Authentication operations, 13 methods, each with its parameters, result and a complete example.
  • FsApi.NET SDK: the Fs - FileSystem operations, 16 methods, each with its parameters, result and a complete example.
  • WorkspacesApi.NET SDK: the Workspaces operations, 5 methods, each with its parameters, result and a complete example.
  • InfoApi.NET SDK: the Info operations, 1 method, each with its parameters, result and a complete example.
  • ViewerApi.NET SDK: the Viewer operations, 1 method, each with its parameters, result and a complete example.
  • AdminApi.NET SDK: the Admin operations, 3 methods, each with its parameters, result and a complete example.
  • AIApi.NET SDK: the AI - Artificial Intelligence operations, 1 method, each with its parameters, result and a complete example.
  • VersionsApi.NET SDK: the Versions operations, 1 method, each with its parameters, result and a complete example.
  • ModelsEvery model class of the .NET SDK with its properties, their JSON names, types and descriptions.

Java SDK · nl.bimbase.bimworks.sdk#

  • ActionsApiJava SDK: the Actions operations, 6 methods, each with its parameters, result and a complete example.
  • LinkedDataApiJava SDK: the Linked data operations, 15 methods, each with its parameters, result and a complete example.
  • ModelApiJava SDK: the Model operations, 12 methods, each with its parameters, result and a complete example.
  • AccountApiJava SDK: the Account operations, 10 methods, each with its parameters, result and a complete example.
  • IfcApiJava SDK: the IFC - Industry Foundation Classes operations, 21 methods, each with its parameters, result and a complete example.
  • GisApiJava SDK: the GIS - Geographic Information Systems operations, 6 methods, each with its parameters, result and a complete example.
  • AuthApiJava SDK: the Auth - Authentication operations, 13 methods, each with its parameters, result and a complete example.
  • FsApiJava SDK: the Fs - FileSystem operations, 16 methods, each with its parameters, result and a complete example.
  • WorkspacesApiJava SDK: the Workspaces operations, 5 methods, each with its parameters, result and a complete example.
  • InfoApiJava SDK: the Info operations, 1 method, each with its parameters, result and a complete example.
  • ViewerApiJava SDK: the Viewer operations, 1 method, each with its parameters, result and a complete example.
  • AdminApiJava SDK: the Admin operations, 3 methods, each with its parameters, result and a complete example.
  • AiApiJava SDK: the AI - Artificial Intelligence operations, 1 method, each with its parameters, result and a complete example.
  • VersionsApiJava SDK: the Versions operations, 1 method, each with its parameters, result and a complete example.
  • ModelsEvery model class of the Java SDK with its properties, their JSON names, types and descriptions.

PHP SDK · BIMworks#

  • ActionsApiPHP SDK: the Actions operations, 6 methods, each with its parameters, result and a complete example.
  • LinkedDataApiPHP SDK: the Linked data operations, 15 methods, each with its parameters, result and a complete example.
  • ModelApiPHP SDK: the Model operations, 12 methods, each with its parameters, result and a complete example.
  • AccountApiPHP SDK: the Account operations, 10 methods, each with its parameters, result and a complete example.
  • IFCApiPHP SDK: the IFC - Industry Foundation Classes operations, 21 methods, each with its parameters, result and a complete example.
  • GISApiPHP SDK: the GIS - Geographic Information Systems operations, 6 methods, each with its parameters, result and a complete example.
  • AuthApiPHP SDK: the Auth - Authentication operations, 13 methods, each with its parameters, result and a complete example.
  • FsApiPHP SDK: the Fs - FileSystem operations, 16 methods, each with its parameters, result and a complete example.
  • WorkspacesApiPHP SDK: the Workspaces operations, 5 methods, each with its parameters, result and a complete example.
  • InfoApiPHP SDK: the Info operations, 1 method, each with its parameters, result and a complete example.
  • ViewerApiPHP SDK: the Viewer operations, 1 method, each with its parameters, result and a complete example.
  • AdminApiPHP SDK: the Admin operations, 3 methods, each with its parameters, result and a complete example.
  • AIApiPHP SDK: the AI - Artificial Intelligence operations, 1 method, each with its parameters, result and a complete example.
  • VersionsApiPHP SDK: the Versions operations, 1 method, each with its parameters, result and a complete example.
  • ModelsEvery model class of the PHP SDK with its properties, their JSON names, types and descriptions.

Python SDK · bimworks#

  • ActionsApiPython SDK: the Actions operations, 6 methods, each with its parameters, result and a complete example.
  • LinkedDataApiPython SDK: the Linked data operations, 15 methods, each with its parameters, result and a complete example.
  • ModelApiPython SDK: the Model operations, 12 methods, each with its parameters, result and a complete example.
  • AccountApiPython SDK: the Account operations, 10 methods, each with its parameters, result and a complete example.
  • IFCApiPython SDK: the IFC - Industry Foundation Classes operations, 21 methods, each with its parameters, result and a complete example.
  • GISApiPython SDK: the GIS - Geographic Information Systems operations, 6 methods, each with its parameters, result and a complete example.
  • AuthApiPython SDK: the Auth - Authentication operations, 13 methods, each with its parameters, result and a complete example.
  • FsApiPython SDK: the Fs - FileSystem operations, 16 methods, each with its parameters, result and a complete example.
  • WorkspacesApiPython SDK: the Workspaces operations, 5 methods, each with its parameters, result and a complete example.
  • InfoApiPython SDK: the Info operations, 1 method, each with its parameters, result and a complete example.
  • ViewerApiPython SDK: the Viewer operations, 1 method, each with its parameters, result and a complete example.
  • AdminApiPython SDK: the Admin operations, 3 methods, each with its parameters, result and a complete example.
  • AIApiPython SDK: the AI - Artificial Intelligence operations, 1 method, each with its parameters, result and a complete example.
  • VersionsApiPython SDK: the Versions operations, 1 method, each with its parameters, result and a complete example.
  • ModelsEvery model class of the Python SDK with its properties, their JSON names, types and descriptions.

TypeScript SDK · @bimworks/sdk#

  • ActionsApiTypeScript SDK: the Actions operations, 6 methods, each with its parameters, result and a complete example.
  • LinkedDataApiTypeScript SDK: the Linked data operations, 15 methods, each with its parameters, result and a complete example.
  • ModelApiTypeScript SDK: the Model operations, 12 methods, each with its parameters, result and a complete example.
  • AccountApiTypeScript SDK: the Account operations, 10 methods, each with its parameters, result and a complete example.
  • IFCApiTypeScript SDK: the IFC - Industry Foundation Classes operations, 21 methods, each with its parameters, result and a complete example.
  • GISApiTypeScript SDK: the GIS - Geographic Information Systems operations, 6 methods, each with its parameters, result and a complete example.
  • AuthApiTypeScript SDK: the Auth - Authentication operations, 13 methods, each with its parameters, result and a complete example.
  • FsApiTypeScript SDK: the Fs - FileSystem operations, 16 methods, each with its parameters, result and a complete example.
  • WorkspacesApiTypeScript SDK: the Workspaces operations, 5 methods, each with its parameters, result and a complete example.
  • InfoApiTypeScript SDK: the Info operations, 1 method, each with its parameters, result and a complete example.
  • ViewerApiTypeScript SDK: the Viewer operations, 1 method, each with its parameters, result and a complete example.
  • AdminApiTypeScript SDK: the Admin operations, 3 methods, each with its parameters, result and a complete example.
  • AIApiTypeScript SDK: the AI - Artificial Intelligence operations, 1 method, each with its parameters, result and a complete example.
  • VersionsApiTypeScript SDK: the Versions operations, 1 method, each with its parameters, result and a complete example.
  • ModelsEvery model class of the TypeScript SDK with its properties, their JSON names, types and descriptions.

BCL#

The BIM.works Check Language — select blocks over BQL conditions, check blocks with success/error/warning/info results, require shorthands, BVL actions inside a check, programmed checks, IDS conversion, and where checks run.

  • BCL grammarThe Xtext grammar of BCL as shipped in this release.

3D viewer settings#

Every setting the Viewer3d constructor accepts, with its type and default, and a map of the viewer's methods by task.

  • Default key bindingsEvery action the 3D viewer binds by default, with its mouse and keyboard combinations, the modes it applies in and the rules that resolve a key.

Reference#

Every API, language and code, generated from the source where the source has it. Reference pages describe; they do not teach.

  • Feature flagsEvery user feature of this release: what it switches on, and whether it is a UI-only or a developer-only switch. Generated from the server's UserFeature list.
  • File typesThe file types an upload accepts, with their extensions, generated from the server's InputFileType list.
  • Linked data file typesThe files that can be linked to objects, per family with its icon colour, its extensions, how they are stored and whether they open in the browser, and the extensions that are never accepted.
  • Error codesEvery error code the API can return, per enumeration, with its number and what it means. Generated from the server's error enumerations.

BRL#

The BIM.works Report Language — a report document with pages and blocks (tables, charts, KPIs, callouts, viewports, trees), let/foreach/when over embedded BQL queries, embedded BCL checks and BVL styles, interpolation, and how a report is generated.

  • BRL grammarThe Xtext grammar of BRL as shipped in this release.

BSL#

The BIM.works Sequence Language — a list of labelled frames, each a BVL script, played as a sequence of viewer states; syntax, resolution through ResolveBsl, and where sequences run.

  • BSL grammarThe Xtext grammar of BSL as shipped in this release.

BCOL#

The BIM.works Compare Language — how two models are matched, rules that classify every added, removed or changed object (first match wins), which features count as a change and with what tolerance, what is reported, and how each outcome is shown.

  • BCOL grammarThe Xtext grammar of BCOL as shipped in this release.

BFL#

The BIM.works Feature Language — one DEFINE per virtual feature, with a target path, an optional type, scope and LET bindings, and a BQL expression as its body; how virtual features read each other and stored values, LOOKUP and code lists on data files, the decision-table form with its import and export, and how a request applies them.

  • BFL grammarThe Xtext grammar of BFL as shipped in this release.

Classic JavaScript SDK#

The classic, hand-written JavaScript SDK (the @bimworks/jssdk package) that the viewers build on — installation, the client factory and its login methods, the sub-APIs of a client, error handling, Node.js differences, and the generated TypeScript reference.

JavaScript · @bimworks/dsleditor#

JavaScript · @bimworks/jssdk#

JavaScript · @bimworks/viewer2d#

JavaScript · @bimworks/viewer3d#

JavaScript · @bimworks/viewercommon#

JavaScript · @sascom/commonjs#

JavaScript · @sascom/jsclient#

Classic Java SDK#

The classic, hand-written Java SDK (nl.bimbase.bimworks:client) — Maven coordinates and repository, the client factory and its login methods, the sub-APIs of a client, exceptions and error codes, and the Javadoc.

Java · nl.bimbase.bimworks.client#

Java · nl.bimbase.bimworks.client.apis#

Java · nl.bimbase.bimworks.client.other#

Java · nl.bimbase.bimworks.client.upload#

Classic .NET SDK#

The classic, hand-written .NET SDK (the BIM.works_SDK NuGet package) — requirements, the client factory and its login methods, the sub-APIs of a client, IDS validation and IDS checks, exceptions and error codes, and the DocFX reference.

.NET · BIM.works_SDK#