Skip to main content

bimforge

A standalone CAD/BIM toolkit in Python: measure 2D plan sheets, author parametric IFC models, roll them up into quantities, stage them in 4D/5D, and produce control, layout and structure sheets.

  • bimforge.bim — DXF → IFC authoring (IFC4X3 by default, exact extrusions and alignment sweeps), IFC → quantity takeoff, plan-sheet calibration and vector measurement, georeferencing, 3D KML/KMZ for Google Earth, 4D schedule embed/read-back (IfcWorkSchedule) and 5D cost and resource loading (IfcCostSchedule). Schedule readers for GanttWarrior JSON, Primavera P6 XER and MS Project MSPDI live here too.
  • bimforge.author — the structure-family kernel: alignments, section prisms, battered walls, reinforcing bars, plates, saddles, spillways, standard-plan families, with quantities taken from the emitted geometry and never from a parallel formula.
  • bimforge.sheets and bimforge.cad — sheet production and the org-neutral DXF/KML/geo engine, styled by pluggable style packs.
  • bimforge.terrain — terrain grids, watertight terrain solids and excavation carves from point clouds and contours.

Install

pip install bimforge            # IFC stack included (ifcopenshell, ezdxf, shapely, pyproj, numpy)
pip install 'bimforge[all]'     # + PDF plan sheets, matplotlib drawing, build123d exact solids
pip install 'bimforge[terrain]' # + point-cloud / mesh terrain

Two CLIs ship with the package:

est-bim --help      # dxf2bim, ifc2dxf, takeoff, schedule, cost5d, kml, calibrate, measure, build, ...
est-sheets --help   # control / layout / structure sheet production

Your own families

est-bim build spec.yaml --family-path families/ resolves the spec's family: from any module in families/ that exports FAMILIES = {"my-wall": build}, alongside the shipped families and the bimforge.families entry points. A spec can also carry ifc_surfaces: (colours merged over the style pack for that build) and gate: {unread_params: warn}, which reports any param the family never read. A table-driven family reads only the catalog row it selects, so give its spec gate: {ignore: [tables]}. A project's tables that change a packaged value make the elements that read it modified-by-value (M.8, M.9), listed by gate: {modified: warn} (the default) and failed by modified: error. The Caltrans 2025 Standard Plans tables ship in bimforge.caltrans: name one with params.tables_pack: caltrans/2025/d89-pipe-headwall (or a list), and put the project's own rows in tables_file, which merges over them. Family module names must be unique: the folder is imported by plain module name.

Existing ground

A top-level terrain: block gives any spec's model its existing ground: one IfcGeographicElement TERRAIN from USGS 3DEP, over the plan extent of the model's elements grown by margin_ft, with its provenance. It needs project.epsg and a real project.base. 3DEP heights are NAVD88: the shift to the project's datum is vshift_m when given, else none for a NAVD88 project.vertical_datum, NOAA NCAT at the base point for NGVD29, and any other datum fails until vshift_m is given. The road corridor measures its cut and fill against the same ground with ground: {source: terrain} (ground: {source: plane, ...} stays for tests and the shipped example).

terrain:
  source: dem          # dem (3DEP 1 m DEM, default) | lpc (lidar bare earth)
  cache: terrain/site  # path stem, relative to the spec's directory; required
  margin_ft: 200       # around the footprint (default 200)
  spacing_m: 1.0       # cell size, in METRES (default 1.0)
  vshift_m: 0.71       # optional: overrides the datum rule

est-bim terrain SPEC [--refresh] [--family-path DIR] builds the model in memory (finding families as est-bim build --family-path does), fetches the ground (or reads it from the cache) and reports its footprint, cells, source, vintage, quality level, shift and cache files; after it, est-bim build reads only the cache (except the 3DEP work-unit lookup, which is retried on each build while it has given no answer). est-bim build --check-only still fetches the terrain when the cache is cold, since the build adds the ground before the check-only return. A build never refetches by itself: when the footprint changes (a longer wall, another margin_ft or spacing_m), it fails naming the cache until est-bim terrain SPEC --refresh fetches the new area; so does an NGVD29 shift cached for another base point. --refresh fetches every cache again: the DEM, the NCAT shift and the work-unit vintage. On source: lpc a cached grid that covers the new footprint is used as it is, another spacing_m fetches by itself (the grid's file name carries its spacing), and --refresh re-bins the LAZ tiles already on disk, downloading only the ones missing (delete the <cache>-LPC folder to download them all again).

What a viewer sees

The IFC is written for FreeCAD, Revit and Bonsai as much as for the takeoff:

  • A run is one whole with parts: a tubular handrail is one IfcRailing (HANDRAIL) whose rails, posts, returns and pocket mortar are its parts (IfcRelAggregates); a Type 842 or 732SW barrier is one IfcWall (PARAPET) over its barrier, end blocks, reinforcing and hardware. Any family or script does the same with Element.part_of.
  • Every kind of part is typed (Element.type_name → IfcMemberType, IfcRailingType, ...), so twenty posts are twenty occurrences of one type with one predefined type, and the standard plan rides in Pset_*Common.Reference (Element.psets).
  • Repeated bodies are instanced (IfcMappedItem, StructureModel.instancing, spec outputs.ifc_instancing).
  • Tessellated bodies have their coplanar facets merged into planar faces, so a box is six faces, not twelve triangles.
  • An exact alignment sweep is an IfcSectionedSolidHorizontal (IFC4X3). For a consumer that cannot draw it as a solid (ifcopenshell 0.9 lofts it open; Revit does not open IFC4X3), outputs.ifc_sweeps: mesh writes the closed mesh instead and keeps the IfcAlignment.

Checking a model before takeoff

pip install 'bimforge[ids]'
est-bim validate model.ifc [--json result.json] [--ids extra.ids ...] [--no-rules]

runs every check that ships with bimforge on any IFC and gives one verdict: the schema and its where and global rules, buildingSMART's alignment checks, the structure checks the build gate makes on a written file (the spatial tree and facility parts, quantity formulas, representation types, an unhosted cut), and the takeoff contract (takeoff.ids, each --ids document, and validate's own check that a classified element carries a quantity to measure in some quantity set, which IDS cannot state; takeoff-coverage.ids is advisory). It prints one line per section, the element counts per class, the verdict, and a line naming the buildingSMART rule set it did not run (--json - prints the JSON result instead):

  • clean (exit 0): every failing section ran and found nothing;
  • issues (exit 1): a failing section has findings (a check that crashes on the file is one);
  • incomplete (exit 1): nothing failed, but a check did not run or a rule could not be evaluated: --no-rules, no bimforge[ids] (the extra installs ifctester for the contract and pytest, which ifcopenshell's rule executor imports), or a schema the contract does not cover (IFC2X3);
  • unreadable (exit 2): the file cannot be opened as IFC. A missing or malformed --ids document is exit 2 too.

--json PATH writes the bimforge-validate/1 result (--json - prints it): each section's status and findings, the file's sha256, and the versions used; the library function is bimforge.bim.validate.validate. buildingSMART's normative rules (ifc-gherkin-rules) are not run on your machine: CI builds every family bimforge ships, with its options, and holds it to them, and the result names that rule set (bimforge/bim/contract/bsi_rules.yaml).

bimforge/bim/contract/takeoff.ids is the takeoff's input contract as a buildingSMART IDS document, so a Revit or Tekla export can be checked in any IDS tool before it reaches est-bim takeoff:

pip install 'bimforge[ids]'
python -m ifctester bimforge/bim/contract/takeoff.ids model.ifc

A failure there is a pay quantity that would come out wrong or missing. That a classified element carries a quantity to measure is not in it, since IDS cannot say "in some quantity set": est-bim validate checks it. takeoff-coverage.ids beside it is advisory: it lists measured elements with no classification code, which the takeoff only warns about.

Every element's quantities are in buildingSMART's standard quantity set for its class (Qto_WallBaseQuantities, Qto_FootingBaseQuantities, ...) under the standard names, where the standard meaning is what bimforge measured, and the rest in BIMForge_BaseQuantities: Count outside a reinforcing set, the footprint's mean Width, the volume-equivalent Height, and every quantity of a class with no standard set. One reviewed table, bimforge/author/standard_qto.py, decides. Through 0.1.135 the old generic Qto_BaseQuantities (dxf2bim's Qto_TakeoffBaseQuantities) is written beside them; 0.1.136 drops it. bimforge/bim/contract/qto_moves.json says, per schema and class, where each of its quantities is now. The takeoff reads the standard set first, then BIMForge_BaseQuantities, then the old set, and a map's GrossArea reads a wall's GrossFootPrintArea (IFC4: GrossFootprintArea), so a wall from another tool that states only Qto_WallBaseQuantities is measured too.

Web pages: takeoff and the 4D/5D dashboard

est-bim web --ifc model.5d.ifc --map takeoff_map.yaml --official bid.json --serve --open

Writes a static site (takeoff.html, dashboard.html) and the one JSON document both pages read, the bundle (bimforge.web.build_bundle, contract bimforge-web/1): elements with their pay codes, quantities and 4D dates, the pay-item takeoff against the official bid quantities, the schedule with its element links, and the costs per task with their shares per element. The takeoff page shows every pay item and the elements behind it; the dashboard scrubs a day through the schedule with earned pay against cost, labour and per-item pay-quantity curves, and what stands on that day. Pay is earned as the work is done: over the tasks that build each element, weighted by the cost and hours spent on it, at the bid item's unit price. The labour / material / equipment split of a cost (est-bim cost5d --costs records' labor, material, equipment, subcontract, other; the estimate's cost_split) is written as one IfcCostValue per kind, Category naming the kind, and the dashboard can earn against one kind alone. The pages carry no external library and open from disk. A host (an editor's bridge add-on) provides window.bimforgeHost to turn a click into a selection; standalone, a click copies GlobalIds.

Blender: sections along an alignment

The Blender add-on that slides a live cross-section along an IFC4X3 IfcAlignment (station and offset sliders, 4D dates, developed elevations, DXF sheets) is now its own project: IfcSection. BIMForge does not depend on it. BIMForge keeps its own copies of the stationing and drawing modules (bimforge.bim.alignment_station, developed, schedule_state, section_style) for est-bim stations and est-bim elevation.

Alignments on a finished model

est-bim landxml-alignments alignments/*.xml -o alignments.yaml
est-bim add-alignments model.ifc --spec alignments.yaml --path alignments

landxml-alignments turns LandXML 1.2 alignments into the pob/run traverses the authoring layer uses, gated on closure. add-alignments adds them to a georeferenced IFC4X3 that was not built with them, such as a federated or foreign file. It writes the horizontal layout, an optional vertical profile:, and stationing referents (--referents NAME=STA,... adds more), and it writes nothing unless every alignment closes on its traverse.

GIS (QGIS)

est-bim ifc2gis --ifc model.4d.ifc --out model.gpkg

The output is a true-3D GeoPackage in the project CRS. It has one layer of solids and one of lines (the alignment), and each feature carries its class, name, GlobalId, cost code and quantities. If the IFC has a 4D schedule, each feature also carries appear_date and vanish_date. If it has an alignment, each feature carries its station and offset range. Drag the file into QGIS and set the project CRS to match. Use View > 3D Map Views to see the Z, and the Temporal Controller (Layer Properties > Temporal > separate start and end date fields) to play the staging.

Style packs

CAD styling (title-block borders, layer colours, KML and IFC surface styles) comes from a style pack: a package or directory with templates/*.dxf and an optional styles.yaml. Resolution is explicit argument → registered providers → built-in neutral defaults. Any installed distribution can register a provider through the bimforge.style_packs entry-point group (a zero-argument callable returning a pack spec or None).

Fixture provenance

Test fixtures cite public sources or derive their quantities in-repo. They carry no employer bid numbers and no working-directory paths, and CI's de-org scan refuses a change that adds one.

License

Apache-2.0. See LICENSE and NOTICE. Security reports: SECURITY.md.

Metadata

Release files for bimforge 0.1.135

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bimforge 0.1.135
File Size Uploaded Provenance Actions
bimforge-0.1.135.tar.gz 885.3 kB With provenance Details for bimforge-0.1.135.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bimforge 0.1.135
File Interpreter ABI Platform Actions
bimforge-0.1.135-py3-none-any.whl Python 3 none any Details for bimforge-0.1.135-py3-none-any.whl

Total release size: 1.9 MB

Release files / bimforge-0.1.135.tar.gz

Download URL bimforge-0.1.135.tar.gz
Size 885.3 kB
Tags Source
SHA-256 checksum
How to use checksums
2997262f02f78f015cf24167b5338d3c57b9231d6b6f4e6ff9d64cff4ddffb6e
BLAKE2b-256 checksum
How to use checksums
bb863b0ccbf9cc59b26d3567c7aa52fa59c06d5d0a9b69ff12f5200df48a097b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / bimforge-0.1.135-py3-none-any.whl

Download URL bimforge-0.1.135-py3-none-any.whl
Size 989.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c87cad3bb1d0d56014d35682c1d6215a86347f75b4a77cdc0198df6907243d1
BLAKE2b-256 checksum
How to use checksums
5ce33b93bf02225c8d06d092ce3f19d5b5cd91a4da52295aaafaeb5bdcec8600
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for bimforge 0.1.135

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for bimforge-0.1.135.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.135 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page