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()
π Citation
If you use this dataset in academic research, publications, or derivative works, please cite it as follows:
@misc{syed_mohammed_yasin_2026,
author = { Syed Mohammed Yasin },
title = { FreeCAD_Sketches (Revision 36b0471) },
year = 2026,
url = { https://huggingface.co/datasets/Yas1n/FreeCAD_Sketches },
doi = { 10.57967/hf/7442 },
publisher = { Hugging Face }
}
π Explore Further
π Sketch with photos Dataset: https://huggingface.co/datasets/Yas1n/FreeCAD_Sketches: Contains a dataset of 1000+ python scripts of sketches and their corresponding pictures in FreeCAD.
π CADomatic https://github.com/yas1nsyed/CADomatic: AI powered parametric CAD design generator for FreeCAD
- Downloads last month
- 823