It depends on what line was drawn by inkscape. You can open the SVG file with a text editor (notepad or something more readable) to inspect it.
One possibility is that inkscape added a path (https://developer.mozilla.org/en-US/docs/Web/SVG/Element/path), in that case, the line is just encoded as a string, and you can modify that string as a whole, but it’s quite hard to parse a generic path to get out the end points.
The other possibility is that inkscape added a line object (https://developer.mozilla.org/en-US/docs/Web/SVG/Element/line), in which case the endpoints are simply encoded as (x1,y1), (x2, y2)
, which should be very easy to modify.
In any case, it’s possible to write SVG files by hand. F.e. the SVG below is a line from the top left corner (0,0)
to the bottom right corner (100%, 100%)
, and it will scale to whatever size you want in Ignition (can even be used for horizontal and vertical lines.
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="20"
height="20"
viewBox="0 0 100% 100%"
id="svg2"
version="1.1">
<line
style="stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
x1="0"
x2="100%"
y1="0"
y2="100%" />
</svg>