CadQuery / CadQuery/cadquery

Flatten STEP File Structure

Open
#1,249 10 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
Python
Stars
5.8k
Forks
541
Avg merge
3d 2h
Merged PRs (30d)
5

Description

The KiCAD project has existing STEP files that have a very flat structure. The following screenshot shows the structure when the file is imported.

![Screenshot from 2023-01-25 14-00-18](https://user-images.githubusercontent.com/1015439/214659539-92878142-ae97-4308-b7dc-d83fb093e442.png)

The reason they want this is because they can have full board models with thousands of components and they don't want any extra structure to deal with. Their STEPS do include the color, which is a requirement.

I've spent some time doing experiments with exporting to STEP, with some similarities to how we do it currently ([gist here](https://gist.github.com/jmwright/f541f2bf78697a1f157349ccc4a63351)). I have tried different ways of structuring the exported shapes including making a compound, and adding a shape and adding all the faces to that. No matter what I do the structure of the STEP looks like this when imported into FreeCAD.

![Screenshot from 2023-01-25 14-01-07](https://user-images.githubusercontent.com/1015439/214664323-46adb966-12e2-46ad-90c5-822356280967.png)

Am I missing an option somewhere to flatten the structure? Is there a way to accomplish this? Any ideas @adam-urbanczyk ?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.