sgenoud/replicad

Add Support for Exporting Reference Geometry

Closed this issue · 4 comments

It would be helpful to export axes and planes in a STEP file to mark locations and mounting points etc. Happy to sponsor if possible.

I am quite busy until the end of year - but I'll see what I can do. I guess you are talking about a standard CAD feature I am not aware of (I came into it from the hobbyist side). Can you point me to an implementation of this feature (i.e. how it is called in Fusion360 or FreeCAD for instance).

I actually was able to make reference planes in your demo here:

### Standard planes
There are a bunch of standard planes defined as a string
```js withWorkbench
const { drawRoundedRectangle, makePlane } = replicad;
const main = () => {
const rect = drawRoundedRectangle(100, 50);
return [
{ shape: rect.sketchOnPlane(makePlane("XY")), name: "XY", color: "blue" },
{ shape: rect.sketchOnPlane(makePlane("XZ")), name: "XZ", color: "green" },
{ shape: rect.sketchOnPlane(makePlane("YZ")), name: "YZ", color: "red" },
];
};
```

This problem would be solved if we could export all of these planes in a single step file, rather than three separate ones as this does. Is that possible?

It is possible - but it will be in the same colour. Something like this.

Thats actually perfect, that's all I was looking for thank you!