diff --git a/src/Add-on/ExportData.tsx b/src/Add-on/ExportData.tsx index 196141773..6071e4aa5 100644 --- a/src/Add-on/ExportData.tsx +++ b/src/Add-on/ExportData.tsx @@ -332,8 +332,6 @@ function ConvertBoard2Data(br: ExtrudeSolid): any ed.Id = br.Id?.Index ?? 0; ed.OCS = br.OCSNoClone.toArray(); ed.Thickness = br.Thickness; - ed.Contour = Curve2Data(br.ContourCurve, false); - ed.Holes = br.Grooves.map(ConvertBoard2Data); if (br instanceof Board) { ed.Name = br.Name; @@ -347,6 +345,10 @@ function ConvertBoard2Data(br: ExtrudeSolid): any else ed.Type = "Extrude"; + let f = new CADFiler; + f.WriteObject(br); + ed.Data = f.Data; + if (app.WebSocket.mode === "obj") ed.OBJFileData = GetOBJFileData(br); return ed;