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.

feature

Author and name exactly one suppressible CAD history feature.

Signature

feature(name, *, suppressed=False)

Use when

One real CAD history operation needs stable Forge identity, optional initial suppression, or direct configuration targeting without exposing a backend history id.

Limits

The scope must produce exactly one terminal Shape and exactly one CAD history operation. Helper Sketch/profile construction belongs outside the scope; feature scopes cannot nest.

Parameters

  • name — Public Forge feature identity. In a reusable component this becomes definition-level identity for occurrence.feature(name).
  • suppressed — Initial history state. True suppresses the authored native feature; False leaves it active.

Example

with feature("panel_pin", suppressed=True):\n    body = body - Hole(d=5).at(0, 0, 12)