About this project
A spacer ring with a bore, an alignment notch and an embossed label, used as a vehicle for the expression language. Nearly everything here is an expression bound to a node option rather than a typed value, so the bound fields are what to look at.
Spacer
Outer diameter (20 to 60), hole diameter (4 to 40) and thickness (2 to 20) are the three real inputs. Wall width is derived once as half the difference of those two diameters, then reused by other expressions instead of being retyped.
Notch, and the degrees trap
The notch demonstrates the conversion that catches people. Its position uses the cosine of the notch angle in radians times the outer radius, and the matching sine, because trig works in radians, while its Z rotation is the notch angle on its own, because rotations are in degrees. One variable, wrapped in rad() in one place and not the other. Notch width sets the cut width; its other dimension is tied to 0.6 of the wall width.
Label
The label is built, not typed: strcat(labelText, " ", format(holeDiameter, 0)) joins a string parameter to a number formatted with no decimals. Strings join with strcat, not +. Font size is clamp(wallWidth * 0.35, 2, 6), so the text follows the available wall but stops at 2 and 6. The label toggle switches the text node off through a bound enabled option, and hides the text field with it.
Readouts and the check
The label preview prints the exact string the text node receives, which is the quickest way to debug a strcat. The mass estimate takes the ring volume before the notch and label times the material density, PLA, PETG or ASA, and reports approximate printed mass at 100% infill. The validator on hole diameter catches the case that ruins the part: a bore leaving less than 2 mm of wall. Reduce the bore or increase the outer diameter.