I have a bunch of CorelDraw! 2019 drawings of charts which have been converted to SVG format using CorelDraw's macro converter. They look perfect after opening in Inkscape v1.3.2 but even after ungrouping all and unlocking all I am unable to select the polylines so I can edit them. When I select a polyline I get a bounding square only. I can delete that polyline but that is all. New to Inkscape but not to various graphics applications. How can I enable the selection of the polyline nodes?
Open the XML Editor dialog [shift+ctrl+x] and you'll see that your drawing contains <line> and <polyline> elements. This is valid svg code and Inkscape renders these elements correctly, but it doesn't have the drawing tools to edit them. Almost every shape in Inkscape is a <path> element. This in turn has a <d> attribute containing a list of x,y coordinates joined by straight line segments and bezier curves. Any shape you can construct with lines and polylines can also be generated with paths so there's no point developing tools for both.
There are online tools to convert lines and polylines (and polygons and circles and other unsupported elements) to paths. Or you can do it manually in a text editor.
Thanks,Inklinea. Can you please elaborate on how I would use this in a find/replace operation? I thought I found the answer using SVG Polygon/Polyline to Path Converter (codepen.io), which did a great job creating paths but caused problems, like disappearing a couple of important objects, so I won't be using that again.
I have a bunch of CorelDraw! 2019 drawings of charts which have been converted to SVG format using CorelDraw's macro converter. They look perfect after opening in Inkscape v1.3.2 but even after ungrouping all and unlocking all I am unable to select the polylines so I can edit them. When I select a polyline I get a bounding square only. I can delete that polyline but that is all. New to Inkscape but not to various graphics applications. How can I enable the selection of the polyline nodes?
Here's the file in question.
Can you upload a sample svg file for interrogation?My mistake. You already did.
Open the XML Editor dialog [shift+ctrl+x] and you'll see that your drawing contains <line> and <polyline> elements. This is valid svg code and Inkscape renders these elements correctly, but it doesn't have the drawing tools to edit them. Almost every shape in Inkscape is a <path> element. This in turn has a <d> attribute containing a list of x,y coordinates joined by straight line segments and bezier curves. Any shape you can construct with lines and polylines can also be generated with paths so there's no point developing tools for both.
There are online tools to convert lines and polylines (and polygons and circles and other unsupported elements) to paths. Or you can do it manually in a text editor.
Find: polyline
Replace With: path
Find: points="
Replace With: d="M
Find: line .... x1="aaaa" y1="bbbb" x2="cccc" y2="dddd"
Replace With: path .... d="Maaaa,bbbb cccc,dddd"
You can convert polylines in Inkscape to paths, using
Path>Object to Path
( I'm using Inkscape 1.3 )What you can't do is edit polylines in the gui using tools (without converting to paths first)
However If you do want to convert elements back to polylines, there is an extension in the Mightscape Collection https://github.com/eridur-de/mightyscape-1.2
Called 'Convert To Polylines'
Thanks inklinea. That's the better/quicker/smarter way of fixing it.
Thanks,Inklinea. Can you please elaborate on how I would use this in a find/replace operation? I thought I found the answer using SVG Polygon/Polyline to Path Converter (codepen.io), which did a great job creating paths but caused problems, like disappearing a couple of important objects, so I won't be using that again.
Ah, I see, said the blind dude! It's on the Menu :) Thanks, again.