Skip to main content

import_step_bodies

Function import_step_bodies 

Source
pub fn import_step_bodies(text: &str) -> Result<ImportedStep, StepBodyError>
Expand description

import_step_with_appearance with the error TYPED: the lane the IMPORT3D feature uses, so a refused body reaches the app as a class and not only as text.

A refused body refuses the import. collect_step_solids skips a body that failed to build and returns the rest, counting it in failed, and until 2026-09-30 this entry point returned those bodies as a success — the count and the first error never left ImportedBodies, so a file with a body the importer could not build imported SILENTLY short. A body the closure gate refuses is a body the file describes and the kernel declines to certify, and returning the others as the file’s contents would be the partial result the typed-refusal plan rules out (“partial geometry is not a successful result”). The feature has no per-body typed slot to say “five of seven” (Fulfilment::rejected is a closed selection-resolution kind), so the whole import is refused with the first body’s class and a message naming every refused body; the report lane (import_step_report) keeps returning the bodies that did build beside the refusals, for tools that want to read them. Bodies that fail with TEXT keep the pre-2026-09-30 behaviour (skipped, the rest returned) — changing that is the plan’s migration of the builder boundary, not this gate’s.