Skip to content
Development version. Forge is under active development and testing. APIs, behaviour, coverage and verification results may be incomplete or change without notice; published PASS results are not a support guarantee or production-readiness claim.

parameters-positioning

Keep dimensions symbolic and express readable offsets or parent-bound positions.

Related guide

Members

Parameter

Represent one named editable CAD dimension.

Parameter(name: str, value: float) -> None

Placement

Absolute pose of one occurrence in its parent coordinate frame.

Placement(x: object = 0, y: object = 0, z: object = 0, rotation: tuple[object, object] | None = None) -> None

X

Axis token with MIN, CENTER and MAX parent-bound placement selectors.

Y

Axis token with MIN, CENTER and MAX parent-bound placement selectors.

Z

Axis token with MIN, CENTER and MAX parent-bound placement selectors.

up

Return a symbolic-safe XYZ offset in the +Z direction.

up(distance)

down

Return a symbolic-safe XYZ offset in the -Z direction.

down(distance)

left

Return a symbolic-safe XYZ offset in the -X direction.

left(distance)

right

Return a symbolic-safe XYZ offset in the +X direction.

right(distance)

front

Return a symbolic-safe XYZ offset in the -Y direction.

front(distance)

back

Return a symbolic-safe XYZ offset in the +Y direction.

back(distance)

half

Return half of a numeric or symbolic CAD dimension.

half(value)

midpoint

Return the midpoint between two numeric or symbolic dimensions.

midpoint(start, end)

cadmath

Namespace for native symbolic CAD math.

cadmath.min|max|sqrt|abs|round|floor|atan(...)

pv

Return the concrete Python value of a symbolic CAD dimension.

pv(dim) -> float

AxisLine

Describe a native axis through an explicit XYZ point.

AxisLine(direction, origin=(0, 0, 0))