xibyte / jsketcher

Parametric 2D and 3D modeler written in pure javascript
http://web-cad.org
Other
1.45k stars 275 forks source link

The exported dxf not opening in AutoCAD #177

Closed tarikjabiri closed 1 year ago

tarikjabiri commented 1 year ago

Hi,

I looked into the dxfExportfunction and I found this line should be deleted because the function generateAutocadExtras() already called in the Drawing.constructor(). I think this is the main reason, I didn't test it.

I want to make a suggestion: I see you have Dimensions also needed to be exported to the dxf. the dxf-writer does not support dimensions. Currently I am working on an implemention of dimensions but in my lib dxfjs/writer. What I am saying is if its ok to switch to another lib I will help you making the dxf export work and also support all geometries. If not I will make PR to make the dxf generated from dxf-writer work in AutoCAD if the problem not fixed by removing this line.

Regards

mmiscool commented 1 year ago

Thanks. It looks like there was no problem swapping over to your implementation.

I saw that you have been working on dfx parsing library. I imagine that it might be possible to leverage that to create an import tool for JSketcher. What is the current status on that? Is it at a point where it might be used to extract 2D geometry from a standard dxf?

tarikjabiri commented 1 year ago

Yeah I am working on it. But its not ready for now, will be in the future. I need the parser also to be able to read the existing files and update them in the dxf writer.

mmiscool commented 1 year ago

The pull request has been merged. Closing this issue.