<div dir="ltr">Hi!<div><br></div><div>Anyone know of a tool to create SVG files (or similar) using some kind of macro or command line?</div><div><br></div><div>For instance, if I want to draw several lines start starts at the same point, have the same length but different angles (this example is written in some kind of Basic looking pseudo code):</div><div>x=150</div><div>y=100</div><div>length=100</div><div>drawline x,y,length,0<br></div><div>drawline x,y,length,1.4<br></div><div>drawline x,y,length,2,8<br></div><div>drawline x,y,length,4.2<br></div><div>drawline x,y,length,5.6<br></div><div>drawline x,y,length,7.0<br></div><div><br></div><div><br></div><div>Or maybe even better; something like this:</div><div><div>x=150</div><div>y=100</div><div>length=100</div></div><div>For Angle=0 To 180 Step 1.4<br></div><div><span class="" style="white-space:pre">  </span>drawline x,y,length,angle<br></div><div>Next Angle</div><div><br></div><div>Another acceptable approach would be:</div><div>xStart=150</div><div>yStart=100</div><div>Length=100</div><div><div>For Angle=0 To 180 Step 1.4<br></div><div><span style="white-space:pre">   xEnd=xStart+</span>Length<span style="white-space:pre">*sin(</span>Angle<span style="white-space:pre">*π/180)</span><br></div><div><span class="" style="white-space:pre">       yEnd=</span><span style="white-space:pre">xStart+</span>Length<span style="white-space:pre">*cos(</span>Angle<span style="white-space:pre">*π/180</span><span style="white-space:pre">)</span></div><div><span class="" style="white-space:pre">   </span>drawline xStart,yStart,xEnd,yEnd<br></div><div>Next Angle</div></div><div><br></div><div>I've had a quick look at Inkscape but I couldn't find any kind of command line or macro programming IDE there.</div><div><br></div><div><br></div><div><div>Kind regards</div><div><br></div><div>Johnny Rosenberg</div></div><div><br></div></div>