File Formats¶
.x2d — native format (recommended)¶
A .x2d file is a ZIP archive. Variants and construction sequences are kept apart from the model, so that structure.json stays small and easy to read and compare. It contains:
| Entry | Contents |
|---|---|
manifest.json |
the format version (format_version, a whole number), the version of the program that wrote the file and the list of entries. It is the first entry |
structure.json |
the model: nodes, elements, materials, sections, supports, springs, constraints, loads, load cases, analysis cases, combinations, spectral functions, nodal masses, geometry objects, cuts, punching columns, beams. Key by key on JSON data structure |
variants.json |
the support sets, the variants (each may carry a complete model of its own) and the variant combinations |
sequences.json |
the construction sequences, with their phases and operations |
beam_detail.json |
the decisions of the beam-bars detailing, when there are any |
results.json |
analysis results, when present, with any design results and the design code they were produced with (which takes precedence over the preference default on reopen) |
object_mesh.json |
the mesh that the geometry objects had when the results were computed, so reopening maps the results onto exactly that mesh |
stiffness_<id>.npy |
stored tangent stiffness matrices from P-Delta runs |
snapshots.json |
the named snapshots, when there are any: name, date/time and the model of each (no results) |
view.json |
display options, selection, and Scenes (with per-scene zoom) |
This is the default for Save / Open and preserves everything, including the view state.
Format versions¶
The format has a version, in manifest.json. The program reads its own version and every older
one: a file of an older version is converted when it opens (the status bar says so, the file on
disk stays as it was, and the next Save writes the current version). A file without a manifest
was written before versions existed and is version 1. A file of a newer version than the
program knows is not opened: the message gives its version and the one that wrote it, and asks you
to update xdfem2D. There is no way to save in an older version; to give a model to someone with an
older program, export the plain .json.
The version goes up only when a change would make the new file unreadable as it is for the old one (a name, a structure or a meaning changed). A field that is only added, with a default that means what the old file meant, does not need one. When a conversion changes the model, the results stored in the file no longer describe it and are not loaded.
Saving the same model twice gives the same file, so a .x2d kept under version control shows only
what changed.
.json — structure only¶
A plain JSON export of the model (no results, no view state). Useful for interchange and version control. Its contents, key by key, are on JSON data structure.
Migration of combinations¶
When an older model that stored load-case factors directly in combinations is
opened, xdfem2D folds each such factor into a Linear analysis case and rewrites the
combination to reference that analysis case. This keeps the
three-tier model consistent. It runs whenever a model is read from
data (a .x2d, a .json or an imported SAP2000 file), whatever the format version.
Units¶
All files use the program's units throughout: kN · m · kNm (and t for mass).