SvgToDat


SvgToDat
#1
People occasionally ask about SvgToDat (which they sometimes call svg2dat), so I have finally gotten around to uploading its source code to GitHub (along with both 32-bit and 64-bit Windows builds). It can be found here:

https://github.com/tcobbs/SvgToDat

If anyone wants to take over this project, feel free. It is MIT licensed. I wrote this code many years ago (no later than 2011), and haven't really touched it since (other than getting it to compile in Visual Studio 2015). I created a GitHub release that contains two executable zips: one for 32-bit Windows, and the other for 64-bit Windows. It can be found here:

https://github.com/tcobbs/SvgToDat/releases/tag/v0.1

To use the program, simply run SvgToDat <filename.svg>. It will create a file named filename.ldr alongside the SVG file.
Reply
RE: SvgToDat
#2
Sorry to have added to the name confusion... And thanks for publishing!
Reply
RE: SvgToDat
#3
I frequently use a tool called GeoGebra to create designs that I later adapt (manually) to SVG or POV-Ray.

https://www.geogebra.org/

It is a point-and-click geometry tool that is very precise, and allows you to create variables or a spreadsheet of values, parametric or algebraic functions, JavaScript, etc. Very handy!

Most of the SVG files here were created by me using this tool:

https://commons.wikimedia.org/wiki/User:Datumizer

I like it better than InkScape for most things. I have no idea how one would use it to export directly to LDraw, however. I do know that the file format is just a ZIP file containing an XML file (as well as some other less important things).
Reply
RE: SvgToDat
#4
(2019-06-19, 5:36)Michael Horvath Wrote: I frequently use a tool called GeoGebra to create designs that I later adapt (manually) to SVG or POV-Ray.


I like it better than InkScape for most things. I have no idea how one would use it to export directly to LDraw, however. I do know that the file format is just a ZIP file containing an XML file (as well as some other less important things).

I strongly suspect that the file format is useless to anyone other than them. It likely contains the information necessary for GeoGebra itself to reproduce the end result. So the file probably contains things like actual equations, plus any custom JavaScript, but not end geometry.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 3 Guest(s)