DiaScript, the file every piece is saved as
DiaScript is the text format of Diatech Make. A ring, a pendant or a pavé field is a short .ds file. The editor writes it when you click, and editing the text updates the
model.
What a design contains
One <design> holds variables, geometry, components and what to export. Nodes
point at each other by id. Braces hold an expression, so a dimension stays tied to a size or to
another part.
- Metal is sweeps, solids and operations. Stones are gems with a real girdle, table and culet.
- A setting builds the metal that holds a stone. A boolean fuses metal and cuts the seat.
- Repeat places copies. A group is the piece you look at.
- Units are millimeters and degrees.
On a ring, the finger circle lies in the XZ plane and Y is the finger axis. A gem's position is its culet. You move the stone, and the setting follows. You do not move the setting off the stone.
A solitaire
A size, a comfort-fit band, a round stone, a four-prong head, then the metal fused and the stone cut out. The metal exports as STL for casting. The whole ring exports as GLB.
<?xml version="1.0" encoding="UTF-8"?>
<design name="Solitaire" metal="platinum" view="render">
<import src="std:shanks.ds"/>
<var name="size" value="7"/>
<band id="shank" size="{$size}" width="2.2" thickness="1.8" profile="comfort_fit"/>
<gem id="ctr" cut="round" diameter="6.5" position="0, 0, {$shank.max.z - 0.4}"/>
<setting id="head" type="head" stones="ctr" prongs="4" prong_wire="0.85"
prong_tip="pointed" rails="2" rail_wire="0.6">
<pt u="2" s="0.9"/>
</setting>
<bool id="metal" expr="shank + head - ctr"/>
<group id="ring" members="metal, ctr"/>
<output ref="ring">
<export ref="metal" format="stl"/>
<export ref="ring" format="glb"/>
</output>
</design> Change size from 7 to 6 and the band, the head and the stone rebuild. That is the
same size control as in ring design.
The editor and the text are one file
You do not have to write this by hand. The ribbon, the gumball and the inspectors write these tags as you work, and the code view stays in step with the viewport. When you do edit the text, the model updates. An assistant reads and writes the same file. Connecting one is the docs, and what to ask it for is AI jewelry design.
The assistant's reference is the full language: the document, curves and sweeps, stones and settings, then how to check a piece. People can ask it to look a topic up. The catalog of cuts, settings and profiles is what the compiler actually accepts, which is also what the feature list describes in plain words.
From the file to a casting
Validate the design, look at the size, the metal weight and the stone list, and resolve anything the manufacturing check flags. Export STL or 3MF for the caster, GLB for the web, OBJ for a sculpt. The sequence is export STL for casting.
Open a design
Diatech Make is free to try. Open the editor and start from a template. The file it saves is DiaScript, whether you touched the text or not.