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.

Python API/compiler for SolidCraft

SolidCraft Forge

Write editable CAD intent in Python with SCPF. Forge lowers that intent into SolidCraft commands and native SolidCraft geometry, so SolidCraft remains the CAD engine and editable model owner.

SCPF 0.24.0Tested with SolidCraft 0.49.0

From Python intent to native SolidCraft

Forge is the authoring/compiler layer; it is not a separate CAD engine.

1

SCPF model

Python expresses parameters, shapes, features, assemblies and native references.

2

Forge compiler

Forge validates the model intent and lowers it to explicit SolidCraft commands.

3

SolidCraft

SolidCraft creates the native editable geometry, history and saved design.

Choose where to start

Learn the authoring surface, inspect working models, or review the evidence behind supported behavior.

Featured examples

Practical SCPF patterns backed by published model and verification evidence.

Configuration Table preview scpf Configuration Table One editable native design with three parameter and suppression rows Small, Medium and Large Verified Face-relative hole with native pattern preview scpf Face-relative hole with native pattern One attached source cut repeated by native rectangular history 100 × 60 × 10 mm plate; two Ø8 through holes at 40 mm spacing Verified Parameterized Box preview scpf Parameterized Box Three editable dimensions driving one native box 40 × 30 × 10 mm; editable length, width and height Verified Reuse one component definition in two placements preview scpf Reuse one component definition in two placements Two touching occurrences share one reusable Block definition Block 40 × 30 × 10 mm; second occurrence translated 40 mm in X Verified Configuration Position preview scpf Configuration Position One saved native table moves a front-plate occurrence through Front, Below and Service states Front y=8 z=0; Below y=0 z=-55; Service y=25 z=0 Verified Topology-backed corner anchor preview scpf Topology-backed corner anchor A standard corner reference follows parent width and height Base 40 × 30 × 20 mm; Marker 10 mm cube Verified Size rows + Installed rule preview scpf Size rows + Installed rule Small/Medium/Large remains one row axis while Installed is an independent native checkbox Small/Medium/Large span 60/80/100 mm; Free fit 20.4 mm; Installed fit 20.0 mm Verified Parent Configuration → Child Feature preview scpf Parent Configuration → Child Feature A root table suppresses one explicitly exported feature inside a reusable child definition Small width=30 suppressed; Medium width=40 suppressed; Large width=40 present Verified Configuration Symbolic Math preview scpf Configuration Symbolic Math Native configuration rows drive min, sqrt, round, floor, max and abs expressions Small size=60; Medium size=70; Large size=100 Verified Shifted-axis Revolve preview scpf Shifted-axis Revolve One stepped offset revolve cut remains one native suppressible feature axis x=8 mm; axis z=3 mm; relief Ø4.5 mm; core Ø3.7 mm Verified Sample Plate Drawing preview scpf Sample Plate Drawing Consumer-grade native A4 engineering drawing with line views, shaded iso, dimensions and title data 80 × 50 × 8 mm plate; R6 corners; Ø8 repeated holes; Ø24 × 14 boss; Ø12 bore Verified