Datasets:
The dataset viewer is not available because its heuristics could not detect any supported data files. You can try uploading some data files, or configuring the data files location manually.
🧩 FreeCAD Sketch Python Dataset
This dataset contains 3,000 Python files that define parametric FreeCAD sketches. Each file represents a geometric sketch scripted in Python and is ideal for training large language models (LLMs) or fine-tuning code models to understand and generate CAD-based geometric design code.
📁 Dataset Overview
- Number of files: ~3,000
- Format: Python (
.py) - Language: English (
en) - License: Apache 2.0
- Purpose: Training LLMs for text-to-CAD and text-to-3D applications.
🧱 Naming Scheme
Each file follows the pattern: PartName_SketchName.py
This consistent structure helps models learn associations between part names, sketch features, and parametric geometry definitions.
⚙️ Source Information
Part files sourced from:
FreeCAD LibrarySketch parsing and conversion handled by:
freecad_sketch_parser
This parser converts FreeCAD .FCStd part files into corresponding Python code that defines their sketches using the FreeCAD API.
🧠 Intended Use
This dataset is designed for:
- Training or fine-tuning code generation models on CAD scripting tasks.
- Research on LLM-assisted CAD design and parametric geometry generation.
- Developing text-to-3D and text-to-sketch models.
🧾 Example
Below is an example snippet of a sketch definition:
import FreeCAD, Part, Sketcher
doc = FreeCAD.newDocument()
sketch = doc.addObject('Sketcher::SketchObject', 'BaseSketch')
sketch.addGeometry(Part.LineSegment(FreeCAD.Vector(0,0,0), FreeCAD.Vector(10,0,0)))
sketch.addConstraint(Sketcher.Constraint('Coincident', 0, 1, -1, 1))
doc.recompute()
- Downloads last month
- 308