How-to guide·Using BIM.worksRequires SHARE

Share a model

Open a read-only viewer link for a model, a folder or the loaded models; what the link contains, how long it lives and what it cannot do.

Sharing opens a stripped-down BIM.works page (the share page) that shows a model, a folder or the currently loaded models in the 3D viewer to someone without an account. It needs the SHARE feature flag, and it is a UI-only feature: there is no server-side list of shares and no API call for them.

Before you start#

The model must be processed. Decide what you share: one model (its latest Version), a whole folder (everything below it, recursively) or the set of models loaded in the viewers.

Steps#

  1. Open the menu of the model or folder in the Models tree (the … button) and click Share. To share the loaded set instead, use Share in the folder menu above the tree.
  2. A new tab opens with the share page: the 3D viewer and a Features panel for the selected objects. A folder share also has a Data manager with the shared nodes, and tabs to switch between it and the Features panel. Copy the address of that tab; that is the share link.
  3. Send the link. Whoever opens it sees what you saw, can navigate, select and read features, but cannot upload, change or download anything.

The link carries an auth token in its address: a versions token for a model or the loaded set, a recursive node token for a folder. The token is issued for 60 days with the scopes fs:read, geometry:read, gis:read and query:run, and it is not linked to your account.

Warning

The link is the credential. Anyone who has it can open the models until the token expires; there is nothing to revoke, because auth tokens are not stored on the server. Do not post a share link where it can be found, and prefer an API token with an allow-list for anything that lasts.

An application can build the same link itself: create the token with client.tokens.createVersionsToken(...) or createRecursiveNodeToken(...) (Create a versions token) and open share/index.html?token=, relative to the address of the BIM.works application, followed by the auth object of the result as JSON, base64-encoded and then URL-encoded: encodeURIComponent(btoa(JSON.stringify(result.auth))). Base64 contains +, which an unencoded query string turns into a space.

Check#

Open the link in a private browser window: the models load without a login.