parameters-positioning
Keep dimensions symbolic and express readable offsets or parent-bound positions.
Members
Parameter
Represent one named editable CAD dimension.
Parameter(name: str, value: float) -> NonePlacement
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) -> NoneX
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) -> floatAxisLine
Describe a native axis through an explicit XYZ point.
AxisLine(direction, origin=(0, 0, 0))