Skip to content

Score Revit 2015 to 2020 angled walls wall by wall, and restore their line bodies if none is worse than its box #1535

Closed

Description

@DrunkOnJava

What

#1517 (RE-364) draws Revit 2015 to 2023 walls at an angle along their lines. Its first version, on Vitoria ALD26 Before (Revit 2018), took angled walls' faces from 1 to 33 of 48 within 0.001 ft of Revit's export. The version that lands keeps angled walls on 2015 to 2020 as their boxes unless the box closes on the line's rectangle, because nothing read on those releases marks a slanted wall, which would be drawn as a thin upright slab. So that gain is not kept.

The evidence so far is totals: within 1 ft of Revit's, 13 of 48 on main against 33 of 48 on the first version, and the largest face error 9.67 ft against 9.53 ft. No wall-by-wall comparison exists, and no tested file is known to hold a slanted wall on those releases.

The first version's code is kept at refs/archive/2026-11-08/pr1517-first-head (0aad0b0c).

The same version also wrote wall quantities on 2015 to 2023, which the landed version leaves out. What disagreed with them were Warmond's export, which went through another tool, and an IFC2X3 view, both counted apart; modelo_bim (IFC4) had 1 of 4 equal and 0 different.

Frigento and Vitoria's ALD26 Project stay held out for this issue. Versions are designed and compared on the spent ALD26 Before and Autodesk's samples, and the two held-out projects run once on the final candidate, as totals, for pass or fail. Both projects have already been scored for this work, by Measure runs 42532162952 (the first version) and 42532798082 (the faces-from-line trial), and their totals are in the comments below, so that last run is a pass or fail on files no longer unseen for this rule. It isn't a first measurement or a held-out result in the W5 sense, and no further rule is chosen from them.

Done when

The first version is scored wall by wall, as counts, bodies and Qto_WallBaseQuantities alike, against its box on the 2015 to 2020 models with a Revit export that are not held out.

  • If no wall is worse than its box, the line bodies return with their own BodySource and the risk stated, in a pull request held to Measure.
  • If any wall is worse, those walls set how tight the check must be, and RE-364 says so.
  • The quantities return wherever no untouched IFC4 export disagrees.

Activity

  1. added
    area:elements
    priority:P2
    type:research
    on Nov 8, 2026
  2. DrunkOnJava commented on Nov 8, 2026

    @DrunkOnJava
    OwnerAuthor

    First result, Measure run 42532162952: the first version of #1517 (0aad0b0c) against the code before it (ab5f8e1c), on Revit 2015 to 2020 models with a Revit export. Counts only. The scored exports' provenance is in the table.

    Angled walls with both faces within 0.001 ft of Revit's:

    model export angled walls before first version
    Frigento (2020) IFC4, untouched 83 0 69
    Vitoria project (2018) IFC2X3 74 1 33
    Vitoria ALD26 Before (2018) IFC2X3 48 1 33
    BIMcollab's example (2015) IFC2X3, rewritten 1 0 1

    Wall by wall on ALD26 Before, the one model whose walls can be listed (a difference under 0.001 ft counts as the same):

    of 48 angled walls better same worse
    faces (across) 32 16 0
    ends (along) 17 16 15 (by at most 0.64 ft)
    the larger of the two 24 15 9

    So no wall's faces get worse, which is what a leaning wall drawn as a thin slab would show; the 15 walls whose faces are more than 1 ft off are off by the same amount before and after. The ends are the real cost: 15 walls end further from Revit's than their box does, since a record on these releases is read without its control joins.

    By this issue's done-when, those 15 walls set how tight the check must be. The shape that follows is a body whose faces come from the line and whose ends stay where the record box cuts them, measured on the same models.

  3. DrunkOnJava commented on Nov 8, 2026

    @DrunkOnJava
    OwnerAuthor

    Second result: the trial on branch research/1535-faces-from-line (7180ba95), where on 2015 to 2020 an angled wall takes its faces from its line and its ends from its box, with no join reach. Measure run 42532798082 against main at 1e2d3de4.

    Faces keep the whole gain, and axis-parallel walls don't move. Ends improve against the first version:

    Frigento 2020 (IFC4, untouched, 83 walls) Vitoria project (IFC2X3, 74)
    faces within 0.001 ft 2 to 69 1 to 33
    ends within 0.1 ft 2 to 16 8 to 9
    ends within 1 ft 28 to 71 74 to 74

    Wall by wall on ALD26 Before (48 angled walls), comparing each wall's larger error, faces or ends, against its box:

    better same worse
    first version 24 15 9 (by up to 0.64 ft)
    this trial 25 15 8 (by up to 0.11 ft)

    Seven of the 8 end 0.277 to 0.279 ft from Revit's, against 0.164 to 0.206 ft for the box; the eighth moves by 0.002 ft. Faces are worse on none, and every wall whose faces are more than 1 ft off is off by the same amount as before.

    That near-constant 0.279 ft looks like one cause rather than seven, so it's the next thing to read. By the done-when, the check isn't met yet: 8 walls are still worse than their box, and Frigento's worst end error is up from 2.42 to 3.19 ft.

  4. DrunkOnJava commented on Nov 9, 2026

    @DrunkOnJava
    OwnerAuthor

    Third result, from the wall-by-wall rows of run 42532798082 on ALD26 Before: the near-constant 0.279 ft is not yet one explained cause.

    All 8 walls the trial leaves worse than their box are the same 10 cm wall type, and their faces are exact (0.000 ft, against up to 0.206 ft for the box). What is worse is the ends only. But the type doesn't separate them from the rest:

    thickness better same worse
    10 cm (29 walls) 21 0 8
    8 cm (19 walls) 4 15 0

    So a check on thickness would be a fit to this one model, and it won't be added. The next step is to print what rvt-rs itself reads for each of these walls (how far the box is from the line's rectangle, per axis), to see whether anything available at export time tells the 8 from the 21. If nothing does, this falls under the second case of the done-when: these walls set the limit, RE-364 says so, and the ends wait for the control joins on these releases.

  5. DrunkOnJava commented on Nov 9, 2026

    @DrunkOnJava
    OwnerAuthor

    Fourth result, a negative one: run 42541485876, on ALD26 Before only.

    Printing what each wall reads showed that all 8 walls the trial leaves worse lie within 5° of a model axis, where one of the trial's two run estimates divides by a component near zero. So I tried taking the run only from the axis the wall mostly lies along (8afa813b).

    It doesn't explain them. The 8 walls are worse by exactly the same amounts as before (up to 0.114 ft), so their ends don't depend on that estimate. The counts are 25 better, 15 same and 8 worse, as before, and ends within 0.1 ft go from 8 to 7, so the change is not an improvement. Near-axis walls also appear among the better ones, so being close to an axis doesn't separate them either.

    That rules out thickness and this estimate. The trial stays where it was against the done-when: 8 walls are still worse than their box.

  6. DrunkOnJava commented on Nov 9, 2026

    @DrunkOnJava
    OwnerAuthor

    Fifth result, from the rows already in runs 42532162952 (the first version) and 42532798082 (the faces-from-line trial), on ALD26 Before.

    The 8 walls end exactly as far from Revit's ends under the first version as under the trial: 0.277 to 0.279 ft on 7, and 0.003 ft on the eighth. Those two draw the run differently (the line's own length about its midpoint, and the run the box allows about the box's centre), so the error doesn't come from how the run is estimated. These walls end about 0.28 ft from where their line puts them, and their record box puts them about half a wall thickness (0.164 ft) from Revit's.

    What the reader holds for them: none has a join reach (none of the 48 angled walls does on these releases), and on 7 of the 8 the box's two run estimates differ by about one wall thickness, so the box does not close on the line's rectangle. That is also true of one wall the trial improves (706912), so it doesn't separate them.

    So, by the done-when's second case, these walls set the limit: a 2015 to 2020 angled wall whose box doesn't close stays its box, as on main. The ends of such walls are a join effect these releases' records don't yet give us. What would settle it is the signed difference at each end (whether Revit's end is past the line's or short of it), which wall_bodies_vs_ifc.py doesn't print. That is the next step here.

  7. DrunkOnJava commented on Nov 9, 2026

    @DrunkOnJava
    OwnerAuthor

    Sixth result: the signed difference at each end, which settles the question the fifth one left. Measure run 42558474888 scored the faces-from-line trial (7180ba95) against the code before it (1e2d3de4) on ALD26 Before, with a scorer that lists each end's signed difference from Revit's: positive where rvt-rs's body runs past Revit's end, negative where it stops short (branch measure/1535-ends, 963bb49c, temporary).

    The 8 walls the trial leaves worse than their box:

    wall box: start, end (ft) line: start, end (ft)
    705842 +0.164, +0.164 +0.278, +0.277
    706031 +0.163, +0.165 +0.279, +0.276
    706347 +0.174, +0.014 +0.279, -0.002
    706416 +0.174, +0.009 +0.277, -0.004
    706468 +0.169, +0.171 +0.275, +0.278
    706632 +0.186, +0.186 +0.279, +0.279
    706787 +0.184, +0.184 +0.278, +0.279
    706109 +0.000, -0.000 -0.003, -0.001

    So on 7 of the 8, Revit's wall stops 0.275 to 0.279 ft (about 85 mm) short of the line's end, at both ends or at one, and short of the box's end too. Neither body is Revit's: the line is too long by more than the box is. The eighth, 706109, is within 0.003 ft either way.

    That fits a trim at a join, which none of these walls has a reach for on these releases. It fits a rule for their one wall type just as well. All 8 are LKS_T9 10cm, and the 58 ends of that type's 29 angled walls under the line body fall on a few values: 12 are about 0.28 ft past Revit's, 12 about 0.17 ft past, 4 about 0.39 ft short, 4 0.037 ft short, and 26 within 0.02 ft. No step compared Revit's end with a neighbouring wall's face, so neither reading is tested. (Edited: this paragraph first said the 0.28 ft is what a join trim does, which this run does not show.)

    Of the 25 walls the trial improves, the faces are what improves. Only 5 have both ends within 0.01 ft of Revit's. The other 20 have 28 ends beyond 0.01 ft: 16 of them are about 0.17 or 0.39 ft, and the rest are between 0.02 and 0.28 ft.

    By the done-when's second case, these walls set the limit: on 2015 to 2020, an angled wall whose box does not close on its line's rectangle stays its box, as on main. Which rule gives its ends is not known; the decision holds either way. Next: RE-364 gets an addendum with these tables. The quantities in the done-when's last item stay to be done, separately.

  8. DrunkOnJava commented on Nov 9, 2026

    @DrunkOnJava
    OwnerAuthor

    Seventh result, on the done-when's last item (the quantities): the flags that allow them read on 2015 to 2023 exactly as on 2024. RE-364 turned them off for the wrong reason.

    A wall's Height needs its record's uncut flag, and its side areas and volumes need whole as well (RE-266, RE-270). Both flags come from the *Step classes in the wall's native record. RE-364 turned them off on 2015 to 2023 because the record's control joins (joins, side_joins, exposed) read empty there. That is a different part of the graph, and nobody had checked the steps.

    Measure run 42562621272 ran a new probe, probe_1535_wall_steps (29a382b9), on Autodesk's sample projects of every year. It lists each wall record's step classes and both flags. Each 2015 to 2023 save was then compared wall by wall with the same project's 2024 save (rac_basic with its 2023 save, as RE-364 does):

    project saves walls each steps the same flags the same
    rac_advanced 2015 to 2023 180 all all
    rac_basic 2015 to 2022 vs 2023, 2023 vs 2024 60 all but 2 walls of 2015 all
    rme_advanced, rme_basic 2015, 2019 166 all all
    rst_basic 2016 to 2023 9 all all

    That is 2,894 of 2,896 walls with the same step classes and all 2,896 with the same uncut and whole. The two walls that differ are rac_basic 2015's. One has one JoinEndGStep where 2023 has two plus a WallEmbedWallGStep, and the other has three JoinEndGSteps where 2023 has two. Neither changes a flag. The four walls of rst_basic 2015 are not in its 2024 save, and rst_advanced has no later save.

    So I've opened a change that keeps the flags on 2015 to 2023 (748eff38) and leaves Length out, since Length does depend on the control joins. It is in Measure run 42564158277, against main, on the reference models, the BIM4LCA office, R2025, the samples of every year, racadv and BIMcollab. Next, I check the quantities it writes on each old save against the same wall's quantities in the later save. RE-364 section 5 listed 3 Heights and 19 side areas where the later save writes none, and wall 418079's GrossVolume; each needs a cause before the change goes further. Frigento and ALD26 Project run once, on the final candidate, as totals.

  9. 2 remaining items

  10. DrunkOnJava commented on Nov 9, 2026

    @DrunkOnJava
    OwnerAuthor

    Closing this as answered: both items of the done-when have their measurements, and what is left has an issue of its own.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:elementspriority:P2type:research

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions