Skip to main content

Module emit

Module emit 

Source
Expand description

write() — the Part 21 envelope, the last step of writing.

write() serializes a StepModel to Part 21 text. The DATA section comes from the generated writer; the HEADER section, FILE_SCHEMA included, comes from the model’s own FileHeader (StepModel::header). Conformance is the authoring layer’s job: crate::Ap242Author admits only AP242 entities and stamps the AP242 schema identity on the header, so an authored model writes out as a valid AP242 file.

Functions§

write
Serialize the model to Part 21 text — the model’s own header (StepModel::header, FILE_SCHEMA included) plus every entity, verbatim.