Hi folks,
Trying my hand at creating some SVGs to import to Vision, having issues with how they are importing.
I’m using lines and arcs to create some P&ID components, however the stroke width of the items appears to get lost on import.
The components in Inkscape:
The components on a web tool to confirm sanity:
The components when loaded into Vision:
The component on the left uses rectangles for the vertical lines. The object on the right uses lines with a stroke width of 3px. The arc, similarly, is a stroke-only arc, and the 3px width is not preserved. I’ve tried simplifying the paths, exporting as SVG 1.1, exporting as an optimized SVG. All to the same end in Vision import. I’ve referenced the heck out of the page in the user manual.
So my question: What have I done wrong? Is there a workaround I should know about? is there a better way to go about creating line diagrams that maintain stroke width and scale well?
SVG for reference:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="1016"
height="670"
viewBox="0 0 268.81666 177.27083"
version="1.1"
id="svg1"
inkscape:version="1.4.2 (f4327f4, 2025-05-13)"
sodipodi:docname="Test3.svg"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="8"
inkscape:cx="657.25"
inkscape:cy="248.5625"
inkscape:window-width="2560"
inkscape:window-height="1369"
inkscape:window-x="-8"
inkscape:window-y="-8"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs1" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<g
id="g7"
inkscape:label="bridgeVert1"
transform="translate(-6.746875,10.451042)">
<rect
style="fill:#000000;stroke:#000000;stroke-width:0.0507508;stroke-dasharray:none"
id="rect1-277-6-8-0"
width="0.74299926"
height="2.5950825"
x="-161.10588"
y="39.183708"
transform="scale(-1,1)"
inkscape:label="vert2" />
<rect
style="fill:#000000;stroke:#000000;stroke-width:0.0507508;stroke-dasharray:none"
id="rect1-277-6-8-0-2"
width="0.74299926"
height="2.5950825"
x="-161.10588"
y="43.591404"
transform="scale(-1,1)"
inkscape:label="vert1" />
<path
style="fill:#000000;fill-opacity:0;stroke:#000000;stroke-width:0.793757;stroke-dasharray:none"
id="path7-1-6"
sodipodi:type="arc"
sodipodi:cx="-42.685097"
sodipodi:cy="161.13126"
sodipodi:rx="1.2778016"
sodipodi:ry="1.2797894"
sodipodi:start="0"
sodipodi:end="3.1415927"
sodipodi:arc-type="arc"
d="m -41.407295,161.13126 a 1.2778016,1.2797894 0 0 1 -0.638901,1.10833 1.2778016,1.2797894 0 0 1 -1.277802,0 1.2778016,1.2797894 0 0 1 -0.6389,-1.10833"
sodipodi:open="true"
transform="rotate(-90)"
inkscape:label="arc1" />
</g>
<path
style="fill:#000000;fill-opacity:0;stroke:#000000;stroke-width:0.793757;stroke-dasharray:none;stroke-linecap:butt"
id="path7-1-6-3"
sodipodi:type="arc"
sodipodi:cx="-53.169212"
sodipodi:cy="157.69165"
sodipodi:rx="1.2778016"
sodipodi:ry="1.2797894"
sodipodi:start="0"
sodipodi:end="3.1415927"
sodipodi:arc-type="arc"
d="m -51.891411,157.69165 a 1.2778016,1.2797894 0 0 1 -0.638901,1.10833 1.2778016,1.2797894 0 0 1 -1.277801,0 1.2778016,1.2797894 0 0 1 -0.638901,-1.10833"
sodipodi:open="true"
transform="rotate(-90)"
inkscape:label="arc1" />
<path
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:0.79375;stroke-dasharray:none;stroke-opacity:1"
d="m 157.29479,49.642448 v 2.645833 z"
id="path7"
inkscape:label="vert2" />
<path
style="fill:none;fill-opacity:0;stroke:#000000;stroke-width:0.79375;stroke-dasharray:none;stroke-opacity:1"
d="m 157.29479,54.050141 v 2.645833 z"
id="path7-6"
inkscape:label="vert1" />
</g>
</svg>