← IFC Quantity Takeoff

How to compare two IFC revisions for a change order

When a new issue of a model arrives, the estimator's question is what changed in quantities, priced, and the coordinator's is which elements changed. Comparing two IFC files by GlobalId alone answers both badly: an export that renews an element's GlobalId makes it look removed and re-added, and a Revit wall exported as parts in one issue and whole in the next looks like a demolition. A useful comparison matches elements by GlobalId, then by Revit's element id in the Tag, then by place and volume, and then reports the change on every bill-of-quantities line.

Open the free IFC takeoff (or press Compare two revisions of it on it)

Steps

  1. Open the takeoff page and choose the later revision as the model.
  2. Under Compare with an earlier revision, choose the earlier one in Earlier revision (.ifc).
  3. Type your rates on the bill of quantities if you want the change priced; the same rates price both revisions.
  4. Press Download the change in quantities (CSV) for the change on every line (count, m3, m2, m, kg and amount, before and after), and Download every changed element (CSV) for each element added, removed, changed, moved or resized, with what changed.

A worked example

The page's sample office has a second revision. Between them, 7 elements become 7: 3 unchanged, 3 changed, 1 added, 1 removed, and 1 matched under a new GlobalId by its Tag. The change in quantities by class and type:

ClassCountVolume m3Area m2Length m
IfcColumn1 → 2+0.2120580+3
IfcSlab1 → 1+100
IfcWall, Basic Wall 2004 → 3−2.084−10.42−4

Behind those lines, element by element:

On five real Revit exports of one house, a GlobalId-only comparison listed 190 element records as added or removed that were the same element under a new GlobalId, or a host wall switched to its parts; this comparison pairs them. A model re-serialised with no edit gives 0 changes. When a designer deletes a window and places another in the same opening, the new one has a new GlobalId and a new element id; the comparison lists it as replaced in place, with the type it replaced, instead of one window removed and one added. On a two-day step of a second house, 22 of the 25 window records a plain comparison listed as removed or added were 11 windows re-placed or swapped for another size.

A storey renamed between issues (the same storey, a new name) is listed once as storey renamed, not as a change to every element on it. On a BlenderBIM model of a real house, the issue that renamed its storey had listed all 28 matched elements as changed; 4 of them had nothing else. A type renamed the same way is listed too, but each of its elements is still shown as a type change, because a type's name is its specification: Revit keeps the type's id when a glulam beam's type becomes a steel section.

Rooms are compared too, because a brief changes them as often as walls: a room added or removed, a property on it added or given another value (its use, a finish, a booking note), or its floor area, net wall area or count of doors and windows changed, each listed as a room line in the change list and the CSV. Tested on 20 edits made through Archicad 27, each with a written list of what it had to add: every one of the 87 listed rooms, doors, windows and walls was reported added, and every one of the 42 listed room notes was reported as a changed room. The only other changes it listed were 14 existing rooms whose walls gained the new door or window, which is what the finishes estimate needs to know.

On the command line

node cli.mjs new.ifc --compare old.ifc --changes changes.csv   # line changes to stdout, elements to changes.csv

Questions

How do I compare two IFC files?

Take off the later revision and drop the earlier one under Compare with an earlier revision. You get the change on every bill-of-quantities line and a list of every element added, removed, changed, moved or resized, both as CSV.

Why do unchanged elements show as added and removed?

Some exports give elements a new GlobalId each time. The comparison falls back to Revit's element id, stored in the Tag, and then to the same class, place and volume, so those elements are paired instead of being counted twice.

Can it price a change order?

Yes. Type rates on the bill of quantities; the same rates price both revisions, and the change CSV carries the amount before, after and the difference. The rates are yours.

Is either model uploaded?

No. Both files are read in your browser tab.

More guides