PiQ Lang
Programming with PiQ Lang
PiQ Lang is the language ParametrIQ designs are written in: a short, line-by-line language of values, variables, points and drawing commands. Every ParametrIQ CAD drawing is a PiQ Lang program, so anything you draw with the mouse can also be written, read and changed as text, and anything you write can be opened and drawn on.
It is declarative: a variable or a point keeps its definition, not a fixed value. Define a box's flap as
FLAP=D/2, and it is half the depth however deep the box becomes; define a point from other points, and it moves
when they do. That is what makes a design parametric.
- PiQ Lang Primer: the language from the start, with examples to try.
- Playground: run PiQ Lang in the browser, and download what it draws.
- Expressions and Interactive: every function and command.