

A model embedded in a post with the article layout and its Health Score.
Bimo IFC Viewer is the WordPress plugin of IFC Viewer Online (https://www.ifcvieweronline.eu), the free browser IFC viewer by the same author; Bimo is its mascot.
Show your BIM models on your own website. Visitors orbit, measure and inspect the model in their browser, without installing anything and without an account.
[ifc_viewer] shortcode for classic themes and page builders.The plugin holds no copy of the viewer. On pages with a viewer it adds one small bundled script (frontend.js, no remote code) for click-to-load, events and guided steps. It stores one option (its settings) and no database tables.
This plugin embeds the IFC Viewer Online web app (https://www.ifcvieweronline.eu/), which displays the model. It is needed for the plugin to work: without it there is no viewer.
[ifc_viewer] shortcode, their browser loads the viewer in an iframe from www.ifcvieweronline.eu. The iframe address carries the block settings and the address of the model (and of any point cloud or scene). The visitor’s browser then downloads the model straight from your site, or from the URL you gave: the file is not uploaded to or stored by IFC Viewer Online.load="click" (or the site-wide setting) nothing is requested from www.ifcvieweronline.eu until the visitor clicks the poster’s button; the poster says where the viewer comes from.window.dataLayer is off unless you turn it on.Block: add the IFC Viewer block and choose IFC files from the Media Library. The sidebar has the display, map, sun, plan and digital twin settings.
Shortcode:
[ifc_viewer attachment="123" height="600"]
[ifc_viewer attachment="123,124,125" ui="full" lang="es"]
[ifc_viewer model="https://example.com/model.ifc" map="terrain,buildings" look="golden"]
[ifc_viewer attachment="123" solar="06-21T19:30"]
[ifc_viewer scene="https://example.com/port-twin.json" explore="1"]
Attributes:
attachment: Media Library IDs, comma-separated. model: https URLs to .ifc files, comma-separated. name: display names, parallel to the models.scan: https URLs to point clouds. scene: https URL to a scene document (it brings its own models).height (200–2000), ui (article, minimal, full, kiosk, client), view (iso, top, front, back, left, right, bottom), wheel (ctrl, always), validate (1, 0), turntable (1 or degrees per second), lang, accent (hex colour), bg, title.map (1, or layers such as terrain,buildings), look (daylight, maquette, golden, night, blueprint, dawn).solar (MM-DDTHH:MM or YYYY-MM-DDTHH:MM, site time), moon (1), analysis (for example year, year:passive, summer:sun), site (lat,lon).drawings (plan), explore (1, 0).toolbar (1, 0), tools (validate, measure, both comma-separated, or none), panels (properties, scene, measurement, section, plans, map, solar, flood, devices, pointcloud, mesh, comma-separated, or none), autoframe (1, 0), fill (0.2–0.98, or a percentage 20–98), layers (https URL to a layers document), rule (a validation rule id such as RULE_MISSING_NAME), flood (shower, storm, intense or extreme, then optional 1m/2m/5m, free/closed, sealed/compacted/loam/sandy), fullscreen (1: a full-screen button).Click to load (no request to ifcvieweronline.eu until the visitor clicks):
[ifc_viewer attachment="123" load="click" poster="456" poster_title="Duplex" poster_text="Two-family house, IFC 2x3" launch_label="Open the 3D model"]
load (auto, click), poster (Media Library ID or https image URL), poster_title, poster_text, launch_label. The poster takes the viewer’s height, so nothing moves when the model loads. It carries a note that the viewer loads from www.ifcvieweronline.eu (change it in the settings).Guided steps: each [ifc_step] drives the nearest viewer above it (or the first below) while it crosses the middle of the screen. Without JavaScript it is plain text. The IFC Viewer Step block does the same in the block editor.
[ifc_step view="front" isolate="IfcWall"]The walls carry the roof.[/ifc_step]
[ifc_step select="2O2Fr$t4X7Zf8NOew3FLOH"]This is the main door.[/ifc_step]
view (iso, top, front, back, left, right, bottom), select (an IFC GlobalId), isolate (an IFC class, or none), azimuth, elevation (degrees), fill (0.2–0.98).Settings Bimo IFC Viewer sets site-wide defaults: accent colour, language, interface, background, loading mode (with the page or click to load), default poster and the consent text. A block or shortcode setting always wins. Two opt-in switches, both off by default:
form_field="#css-selector" on an embed, clicking an element writes “Name (GlobalId)” into that input and fires input and change, so it works with Contact Form 7, WPForms, Gravity Forms or any plain form.bimo_ifc_model_loaded, bimo_ifc_validation_completed (with score), bimo_ifc_element_selected (with ifc_type, never names or IDs), bimo_ifc_tour_started, bimo_ifc_tour_ended.Each viewer event is dispatched on the viewer’s wrapper (.ifcvo-embed) as a DOM CustomEvent named bimo-ifc:<event>, which bubbles; the payload is in event.detail. Events include ready, model-loaded, model-error, validation-completed, element-selected (name, globalId, ifcType, expressId, modelId), measurements-changed, tour-started, tour-step and tour-ended. Only messages from https://www.ifcvieweronline.eu are accepted.
document.addEventListener( 'bimo-ifc:element-selected', function ( e ) { console.log( e.detail.name, e.detail.globalId ); } );
window.BimoIFC.get( elementOrSelector ) returns the commands of one viewer (commands wait until the model has loaded):
select( globalId ), isolate( 'IfcWall' ) (nothing to show all), setView( 'top' ), frame( { view, fill, azimuth, elevation } ), startTour( 'client-walkthrough' ), load() (behind a poster), on( event, callback ) (returns an unsubscribe function), whenReady().