Script (Macro) for Generating a Casting Mold from a Model
Task
Description: Automatic generation of a mold (flask) for casting based on a 3D model with an internal cavity.
Goal:
Create a macro or script that automatically generates a three-part casting mold based on a hollow 3D model. The script should account for:
- Parting plane,
- Outer and inner geometry,
- Technological clearances,
- Mold disassembly and core removal,
- Exporting each mold component as a separate file.
Mold Structure
- Outer mold half — right
- Outer mold half — left
- Inner core (insert) — creates the internal cavity of the model
What the script should do
- Load or use a selected 3D model.
- Automatically generate the outer mold (two halves) with a clearance.
- Split the mold along a selected or auto-defined parting plane.
- Create the core insert based on the internal shape of the model.
- Add alignment elements (e.g., pins or guides).
- Apply technological clearances between the model, mold, and core.
- Export each component of the mold as a separate file.
Input Parameters
- Clearance between model and mold
- Clearance between model and core
- Mold wall thickness
- Parting plane (axis-based or manual)
- Export format (STL, STEP, etc.)
Supported Platforms
| Software | Language |
|---|---|
| FreeCAD | Python |
| Blender | Python |
| Fusion 360 | Python / JavaScript |
| SolidWorks | VBA / C# |
| OpenSCAD | Script-based |
The deadline was yesterday, give me your price PM
Output Files
form_right.stlform_left.stlcore_insert.stl

