Pleochroma GitHub

User manual › Files and help

Chapter 11

Saving and File Formats

.asc versus .psdd, the cutting sheet with its meet points, and where your files go.

All chapters

11.1 What You Will Do

This chapter explains the two file formats the editor writes — the .psdd design file (Pleochroma design file), which is this app's own native format, and the plain .asc schedule — when to use each, and how the app handles a catalog design's original file versus a locally edited one. It also covers opening a file by double-clicking it or giving it on the command line, the experimental Gem Cut Studio .gcs export, and opening .gem/.gcs files directly in the editor.

11.2 .asc — The Plain Cutting-Instructions File

.asc is the long-standing GemCAD-style schedule format: a plain text file listing every facet's angle, index, and meet instruction. Two different places in the app can produce one, and they behave slightly differently — the buttons have distinct labels to make their difference clear.

Export Edited .asc, from the Editor#

While a design is open in the cutting-design editor (Chapter 3), choose File, then Export Edited .asc. This re-solves every tier's mast fresh from the design's current, edited geometry and writes a plain .asc file wherever you choose to save it. If some tier can't currently be solved, you'll see "Cannot export: <reason>." — fix that first (Chapter 5). On success, you'll see "Exported edited schedule to <path>."

Export .asc, from the Catalog Detail View#

Selecting a design in the catalog and clicking Export .asc there works differently — hovering the button spells this out ("the original file stored in the catalog, not your edits"):

Video tutorial · all videos

Export the Cutting Instructions (.asc) · 0:56

11.3 Editing the Instructions as Text

Choose Edit > Edit as Text... (in the command palette: Edit Instructions as Text...) to see the open design's cutting instructions as .asc text in a box, change them by typing, and turn the changed text back into the design. It is the quickest way to renumber a whole crown, paste a run of tiers from another schedule, or read a design the way a cutter's sheet reads.

What the text is. Exactly what Export Edited .asc would write: the refractive index the design is cut for (a material's own, or the one you typed), every tier's mast freshly solved from the design as it is now, and a concave tier as a footnote line. If the design does not solve, the dialog says so instead of showing depths that are not real; fix the design first.

What the text leaves out. A line under the intro, starting "Not in this text:", names what an .asc file cannot hold for this design: tier notes, cheater offsets, depth and width targets, tier relations, concave tiers, and always the preform, the material and the girdle size. These are not lost by opening the dialog. Tiers you keep by name keep them (see Apply below). Tier frosting (Chapter 4) is not named in that line, because it is not a field the line could list: an .asc file has no frosting, but Apply keeps the frosting of every tier that stays, and a deleted tier takes its frosting with it.

The live check. A moment after you stop typing, one sentence under the box says whether the text can be used. A problem is shown in red with its line number, for example "Line 7: ..." — a missing field, a word where a number belongs, no gear or symmetry line, an angle outside -90 to 90 degrees, or an index that is not on the gear. When the text is fine, the dialog lists what Apply would change and what it would lose or ignore, so you see the cost before you pay it.

Apply changes the design in one step. Undo takes the whole text edit back at once, and the History tab shows it as one entry, "Edit instructions as text". Because the text carries no tier ids, tiers are matched by name; a renamed line is matched by its angle and indices, and when the number of tiers has not changed, by position. A tier that stays keeps its note, cheater offset, depth target, relation and meet rule. The exceptions are stated in the summary before you apply:

The preform, the material and the concave tiers are never changed by Apply. After it, no tier is selected, because the old tier numbers no longer mean the same facets.

Revert writes the text again from the design and drops your edits. Closing the dialog with edits that were not applied asks first.

Compare With... lays the text in the box against another text, line by line: Saved File on Disk (the .psdd file the design was last opened from or saved to, shown as the text it gives; for a design that came from a plain .asc, that file's text; a design never saved has nothing to compare with and says so) or Baseline (the design kept by Set Baseline or automatically when the design opened; see Chapter 14). A line only in the box is marked added and shows only a new line number; a line only in the other text is marked removed and shows only an old line number, so the two can be told apart without the green and red tint. Long runs of unchanged lines fold into "N unchanged lines", and a count of added, removed and unchanged lines sits above the list. Choose Back to the Text to return to editing; the text is exactly as you left it.

Video tutorial · all videos

Edit as Text · 1:28

11.4 .gcs — Gem Cut Studio Export (Experimental)

Export as Gem Cut Studio (.gcs)... writes the same cutting instructions Export Edited .asc would write, as a Gem Cut Studio .gcs file. In the editor it sits in the command bar's File menu and in the File menu at the top of the window; it re-solves the design first and asks the same "not a closed solid" question as the .asc export. In the catalog, the small gcs button next to Export .asc exports a design's original .gcs file unchanged when it was imported from one, and otherwise writes one from its attached .asc (a design with no attached .asc has no mast distances, so the app asks you to solve it in the editor and export from there). The app computes every facet's polygon from the facet planes and rescales the stone the way Gem Cut Studio does. The export is marked experimental: it follows the published Gem Cut Studio 1.1 file description and reads back correctly in this app, but it has not yet been checked in Gem Cut Studio itself, and chiral designs (crown and pavilion twisted against each other) are untested. Open the file in Gem Cut Studio and compare it with the faceting diagram before cutting from it. Frosted tiers and facets (Chapter 4, "Frosting a Tier") are written the way Gem Cut Studio states them, and a frosted tier or facet stated in a .gcs file comes back when the file is opened or imported; .asc has no notation for frosting.

A refractive-index range that a designer states in a .gcs file (its ri_min and ri_max) comes with the file into the design, where it is preselected as From File (Chapter 6, "The RI Range Field"). The export writes ri_min and ri_max back only when the design's range is the designer's own statement, typed or from a file. The Pleochroma estimate is never written into a .gcs.

Video tutorial · all videos

Export for Gem Cut Studio (.gcs) · 1:09

11.5 Opening .gem and .gcs Files in the Editor

Open also accepts a GemCAD .gem file or a Gem Cut Studio .gcs file. The design is converted to .asc cutting instructions exactly as Import converts it (Chapter 1) and opens like a plain .asc with no .psdd design file (frosting stated in a .gcs is applied to the opened design). The window title names the file you opened, but the design is recorded under <name>.asc: Save asks where to write a new <name>.psdd and never overwrites the .gem or .gcs. Anything the converter noted (a preform that is not converted, a hidden tier, a missing refractive index) is listed in the toast.

The same conversion applies to catalog designs. When a design's attachments include no .asc but do include a .gem (or, failing that, a .gcs), Load Selected, the detail view's 3D preview and a remote worker's library all build the design from that file's real facet geometry instead of the placeholder angle-table reconstruction, and the catalog's Export .asc writes the converted cutting instructions. A file that cannot be read falls back to the angle table exactly as an unreadable .asc does.

11.6 .psdd — This App's Own Native Format

.asc has no place to record everything this editor tracks: the rough's shape and size, exactly how each tier's meet is stated (not just a free-text instruction), which tiers are deliberately detached from their symmetric family, the real-world girdle diameter in millimeters, and your chosen material/specific-gravity settings.

The .psdd design file keeps all of that, and it is one self-contained file: every tier in full (angle, indices, meet constraint, name, notes, cheater offset, target, relation and frosting), the rough, the material (including a custom material's own numbers), the schedule's header, gear, symmetry and refractive index, the girdle size, and a short history of your edits. Nothing else has to sit beside it, and nothing else is written when you save. It is plain text (TOML), so you can open it in a text editor, read it, and put it under version control. Its first two lines name the format and its version, which is how the app tells it apart from every other file.

A custom material's Color Pattern travels with the design. When the design's material is a custom material that has a Color Pattern (Chapter 29), Save also writes that pattern into the file, next to the material's numbers. Open the design on another computer and the material is added there with its pattern, so the zones render as they did at home. If that computer already has a material of the same name, its own copy wins: your library's pattern is kept, and the note "This design's material pattern differs from your library's; your library's is used." says so. A file whose pattern this version cannot read opens with the plain material and says "This design's material pattern cannot be read by this version; the plain material is used." An older version of the program ignores the pattern and shows the material's base color. A design on a built-in material never carries one.

Click Save (or press Ctrl+S) to write it. The first time, a Save As dialog offers <name>.psdd (the extension is added if you leave it off); after that, Save writes straight to the same file. Save As always asks, and from then on the design belongs to the new file. Every save writes .psdd.

A design with no anchor tiers, or no tiers at all, can still be saved -- Save writes it as a draft: the file records that the design did not solve, and every tier's real constraint is in it. The toast says so plainly, e.g. "Saved '<path>' as a draft (no scale-reference tier yet). Add a scale-reference tier to finish it." Opening a draft back up rebuilds its tiers exactly, so nothing is lost by parking a design mid-thought.

A design with more facet planes than the solver can verify (currently more than 400 total planes) is saved the same way, as a draft, rather than being rejected outright. Solve down to 400 planes or fewer (or split the design) to get real cutting instructions out of it.

Opening a Design#

Click Open and choose a .psdd file, or pick it from the File menu's Open Recent submenu. The app looks at what the file holds, not at its name, so a design file opens as one whatever it is called. A file saved by a newer version of the app is refused with a message saying so ("saved by a newer version of Pleochroma ... Update Pleochroma to open it"), rather than opened wrongly.

You can also open a design straight from the operating system. Starting the program with a file as its argument — pleochroma-cut "C:\designs\round.psdd" — opens that file once the window is up; a .asc (or .gem/.gcs) given the same way opens like Open on that file. This is what a double-click on a .psdd file does once the file type is registered with the system (docs/file-association.md in the app folder gives the registry and desktop entries). A design named this way is opened instead of the "Recover Unsaved Work?" or "Reopen Last Design?" offer; a leftover autosave stays where it is and is offered at the next normal start. Each launch opens its own window: a second double-click does not hand its file to a window that is already open.

The File menu's Open Recent submenu lists the design files you have saved or opened, newest first, so you do not have to hunt for a file picker to get back to one.

11.7 What Save Does to Your Catalog

Export Edited .asc genuinely never touches the catalog at all — file only, no database write of any kind. But Save itself does register the design in your catalog, every time it succeeds (the button's hover hint says so too). The row is given the design's cutting instructions as an .asc — preserved byte-for-byte when the schedule has not changed since it was loaded, regenerated when it has — and the .psdd file beside it; the editor opens the .psdd file whenever a row has one:

The catalog write happens only after the .psdd file is safely written to disk, and only ever adds to your success — a failure to update the catalog is reported as its own toast ("Catalog not updated: ...") without undoing or invalidating the file save you just made, since the file on disk is already the design of record either way. This holds even for an unexpected internal error while the catalog write-back re-measures the design's geometry: that step is guarded so it cannot bring down the save in progress, and instead reports "...updating the catalog failed unexpectedly... the file itself is safe; try Save again to retry the catalog update." The ordinary success toast itself only mentions the file ("Saved '...'."), not the catalog update, since the update is the normal case.

What a Save Update Deletes#

When Save updates an existing catalog row (not when it inserts a brand-new one), it also deletes that row's cached preview images and tilt-performance curves. This is deliberate, not a bug: both describe the geometry as it was before this save, and would otherwise silently show stale data next to the design's new angles. They are not regenerated immediately — the catalog card shows placeholder thumbnails again, and any Tilt Performance filter (Chapter 2) recomputes on demand — right-click the card and choose Generate Previews / Compute Tilt Curves when you want them back.

Video tutorial · all videos

Save a Design · 1:02

11.8 What a .psdd File Carries Besides the Design

A design file is meant to be handed to someone else and still make sense, so besides the tiers it keeps the facts about the design that cannot be worked out again from them:

Everything the file's own tiers and schedule determine is not stored and is recomputed whenever the file is imported: the length, height, table, pavilion and crown ratios, the volume, the facet count, the angle-settings table, the solid hull and extents, preview images, tilt curves, and any Rough Planner results. An imported design therefore always shows figures that match its geometry, never a stale copy.

On Save, the metadata comes from the design's library row when it has one (so edits you made in the library are written into the file; changing a row's metadata also marks the open design as having unsaved changes), and from the file you opened otherwise. Fields the library has no column for (notes, licence, copyright, the id, the creation time and any keys a newer version wrote) are kept exactly as they were loaded, and the id and creation time stay the same from one Save to the next. Tags are written sorted. If the attachments add up to more than the limit, the Save stops with a message instead of leaving a file out.

On Import, the title, designer, source, shape, competition, PDF and .gem names, tags and marks fill the new library row, the diagram image becomes the row's diagram image, and every attachment is attached to the row. The design file itself stays attached too, so the fields the library has no column for travel with the row. Re-importing a file with the same name replaces the earlier row, exactly as for any other import.

11.9 What the Library Keeps About a Design Besides the File

The design file holds the design and nothing else. Some things you make around a design are kept in the library database on this computer instead, so they never change the design file:

The library knows which design these belong to by the design's id: the id line in the file's [meta] table. Every design has an id from the moment it opens:

All of this stays on this computer. Copying a .psdd file to another computer takes the design, but not its variants, progress or lighting. Deleting a design from the catalog does not delete them either, because the design may still exist as a file.

11.10 Confirming a Save When the Design Is Not a Closed Solid

If you click Export Edited .asc or Save (or Save As) while the design does not currently solve to a closed solid, the app does not silently write a broken file. A dialog headed "This Design Is Not a Closed Solid" appears, showing the same problem text the status strip already shows (Chapter 5) followed by "Save anyway? The written file will note this in its own header." (or "Export anyway?" from the export path).

11.11 Autosave and Recovery

An autosave runs automatically every two minutes while there are unsaved changes, to its own recovery file — <design-name-or-"untitled"> .autosave.psdd, stored next to this app's own settings file (Chapter 1), never beside your real design files. It is a complete .psdd file. It never overwrites the design you last deliberately saved, and it does nothing at all while the design has no unsaved changes, or while a background solve is in flight. The moment you do Save for real, that autosave file is deleted.

If the app finds a leftover autosave file the next time it starts (a sign the previous session did not shut down cleanly), it offers to recover it before offering to reopen your last design — a dialog headed "Recover Unsaved Work?" with the message "The previous session ended without saving. A recovery file is still on disk: <path>", and buttons Recover / Not Now / Delete. Declining ("Not Now") leaves the file exactly where it is; it is only ever cleared by a later successful save, not by declining the offer. Choosing Delete instead removes exactly that one offered autosave file immediately, without opening it. (With no leftover autosave, the same dialog instead offers to reopen your most recently used design file that is still on disk, headed "Reopen Last Design?" with Reopen / Not Now / Discard. Not Now asks again at the next start. Discard removes that design from File > Open Recent, so it is not offered again; there is no Delete, since that file is your own real save, not a recovery snapshot, and it stays where it is. A recent design that is no longer on disk, such as one opened from an archive's temporary folder, is skipped.)

A recovered autosave is never a place Save writes back to: the first Save asks for a file name and suggests the design's own. An autosave is self-contained: it carries the full tier list, material, offsets and notes, so recovery never asks for an .asc.

11.12 What a Design Loaded from a Remote Worker Does on First Save

Loading a design from a remote worker's library (Chapter 10) never attaches it to any catalog row — a remote entry's own ID and a local catalog row's ID are unrelated numbers, so there is nothing to update even if a matching number happened to exist locally. The first Save of a remotely-loaded design therefore always inserts a new, local catalog row, tagged as belonging to your local library, exactly like saving a brand-new design. Every Save after that updates that same new local row — the original remote entry is never touched.

11.13 Other Exports: Cutting Sheet and Diagram

The cutting instructions of a design as the app shows and exports them.
Fig. 11.1 — The cutting instructions of a design as the app shows and exports them.

Three further exports live in the command bar's File menu. The cutting instructions come in two formats, one menu item each:

Both cutting sheets follow the template: a header, the facet counts, the size ratios and the design data on the left, four line drawings of the stone beside them, your comments, and then the pavilion and crown lines of every tier in cutting order. The next section describes each block. Each save dialog offers its own file type, and the name you give still decides the format: a name ending in .pdf typed in the HTML dialog writes a PDF, and a name without .pdf in the PDF dialog gets it added. The exports always re-solve the design fresh rather than reusing a cached solve.

All three show "Cannot build a cutting sheet: ..." / "Cannot draw this design: ..." if the design does not currently solve, and a success toast naming the file's path otherwise. None is affected by the not-closed-solid confirmation above — a design that does not solve at all has nothing to draw, rather than something to stamp a warning header onto.

How the Cutting Sheet Is Laid Out#

The sheet follows the standard cutting-instructions template, in the HTML page and in the PDF alike. The header and the three data blocks form a column on the left, with the four drawings in a two-by-two grid beside it; the comments and the pavilion and crown lines run across the page below. A value with nothing to print reads "-" rather than a guess.

Index lists print index 0 as the gear's tooth count, as the template does: "96-24-48-72" on a 96-tooth gear. Other positions keep two digits ("08").

The HTML page's "Additional information" part lists each tier's code, name and mast (in millimeters too when a girdle diameter is set, with the cheater offset when a tier has one, and a concave tier's tool in millimeters), then the girdle diameter and the carat estimate.

The plain-text version of the sheet has the same blocks in the same order under plain headings, without the four drawings.

How the Cutting Sheet Is Ordered and Labelled#

The sheet lists the tiers in the order they are cut, and that one order is the same everywhere in the app: the cutting sheet, Cutting mode (Chapter 20), the Cut slider (Chapter 13) and a Build This Design lesson (Chapter 22) all follow it. The plain-text version of the sheet follows the same rules.

Meet Points on the Sheet#

The meet column tells the cutter where to stop. "Meet P1, G1" means: when you cut this tier, its facets reach a corner that is already on the stone, a point where facets of P1 and G1 meet. Cut until the new facet just touches that corner, then stop. The sheet names only a point that is there at that moment, on the stone cut so far, with every row above already cut. It never names a corner that appears only once later tiers are cut, because a cutter cannot cut to a point that is not there yet. A facet counts as reaching a corner when it passes within 0.005 % of the stone's size of it (0.0005 mm on a 10 mm stone), which is loose enough for the five-decimal masts of older GemCad files.

Some rows have no corner to cut to:

A row whose Meets box names facets ("Meet P1, P2", set in the tier form) prints those names, and a note recorded in an imported .asc file prints as the designer wrote it; the sheet does not reword either.

Two shorter wordings. Where a tier's meet is simply a point the cutter can find without a list of codes, the sheet says so:

Both only replace the words of a row that already had a list of codes. A tier you gave a Meets list by hand, and a note recorded in an imported .asc file, keep your own words. Sentences end with a full stop ("Cut to centerpoint.", "Set stone size.", "Cut to level girdle."); lists of meets do not ("Meet P1, G1, P2", "Meet P1 at centerpoint").

Pentalume, re-issued. The meet-point re-issue of Pentalume prints these rows: P1 "Cut to centerpoint.", G1 "Set stone size.", P2 "Meet P1 at centerpoint", G2 "Meet P1, G1, P2" (a girdle tier keeps its list), P3 "Cut to level girdle.", C1 "Set girdle width.", C2 and C3 "Cut to level girdle.", and the table "Meet C1, C3".

An example. In the first Pentalume design, P2 and P1 share a corner on the finished stone, but that corner appears only after P2 is cut. When P2 is cut, its facets pass 0.12 mm from the nearest corner of the stone cut so far (on a 10 mm stone), so a cutter following a "Meet P1" row could stop anywhere along the P1 edge. The sheet therefore prints only P2's depth ("Cut to depth ..."), and the verdict lists P2 among the tiers with no meet point.

Snapping the depths to meet points. A tier with no meet point is a Check in the verdict (Chapter 5), and its Snap to Meets fix moves the depth of each such tier onto the nearest corner of the stone cut so far, when that corner is within 2 % of the stone's size (0.2 mm on a 10 mm stone). It walks the tiers in cutting order, so a tier it has moved is already in place when the next one is judged. Only a tier set by an explicit depth (an Exact Scale Value tier, as every tier of an imported .asc file is) moves; the anchors never do, and no angle or index changes. A tier whose nearest corner is farther away keeps its depth, and the verdict keeps listing it.

The nearest corner is not always the one the designer meant, and the new depths can cut small tiers away. In the Pentalume design the only corner near P2 when it is cut is the culet, so the snap takes P2 down to the culet and cuts all the facets of P3 and C3 away. The fix names such tiers before it runs and refuses only a result that breaks the stone (it no longer solves or closes, the girdle is lost or much thinner, or the table or culet ends up on the wrong side of the girdle). Look at the stone and the optics afterwards, and undo if it is not what you want (Chapter 5).

The command-line tool does the same with a limit you choose, and writes the result as a new design file:

text
pleochroma-cli snap-meets design.psdd --dry-run
pleochroma-cli snap-meets design.psdd --max-move 0.15 --out snapped.psdd

It prints one line for each tier it moved, with the old and the new mast, the facets the new depths cut away, then the tiers that still have no meet point:

text
P2  0.7662 -> 0.7598  (moved 0.03 mm, now meets P1, G1)
Cut away by the snap: P3 (all 10 facets) and C3 (3 of 10 facets)
Still no meet point: T (0.83 mm off)

--max-move is in mm and needs the design's girdle diameter; --max-move-fraction 0.05 gives the limit as a share of the stone's size instead (the default is 0.02, that is 2 %). --dry-run only reports and writes nothing. The tool refuses a result that breaks the stone, as the fix does (exit code 2, nothing written). It ends with exit code 0 when every tier but the anchors meets a point and nothing was cut away, and with 4 when some tier still has none or facets were cut away (the new file is written all the same). pleochroma-cli snap-meets --help lists every option.

The RI Range Row#

The sheet's "RI range" row in the Design Data block follows the design's RI range field, which sits in the Design Settings panel (Chapter 6, "The RI Range Field"). The cutting sheet has no export dialog of its own, so the export stays one click. Whoever stated the range decides how it prints, and the material always stays on the row:

The field says The row reads
Off (the default when the file states no range) 1.768 (Sapphire)
From File the range as the file states it, for example 1.70 to 2.15 (Sapphire 1.768)
Type the range as you typed it, for example 1.58 and up (Sapphire 1.768) or 1.54 to 1.80 (Sapphire 1.768)
Pleochroma estimate the traced range, labelled as an estimate, for example 1.58 and up (Pleochroma estimate; Sapphire 1.768)

A range stated in the file is never replaced silently. The estimate is written from the design as it is when the sheet is written; if it is not computed yet, the export shows "Computing the RI range..." with Cancel, which writes the sheet without the range. The estimate may show an upper end as well ("1.58 to 2.31") once the app counts it as reliable; until then the sheet gives the lower end followed by "and up". The value is long, so the PDF, the HTML page and the text sheet all break it before the parenthesis into two lines.

The geometric hint of Chapter 6 ("Pavilion needs RI 1.50 or more") is never printed on a sheet: it holds only for light entering through the table.

Video tutorials · all videos

The Cutting Sheet · 1:06
Export the Diagram (PNG) · 0:53

11.14 Unsaved changes

While the design has edits that have not been saved, the window title shows a leading "* " and the status strip (Chapter 5) shows a permanent amber UNSAVED badge, so you are never in doubt about whether the file on disk matches what is on screen. Clicking New, Load Selected, Open, or closing the window while there are unsaved changes asks first, rather than discarding them outright.

Separately, an autosave runs every two minutes while there are unsaved changes and offers to recover itself on the next launch if the app did not shut down cleanly — see "Autosave and Recovery" above for the file location and the recovery dialog's exact wording.

11.15 Which Format to Use

You want to... Use
Hand a plain schedule to another cutter or another program Export Edited .asc (editor)
Keep working on this design later in this app, with everything preserved Save (a .psdd file)
Get the design's original file back out unchanged Export .asc from the catalog (when an original is attached)
Hand the design to a Gem Cut Studio user Export as Gem Cut Studio (.gcs)... (experimental)

Save is the safer everyday choice while you are actively working on a design: the .psdd file holds the whole design, including everything a plain .asc has no field for, and you can produce a fresh .asc from it at any time with Export Edited .asc. Keep an .asc export if another program or cutter needs the schedule — a .psdd file is only for this app.

11.16 Where Exported and Saved Files Go

Export Edited .asc and Export .asc open a normal Save As dialog every time you click them, and so does the first Save of a design (and every Save As) — you choose the destination folder and filename yourself, and the app does not remember a fixed export folder the way the high-resolution image export does (Chapter 9). Cancelling either dialog writes nothing at all; there is no fallback location it quietly writes to instead.

The one folder the app suggests without being asked is ./exports/, relative to wherever you started the program (Chapter 1) — this only comes up the first time you export something and only as a starting point for the dialog, never as a silent write destination.

The Path Cache Folder#

One folder is written without a Save As dialog: the path cache folder, render_cache, which sits next to the settings file. It holds the path caches that Keep for Re-Renders (Chapter 9) and Keep Path Cache for This Video (Chapter 14) write, and the beams that Keep Beams for Re-Renders (Chapter 9) saves, which share the folder and its size limit. Beam tracing is retired and is an optional build feature (beam). The standard build never reads kept beams, but its size limit and Clear Path Cache can delete them. Each cache is a folder of its own, named by a long code that stands for the stone, its material, its crystal axis, the view and the picture size, so a render finds its cache again whenever those are the same. The files inside are an internal format that only this app reads, and they are not part of a design: a .psdd file never contains one, and deleting the folder loses no design, picture or setting. Preferences (Chapter 17) shows the folder's location, opens it, limits its size (50 GB to start with, the caches used longest ago go first) and has Clear Path Cache, which empties it after asking.

11.17 Design File Schema Additions (Tier Ids, Targets, Authored RI)

The .psdd file's [[tiers]] array holds a stable per-tier id (tier_id) and an authoring-level target (target — see Chapter 4), and the document as a whole holds the authored refractive index kept apart from the effective one (see Chapter 6). A design file without any of them still opens, reading each as absent.

All three survive a Save and reopen round trip, so a tier's stable identity (what a manufacturability warning badges directly, Chapter 4) and any target you authored on it persist the next time you open the file, rather than being rebuilt from an .asc.

Relations and the File Version#

A tier whose angle follows a relation (P2 = P1 - 2, Chapter 4) is stored with its relation, written against the tiers' stable ids rather than their names, so renaming a tier never breaks one. The tier's own angle is saved as well, as the angle the relation gives. Opening the file restores every relation and checks it again against the angles.

The file's second line, version, becomes 3 only when the design has at least one relation. A design without relations keeps the version it always had (1, or 2 when it has concave tiers) and its file is byte-for-byte what an older build would have written. Version 3 is the point of no return in one direction: an older build of the app cannot open a version 3 file. It refuses it with a message saying the file was saved by a newer version, rather than opening it and quietly dropping the relations the next time it saves. If you need to hand such a design to someone with an older build, remove the relations first (Remove Relation on each tier, Chapter 4) or export an .asc, which carries plain angles.

A planned piece of rough from the Rough Planner (Open in Editor, Chapter 15) moves the version to 4 in the same way. The [preform] table then says kind = "planes" and lists the piece's planes, which an older build does not know, so it refuses the file as saved by a newer version. The version falls back to what the relations and tiers need as soon as the design has a block or cylinder again (Apply Preform on the Preform tab, Chapter 4), and an older build can open it again.

Targets in the File#

A tier's target is written as a table with a kind: depth_mm, girdle_thickness_mm and table_width_mm hold a number of millimeters (mm); girdle_thickness_ratio and table_width_ratio hold a share of the stone's width (ratio, where 0.02 is 2 % and 0.55 is 55 %); and center_point holds no number, for example target = { kind = "girdle_thickness_ratio", ratio = 0.02 } or target = { kind = "center_point" }.

The file's version becomes 6 only when at least one tier carries one of the last three kinds (a share of the width, or a center point). Every other file keeps the version it has. An older build cannot open a version 6 file: it refuses it as saved by a newer version, rather than opening it and dropping the target. To hand such a design to an older build, give the tiers another Meets choice first, or export an .asc, which carries plain depths.

Picked Meet Points and the File Version#

A tier whose Meet Point was picked in the Solid view (Chapter 4; Chapter 13, "Picking a Meet Point") is stored with a meet_pick key: the three facets of the corner, written under the tier as three [[tiers.meet_pick]] tables, each holding the stable id of the facet's tier (tier = 4) and the index position of the facet (at = 12.0). Because it is written against tier ids, renaming a tier never breaks a pick.

The file's version becomes 5 only when at least one tier has a picked corner. A design without picks keeps the version it had (1 to 4) and its file is byte-for-byte what it was before picking existed; an older file opens unchanged with no picks. An older build cannot open a version 5 file: it refuses it as saved by a newer version, because opening it would solve the tier by the shallowest rule and show a different stone without saying so. To hand a picked design to an older build, Clear the picks or export an .asc. A meet_pick that does not name exactly three facets, or names a tier the file does not hold, opens as no pick and adds a line to the notes shown on opening; it never stops the file from opening.

What .asc keeps. The G field of the picked tier says Meet P1, P2, G1 (the names of the corner's tiers), and the tier's solved depth is in the file as always, so other programs show the same stone. The three picked facets themselves are dropped. Opening that .asc again pins every tier to its depth; if you then adopt the meet as a meet again (Chapter 8), it is solved by the names alone, which may choose the other corner.

What .gcs keeps. Nothing changes: the .gcs export writes the solved facets, which already include the effect of the pick, and the pick itself is not written.

Undo, Redo, history and variants (Chapter 18) carry a pick like any other part of the design. The cutting sheet needs no new rule: a pick that is met prints "Meet P1, P2, G1" and one that is cut away prints the wording of a tier with no meet point.

11.18 Next Steps

Continue to Chapter 12 for a consolidated troubleshooting list and a summary of the app's current limitations.