Skip to content

Columns turned off the model's axes are drawn unturned: at their section's size, or too big where only the record box is known (read from the code, unmeasured) #2096

Open

Description

@DrunkOnJava

Found while reworking the beam-end probe for #1839 (#2093). Read from the code, not yet measured on any file: no open model Measure reads has a column turned off the model's axes.

What the export does with a turned column

A column whose body is not its saved mesh is drawn as an axis-aligned rectangle at its record box's centre:

  • Columns never get their instance's plan axis. attach_instance_axes (RE-87) reads it for doors, windows and products only (src/research/partition_schema_mvp.rs).
  • TURNED_BOX_EXCLUDED_CLASSES in src/ifc/export_content.rs leaves Column and StructuralColumn out of the turned-box rule, because their type's section draws them.
  • That section is drawn without a turn. Where no section is joined, the record box is drawn as it is.

Measured on #2097 (run 44511799400, 101 models): this holds for columns drawn from a rectangular or hollow section or from the record box, not for I-section columns, which the export already draws turned by their own angle. On the Revit 2024 to 2027 saves of every file Measure reads (the older saves give the probe no column transform), the only columns more than 2 degrees off a multiple of 90 are six on Snowdon Towers Structural, and the export already draws them turned by their own angle (read from the code: the I-section route is the one column route in its record-body code that sets a rotation). So no open file has the case below, and a fix cannot be checked on one yet. At a quarter turn the record-box fallback is already right on 112 of the 120 columns with a mesh (such a column's box is its footprint), so a fix turns a type's section, never the fallback.

So for a w by d column turned by a from the model's axes:

What is joined What is drawn Off by
The type's section w by d, at no angle The right size, turned wrong by a
No section The record box, w cos a + d sin a by w sin a + d cos a Too big: a square column at 4 degrees has 1 + sin 8° = 1.139 times its plan area, so 13.9 per cent more cross-section and volume

Which columns take this path

On Revit 2023 to 2027 the default export draws a column from its saved mesh where it decodes (#1191), and that mesh is turned correctly. This path is for:

  • columns whose saved graphics are refused or absent;
  • every column of a file before 2023;
  • an export made with --no-saved-meshes.

How many columns that is on a turned model is not known. On #1839's model, the probe's outlines line from the S6 build will give the count of columns drawn from the saved mesh, the section and the box.

Done when

Activity

  1. added
    area:geometry
    area:ifc
    type:bug
    on Nov 19, 2026
  2. added 2 commits that reference this issue on Nov 19, 2026
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:geometryarea:ifctype:bug

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions