Skip to main content

Module steps

Module steps 

Source
Expand description

The steps a program says what its part is by, besides its shape: its parameters (DefineParameters), the tables a part family looks its size up in (LookupTable) and its properties (PartProperties). Each produces targets as any step does: a formula reads a parameter’s target, and what lists the part reads its properties’. Every step that defines parameters adds them to the part’s ParameterValues, a chain.

What a parameter is set to where the part is built is the run’s input of its name — a Setting a program placing the part gives — and its own definition where none is given. The colour is set the same way, by the input COLOR, and the part is drawn in it (PartColor).

Structs§

DefineParameters
Defines the program’s number parameters, each a target of its own (parameter): what the run’s input of its name sets it to, else what it is defined as. A formula may read any other parameter of the step, defined before it or after, and those the steps before defined — a table’s columns; one reading one that reads it back fails, saying so.
DefineParametersArgs
FaceColor
Faces of the part in one colour.
LookupTable
Looks the row a part family is built in up in a table: the row the run’s text input input names — size = "M4" from a program placing the part — else the row selected. Defines the parameter input as the row’s name, and input.column as its value in each column (size.d), each a target of its own (parameter), and adds them to the part’s ParameterValues. A text that names no row fails, naming the input and the rows.
LookupTableArgs
A table of the variants of a part family, one per row, looked up by the input input.
PartColor
Draws a part in the colour its properties give it (see PartProperties).
PartProperties
Defines what the part is called and ordered as, its colours, and what it is made of: its properties. The colour is the run’s input COLOR where it is given one.
PartPropertiesArgs
What a part is, besides its shape.
Properties
What a part is, besides its shape, as its program says: what it is called and ordered as, its colour and what it is made of.

Constants§

LOOKUP
The kind of the step looking a part family’s size up in a table.
PARAMETERS
The kind of the step defining a program’s parameters, and its id.
PROPERTIES
The kind of the step defining a part’s properties, and its id.

Functions§

properties
The part’s properties, defined by its PartProperties step.
read_properties
The properties of the part reader reads: none set, for a part whose program says nothing of them.
stem
The name of the file file, without folders or .geop: what a part placed from it is listed as without a title, and what a file written from it is named after — part if that leaves nothing.