FreeCAD Model Validation
Use FreeCAD and its bundled Part/OCCT geometry kernel as the only validation engine. Treat FCStd as the source of truth for designed parts and assemblies; use STEP validation primarily for downloaded standard components and deliberate exports.
Required workflow
For a generated FEM analysis document, use the mechanical-fea workflow and its registered native GUI/field/archive checks. Do not reopen a persistent FEM FCStd through this generic geometry validator: FEM Python proxies require the separate safe BREP/UNV/validated-field reconstruction boundary. Continue to validate the controlled CAD source with this skill independently. Geometry validation does not establish numerical convergence, equilibrium, material suitability or engineering acceptance.
-
Call
list_documentsto confirm the FreeCAD MCP bridge. Keepremote_enabledfalse. -
Read references/validation-spec.md, then create an explicit specification. Every numeric requirement must include a tolerance; never invent manufacturing tolerances. Add the mandatory installation contract to every fastener object and controlled-overlap metadata to every compressible component.
-
Load scripts/freecad_model_validation.py inside FreeCAD with
execute_codeand call one or both interfaces:pythonvalidate_fcstd(model_path, specification, report_dir) validate_step(step_path, manifest_path, specification, report_dir) -
Inspect the returned report. For FCStd, the JSON must contain the exact
working_sha256, a complete automatically detectedfastener_inventory, andsummary.fasteners_detectedequal to that inventory length. Mandatory failures or a missing report-contract field block completion. Repair the model and rerun, or report it as failed/blocked. -
Use
get_viewon the active model and inspect the saved<stem>_validation.png. Geometry checks passing never replaces visual review. -
Report only checks that actually ran and link the generated JSON, Markdown, and PNG artifacts.
Validation policy
- Check document recompute, object state, required objects and links, shape validity, solid count, positive volume, dimensions, placements, standard-part provenance, and BOM agreement.
- Automatically detect every fastener and fail if any fastener lacks its installation contract. Validate the complete set combination, coaxial placement, hole-axis match, axial position, clearance-hole containment, threaded-hole classification, bearing contact, and host interference. These checks are mandatory and do not depend on hand-written
interference_pairs. - Treat the model-detected
fastener_inventoryas authoritative for assembly validation. An assembly consumer must use one passed report with the exact same-revision FCStd SHA-256 and prove equality between that inventory and its exactly-once fastened-joint assignments. It must fail omitted, duplicate, or unknown occurrences and must not reconstruct a smaller inventory from a hand-authored manifest. - Treat a seal or other compressible component as overlap-capable only when it is marked
IsCompressibleand every permitted mate appears incompressible_overlap_pairswith a numeric maximum common volume. Never use the compressible exception for rigid parts or undeclared mates. - Outside the automatic fastener gate and controlled compressible pairs, check interference only for pairs declared in the specification. Each pair must provide
max_common_volume_mm3; intentional contact without volume is acceptable. - For STEP assets, require a matching SHA-256 manifest and one supported provenance profile:
step_parts,manufacturer_official, orverified_local_catalog. Preserve truthful provider/manufacturer identity; never relabel a manufacturer or local-catalog file as STEP.parts. Import into a temporary FreeCAD document, validate, save evidence, and close the temporary document without changing the source file. - Do not silently heal, replace, overwrite, or remodel invalid input.
- Do not use build123d, CadQuery, cadpy, or the browser CAD Viewer. FreeCAD MCP, FreeCAD Python, Part/OCCT, and
get_vieware authoritative for this workflow. - A passed report is geometry and provenance evidence, not engineering certification, load validation, manufacturability approval, or legal standards certification.
Strict gate
The model is complete only when the report status is passed, its FCStd hash
and fastener inventory contract are present, and the visual review finds no
unexplained geometry. A failed checksum, missing required metadata, invalid or
empty shape, failed dimension, missing required link, failed fastener
installation check, invalid compressible-overlap declaration, failed declared
interference check, stale hash, incomplete fastener inventory, or missing
validation artifact, unknown STEP provenance profile, incomplete source/copy
identity, or false provider attribution is blocking.


