pub fn write_step(
ir: &CadIr,
w: &mut (impl Write + ?Sized),
opts: &StepWriteOptions,
) -> Result<ExportReport, StepError>Expand description
Serializes an IR document as an ISO 10303-21 STEP AP214 file.
The output declares the AUTOMOTIVE_DESIGN schema and a millimetre length
unit. Coordinate values are not rescaled. The IR linear tolerance becomes
the representation context’s uncertainty value.
Geometry conversion completes before this function writes the header. It
then streams the header, DATA instances, and closing records to w. An I/O
error can therefore leave a partial file and returns no report.
On success, the report contains DATA entity counts and loss notes for omitted or reduced content.