Skip to content

A very basic tool for converting DXF files to JSCAD format.

License

Notifications You must be signed in to change notification settings

jscad-community/DXF-to-JSCAD-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

DXF-to-JSCAD-tool

A very basic tool for converting DXF files to JSCAD format.

Last Update: 03 August 2017

Purpose: The purpose of this program is to convert DXF files to OpenJSCAD paths. Currently, the DXF files must be made with lines and splines, only (other paths are not yet recognized). Tested with Mozilla Firefox and Google Chrome.

Instructions:

  1. Design your profile using DraftSight Free (DraftSight 2017 x64 SP1). (Only tested with DraftSight for DXF generation.) a) Use only straight lines and splines - other paths are not yet supported. b) Make sure there are no stray lines or points, and that your profile is closed.

  2. Save your DraftSight design as a DXF.

  3. Import your DXF into Inkscape (version 0.91 or 0.92). (Only tested with Inkscape for SVG generation.)

  4. While your profile is selected in Inkscape, click Path -> Combine.

  5. Click Edit -> Preferences -> Input/Output -> SVG output and set "Path data" to "Absolute". (Relative coordinates are not yet supported.)

  6. Save your file (Inkscape SVG).

  7. In svg2jscad.html (tested with Firefox & Chrome), use the "Browse" button to load your SVG file.

  8. Click "convert".

  9. Copy and paste the text into your OpenJSCAD script.

Please feel free to message me with questions, tips, or improvements you make / would like to see.

Hope you can find this useful!

About

A very basic tool for converting DXF files to JSCAD format.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages