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.

ConfigRule

Author one typed native configuration rule with independent enabled state.

Related guide

Use when

A physical state such as Installed must remain independent from an existing size-row axis.

Limits

The initial Forge rule slice accepts Always() with DriveParameter(…). Rule enabled state is native SolidCraft state, not a model boolean.

Parameters

  • rule_id — Stable rule id, 1..64 non-space characters.
  • name — Display name for the native rule.
  • enabled — Initial native rule checkbox state.
  • condition — Typed condition; initially Always().
  • effect — Typed effect; initially DriveParameter(…).

Example

ConfigRule('installed', 'Installed', enabled=True, condition=Always(), effect=DriveParameter(self.fit, self.tube_d))