Expand description
Writing a design back out as an OpenRocket .ork file.
Guide: OpenRocket .ork design files says what is written and what is not.
The file is written from the Design alone: its rocket, its motors, when its recovery
opens and its stages separate, and the simulations OpenRocket last ran, each written as the
tags super::design reads them from. Everything the design keeps but hpr does not model
(its super::Extensions, such as a pod set, a part’s color or a simulation’s extension) is
put back where it was. So a .ork read and written again reads back as the same design, which
is how cargo xtask ork checks this on every file in the reference library
(ADR-109).
What is written is schema 1.10, the version OpenRocket 24.12 writes, in a zip archive with
the design as rocket.ork, as OpenRocket packs one.
Constants§
- DESIGN_
ENTRY - The archive entry the design is written to, where OpenRocket looks for it first.
- SCHEMA
- The schema version written: OpenRocket 24.12’s.
Functions§
- creator
- The
creatorwritten on the document: the program’s name, version and designation in the FusionSpace product system, ashpr_core::tool::stampwrites them (hpr-sim 0.1.0 · FS · SW · TOOL 005). OpenRocket keeps the attribute as text and does not parse it. - document
- The design document for
design, with a warning for anything kept from the file it came from that has no place in it any more. - write
- A
.orkfile fordesign: a zip archive holding its document asrocket.ork, and thenattachments, such as the thrust curves and preview image of the file it was read from (super::OrkFile::attachments). An attachment calledrocket.orkis left out, with a warning: the design is that entry.