Repository navigation
Conversation
Recover current wall types and verified host quantities
Prepare RvtIO 0.6.3 release
Recover remaining current-copy types and host quantities
Export Site families as IFC building element proxies
Recover stored schedule type IDs
Recover type IDs from framed project records
Recover remaining historical RVT type IDs
Avoid overflow in trimmed-face ear clipping
Recover unanchored type IDs when keeping copies
Collaborator
Author
|
Review notes from a static read of head Merge order and size
Needs a fix
Minor
Test gaps (minor)
|
The scorer renders both PDFs at 100 dpi, keeps ink & ~erosion(ink, 3x3) and matches it with a 5x5 square; it reproduces the journal numbers (recall 98.65/94.49/94.10/95.90/96.27/92.55) and its self-check erases our thin lines and requires recall to fall. The journal notes the corrected A103 panel experiment (crop before occlusion plus exact depth, transparency and duplicate-group skip: A103 96.03/93.32, A104 96.28/95.48, A105 92.72/93.59, panel block 50.37%), the re-measured A102 cut-line loss (94.09/96.84 -> 94.02/96.78) and the sampled A104/A105 stroke-width bands.
With the grouped Revit parameter sets and no names option, the entries of one group that share a name and a value are written as one property, under the first parameter's ID. Entries that still share a name, because their values differ, each get the parameter ID appended, then #n if that name is still taken. Property names are then unique within a set, as IFC requires.
) RvtReaderOptions.ReleasePartitions (off by default) drops the decompressed partition streams before the element model is built, for a file read in the layout the reader ships. RvtSceneReader.Read(path) and ReadStream set it, because the scene is mapped from the document alone, and RvtRevisionDiffer copies it with the other reader options. Tests check that the option leaves the model and the scene unchanged, and that what the reader takes from the partitions still reaches the model of an exactly framed synthetic file.
The panel needs the equipment group containers skipped, exact planar depth with the transparent-face branch, and a crop-bounded merge; the block moves 39.26 to 50.37 percent. The best combination gives A103 96.03/93.43 and A105 92.56/93.59 but A104 loses 0.05/0.07, so it stays a candidate. Record the scorer run noise and the vector-identical plane-only run so small score deltas are not read as content changes.
Skipping only array-group containers by the group type defining instance restores the A103 panel but costs A105 0.49 recall: in that view the containers are the drawn array. Wall cut caps recover 0.12 of A103 precision but A104 stays at 95.48 precision (0.07 below baseline); the A104 vector diff is 27/29 moved detail segments, not a single missing occluder. The panel candidate stays uncommitted under the recall-without-precision-loss rule.
A container is skipped only when a member crosses the view crop and section plane. A105 returns to 92.56/93.59 because its containers stay; A103 reaches 96.10/93.41 with the panel at 49.14 percent. A104 remains at 96.21/95.47: its members are visible, and the reference lines are the container version offset by a few millimetres (27/29 segments), a placement difference rather than a missing occluder.
The 27/29 A104 segments are edge selection, not placement: member 800329 holds symbol 776839 at translation (-44.408627,2.835300,2.109710) ft with the 37-degree rotation, 800350 at (-47.370315,-1.094993,1.392770), while containers 800330/800351 hold the member instance at identity and 800331/800352 hold the subgroup instances at identity. Centre-visibility variants leave either A103 precision or A104 recall below baseline, so the panel fix stays uncommitted.
800329 and 800330 print 667 identical face bounds, so the 27/29 A104 segments are depth/edge selection, not assembly. Exact planar depth on the PV glass (equipment faces and equipment groups with a transparent face) restores the A103 panel at 50.37 percent with no group skip: A103 96.03/93.37, A104 96.27/95.55, A105 92.55/93.59. A103 keeps a 0.11 precision loss from lines revealed behind the panels; not committed.
…ut (#339) RvtReaderOptions.ReleasePartitions now also drops the decompressed partition streams, both the original and the rewritten ones, of a file that is read by its own class schema and rewritten into the Revit 2022 layout, unless PreserveWideLayout is set. The type references are then read by the schema of the file itself, as without the option. Such a file keeps its streams when it is not rewritten, or when PreserveWideLayout is set.
The targeted PV-glass depth gives A103 96.02/93.37, A104 96.27/95.55, A105 92.55/93.59 and the 50.37 percent panel. The A103 vector diff is 2 added/4 removed segments; the panel block precision is 100 percent; the raster clusters are equal add/remove shifts of unchanged lines. Masking the date stamp lifts A103 precision only to 93.39, so no background occluder can recover the remaining 0.09. Candidate content-correct, uncommitted under the rule.
The 50 mm ConsolidateCoincident merged a 40 mm door-frame/leaf pair (505974/505854) and a 29 mm specialty-equipment pair (684791/684776), both present in the DXF. The rule now merges cut edges only exactly, keeps opposite-facing sides of a thin solid, and retains true same-normal duplicates. The candidate reaches A103 96.31/93.37 (panel 65.19%), A104 96.28/95.48, A105 92.63/93.55; the cell grid is a surface pattern, not edges.
A read holds one Parameter for every value of every element. Its storage type and five flags took a field each, which made the object 56 bytes on a 64-bit runtime. Pack them into one 32-bit field, which makes it 48 bytes. The properties are unchanged. Writes are atomic, so that two writers of different flags of one parameter keep each other's bit as they did with a field per flag, and a write of a value the bit already has is skipped. Only the low byte of a StorageType is kept; it holds every declared value.
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 5 to 7. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](actions/setup-python@v5...v7) --- updated-dependencies: - dependency-name: actions/setup-python dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
--- updated-dependencies: - dependency-name: NwcIO dependency-version: 0.18.0 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…344) Seven tests that run only with private sample files expected behaviour that main has changed on purpose. CI skips them. - Element.BoundingBox is the outline of the element header since #134. The five box tests read the tight box from Element.Geometry.BoundingBox, and RootBoundingBox_MatchesRevitApi now checks Element.BoundingBox too. - A level keeps its own name since 8120ab2. The type name is checked on the type element. - The Compact JSON property count follows the header category fallback added in 0335f6a.
Every patch a cylindrical face is tessellated into held its own copy of the origin, the axis and the reference direction of the cylinder. A model of pipes has millions of such patches. Copy the three once for a surface and let its patches point at the copy. Faces only read them and compare them by value, and a GeoFace already took them from its GRepFace by reference. Move the two helpers out of the tessellation method so that they can be tested without a model file.
Add RvtReaderOptions.ProjectElementsOnly, off by default. It builds the elements of the element table, the definitions that exist as a geometry block alone, and of the other records outside the table only those that a built element refers to. A Revit 2022 file keeps the content of loaded family documents, and records that are no longer in the document, outside the table; built as elements they take most of the memory of a large read. The option applies when the element table was read exactly. RvtSceneReader.Read(path) and ReadStream set the option, and RvtRevisionDiffer copies it. In the scene of a Revit 2022 file a material can get the other of its two names. A grid line of a record outside the table is left out, as it already is in the IFC export, and so is its datum element when datum geometry is requested. Values derived from all elements of the model are derived from the built ones: a model line that only records left out by the option named as their type now takes the name of its type.
With ProjectElementsOnly, collect the geometry blocks of the records outside the element table but decode them only when something that is kept refers to their owner. References are followed in waves over the state of the read, and an owner reached this way gets its geometry by the same steps in the same order as before. The built elements are the same. The read decodes less and its memory peaks lower.
…ir last reader (#347) With ReleasePartitions, drop the per-element tables once the elements hold what was read from them, and the decoded geometry blocks after the last pass that reads them. The cache of placed family symbols now ends with the last pass that places symbols, in every read. Add RvtReaderOptions.DetailLevelQuantities, on by default. Off, the reader skips the Coarse and Medium measures of doors, windows and structural columns, which only the IFC export reads. Scene reads turn it off. A document read without them exports other areas and volumes for those elements to IFC. A read that reports progress now walks the parameter stream in windows instead of copying each stream into one buffer, and reports that phase once per window.
… in the band (#348) Add RvtReaderOptions.PlacedFacesOnDemand, off by default. An element whose geometry is placed symbols alone builds their placed faces when GeometryData.Faces is first read. Scene reads set the option, because a scene draws an instance from its symbol and its placement. Fit the spline through the samples of an edge on the four cells of each row of its system instead of a square matrix. The curves are the same bit for bit, and a long curve no longer allocates the square of its samples. Pruning writes the kept ranges of a chunk straight into their array, and the walk of a partition stream keeps one chain buffer.
…d to (#349) With ProjectElementsOnly, treat an element of the table whose record names a loaded family like a record outside the table: build it and decode its geometry only when a built element refers to it. The list a family keeps of its own content does not count, and the content of a family modelled in place is built as before. The family of a record is known only after the walk of the parameter stream, so with the option the walk decodes the geometry and the block scan does not. With ResolveCurrentCopies, the frames of a partition now read the records from the pruned chunks instead of keeping the unpruned segments as well.
The entry for the scene reads that build the elements of the project said that the elements, instances, geometries, property sets and levels of a scene are the same. With datum geometry or model lines requested that is not always so. Say that with datum geometry a grid that is left out loses its datum element too, and add the difference that was missing: an element taken for a type only because records that are not built named it as theirs takes the name of its own type.
BuildGeometryData handed the block's own MeshNodes and NodeMeasures lists to the geometry it built. Placing the symbols of an element appends to those lists, so the block changed, and an element that placed the same definition, or a later build from the block, could get those entries twice. Elements are built in parallel, so which ones did could differ between two reads of one file. Both lists are now copied.
… equal vertices of a block (#351) The deferred decode of the quantity view of a geometry block no longer keeps the parse context of the block alive, the decompressed partition included. A face of a block is completed in place instead of being copied, and the defaults of a face are made when they are first read. With ProjectElementsOnly and ReleasePartitions the reader drops, once the elements are built, what it holds for the records that were not built, except what a later pass can still ask for. A read that keeps its state for an export drops nothing. RvtReaderOptions.ShareEqualVertices is new and off by default; scene reads set it. The vertices of a decoded block that are equal bit for bit become one array. It is an option because the vertex arrays of the public model can be written to.
…record fields, smaller faces (#352) The decode of a geometry block makes fewer short-lived objects. What it decodes is the same. RvtReaderOptions.UndrawnFacesOnDemand is new and off by default; scene reads set it. An element that a mesh extraction never draws can keep the bytes of its geometry block instead of the faces, and builds the same faces again when GeometryData.Faces is first read. Blocks give up their faces after the decode where no placement reads them, large blocks of waiting owners already during it, and the clipped placed faces of elements that are never drawn are left to demand as well. The named fields of the stored records are kept in key layouts shared between records, and the rarely used fields of GRepFace and GeoFace are held in an object made only when one of them is set.
…#353) Reading in a browser, compiled ahead of time to WebAssembly, takes less time, and reading a file that is rewritten into the Revit 2022 layout takes less memory. What is read is the same. A decoder throws a new exception object for every field it cannot read, because in that runtime an object thrown again carries its old stack trace into the new throw. The wait for the background tasks of a read is a method of its own, and the elements are built by index, which keeps the read of a model out of the interpreter. The edits of a rewritten record are put in order by a stable insertion sort. With ReleasePartitions the streams of a rewritten file are released right after its element records, unless their preparation has to wait for the stream walk. The rewritten records of the project are held once, a partition stream is rewritten from its chunks, and the release empties the lists of chunks.
…numbers and structs (#354) A browser build runs queries over numbers and structs, some library sorts and default comparers in its interpreter. Where the geometry of the elements is built, loops and explicit code replace them: the renumbering of the faces of a solid, the order of the corners of a face, the triangulation of a profile and a comparer for the two vertex dictionaries keyed by three 64-bit numbers. The model that is read is the same. All new types are internal.
…tretches Views and phases - Plans, elevations, sections, the site plan and the 3D stand-in follow the view's phase, phase filter and design options, on sheets and printed on their own, with the tags of what they leave out. A view left with nothing to project prints a page with its name. - A plan on a sheet leaves out the walls, columns, floors and rooms that its view hides by element or by category. Elevations, sections and the isometric stand-in - An edge whose depth along its length is known is cut to the stretches that nearer faces leave visible (the cross braces of rst_basic S206). - Far clipping, hidden categories in every display mode, Mass records, family types and records outside an exact element table are applied or left out. - Exact occlusion planes for grouped equipment and model groups; the nearest of edges that project onto one another prints; facet joints of curved surfaces stay out; the heavier cut pen wins; line merging no longer depends on edge order or joins lines that run opposite ways about the origin. - Furniture contours, projection pen for categories Revit never cuts, and polygon meshes of hidden subcategories are handled. - The isometric stand-in looks down from above its south west corner. Tests: net10.0 12339 passed, net8.0 12335 passed, 502 skipped each. The 33 sample sheets print; the phase rule was not compared with Revit on real data (no sample view has future or demolished elements). docs/printing.md and the changelog describe the rules, limits and the measured parity.
View range - A plan view that stores its level ids as two pairs ([a, a, b, b, -1]) now has its view range read. The scan tries the three-equal-ids shape first and takes the pair shape only when that finds nothing, and only with two real levels: a flag block ahead of the record holds -1, -1, 16777216, 16777216, -1. Of the 2022 samples only rst_basic "Level 1" and "Level 2" gain a range. Framing in plans - A plan with a view range draws the outline of the structural framing between its bottom clip and its cut plane. A beam names no level, so a plan without a range draws none. The outlines widen the plan extent and the grids it keeps; the grid block now runs after the element loop. A plan with beams but no wall or column prints; both members of an X brace and a long diagonal member are drawn; each plane of the band is measured from its own level (railings too). Measured on the five 2022 samples against the native Revit export: only rst_basic S101 changes among the 33 pages. Recall / precision: 14.3 / 95.0 -> 20.8 / 93.5 at ink 140, 22.9 / 95.9 -> 43.4 / 81.6 at 180, 24.7 / 96.8 -> 50.8 / 87.4 at 220. The rst_basic PDF grows from 3.1 to 5.2 MB. Tests: net10.0 12360 passed, net8.0 12356 passed, 502 skipped each. The record is found by its shape, not by decoding the class before it; the floors, foundations and the main house framing of S101 are still missing.
Conflicts resolved in the reader, the print and the tests. The level plans keep their shared drawing for PDF and SVG (IPlanCanvas), and the placed-symbol geometry keeps the mesh markers and arcs the printers read. Two print regressions that the merge brought are fixed: - RecordRouting.OnPruned dropped the family annotation items of a pruned partition stream, so viewport titles and opening-tag styles printed empty. It carries them over with the moved offsets (test added). - The reader now decodes the patches of a pile's or a column's own cylinders instead of placing the family symbol, and the elevation printer skipped every curved patch, so the piles vanished from rst_basic S206 and rst_advanced S-1.0. The patches of piles and columns ink as the facets of a placed symbol did (test added); other categories stay as before.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This draft records the verified PDF-printing checkpoint on top of
feat/viewport-crop-scaleatb12e943. It keeps the accumulated changes across the title sheet, site plan, floor plans, elevations, sections and details in one reviewable branch. The section-plane units fix in #300 has its ownmain-based review.Print saved schedules, title-block graphics and annotations. Use saved placement, visibility and style data in model viewports.
Restore supported model surfaces, cut profiles, material patterns, stair and railing geometry, site graphics and shadows.
Include the latest verified elevation and section visibility and shading fixes in
0eb5fbc. These cover RPC foliage at the view plane on A103, foreground furniture occlusion on A104, and glazing, stair surfaces and retaining-wall shading on A105.Print the continuous drafting grid from the saved paint region on the A104 Building Section wall. The parent face retains its solid geometry and openings.
Use the saved uniform Arial body style to align the evaluated schedule rows and column headers on A001.
Project the terrain material's saved drafting hatch and cut colour onto the vertical section-box faces of Solar Analysis on A101.
Restore the daily paths, saved hour limits and geometric sunrise and sunset labels in A101 Solar Analysis. Shade the exposed solar band and vertical terrain cuts with the saved sun settings. Hide compass marks behind opaque geometry.
Use the saved placed type outline to reject clipped RPC plants and render both sides of the retained planting meshes.
Verification
All six sheets were reprinted with
rvtio print --all-sheets. Bothb12e943and this checkpoint were compared with the same Revit 2022 PDF. Values are percentages.The A104 painted cladding reduced RGB mean absolute error in its crop from 15.77 to 14.72 at 144 dpi and from 14.38 to 13.01 at 288 dpi. The living room crop matched the previous print pixel for pixel at both resolutions. A104 whole-sheet raster F1 changed from 91.02% to 90.94% at 144 dpi. It held at 94.54% at 72 dpi. A104 vector scores and all A103 sheet scores held within the displayed precision.
The earlier A105 retaining-wall change reduced RGB mean absolute error in the target crop from 16.89 to 9.29 at 144 dpi. It preserved vector paths on all six sheets. A001–A104 matched the preceding print pixel for pixel after masking timestamps, including A103 South and A104 West and Building Section.
The A001 schedule crop RGB mean absolute error at 144 dpi fell from 4.32 to 0.80 after restoring the row layout. The A101 soil cut RGB mean absolute error at 144 dpi fell from 36.81 to 31.20 after restoring the hatch. The soil tone still differs from Revit. A103 South, A104 West and A104 Building Section are pixel-identical to the preceding checkpoint at 72 and 144 dpi.
Compared with the preceding PR commit (
f68cb9a1), A101 raster F1 rose from 93.51% to 94.41% at 72 dpi and from 92.76% to 93.36% at 144 dpi. A101 vector scores held at 100.00% recall and 51.92% precision. The other five sheets preserved their reported scores. Timestamp-normalized raster comparisons preserved A103 South, A104 West and A104 Building Section.dotnet build src/RvtIO.Cli/RvtIO.Cli.csproj -c Release -f net10.0dotnet test tests/RvtIO.Tests/RvtIO.Tests.csproj -c Releasepassed on .NET 8 (12,126 passed) and .NET 10 (12,130 passed), with 502 skips on each target. The earlier schedule-style and terrain-pattern real-file tests also passed separately on .NET 10.git diff --cached --checkResidual styling and geometry differences remain. Vector precision is lower than the base on A101, A103, A104 and A105. The Revit reference carries drawing content in raster tiles on those sheets, so the raster comparison measures visible geometry that
rvt_prtcannot match as vectors. The model and comparison PDFs remain in the local validation workspace.