Hi,
I want to draw an involute gear - I have a text file (can also be made into a CSV-file), describing the coordinates. Is it possible / how do I get all these (maybe 100 points or something) imported and connected together?
There must be a way... Please advice, thanks...
import coordinates from CSV-file
Re: import coordinates from CSV-file
Is it possible to make a script that uses the xml-editor to accomplish this?
Re: import coordinates from CSV-file
Or shouldn't it be possible to write directly to the svg-file... ?
Please help - inkscape noob.
Please help - inkscape noob.
Re: import coordinates from CSV-file
hi,
edit the following file (= replace ENTER CONTENT OF CSV HERE by your actual csv content)
note: coords should be in the following format x,y x,y x,y x,y
(or do it the other way : open you csv ; go to the front and add first part of svg; go to the end and add remaining svg)
edit the following file (= replace ENTER CONTENT OF CSV HERE by your actual csv content)
note: coords should be in the following format x,y x,y x,y x,y
(or do it the other way : open you csv ; go to the front and add first part of svg; go to the end and add remaining svg)
Code: Select all
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
version="1.1"
width="210mm"
height="297mm"
id="svg2">
<g
id="layer1">
<path
d="M 0,0 L ENTER CONTENT OF CSV HERE "
id="path2991"
style="fill:none;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
</svg>