svg 2 dxf conversion [closed]

房东的猫 提交于 2019-12-05 16:52:36

There is Stani's DXF library and batik you could join this two together.

I have written my own pre-svg builder "iPath" in javascript basically to replace the d-attribute of svg's path elementent. It allows for a more verbose creation of paths:

 var freeForm = new iPath().line(20,30).bezier(20,20, 40,40, 50,50).line(30,30);

You can use it in an svg element like:

<path class="clazzz" d="#{freeForm.dPath(3)}"/>

With the aid of Stani's library mentioned in previous answer and Manfred's Moitzi's dxfwrite I implemented a dxf exporter for iPath. Use it like:

freeForm.dxf()

more examples (still working on documentation) on iScriptDesign and experiments with animation on stretchsketch

Try Inkscape; open the svg then use "save a copy" to save as a dxf file.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!