[solved] Incorrect path after "Object to Path"

Post questions on how to use or achieve an effect in Inkscape.
theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

[solved] Incorrect path after "Object to Path"

Postby theozh » Sun Nov 23, 2014 6:23 am

Sorry, but the forum does allow to search for "object to path". Too common words...

If I take some text (here: monospace) and convert it with Inkscape to DXF I get the following in the CAD program:
Object_to_Path.png
Object_to_Path.png (18.44 KiB) Viewed 2969 times

As you can see the 2,3,5,B,D,G,J,P,Q,R and U are not correct.

1) Why does this happen? How can I avoid it?

2) I assume these are some unclosed paths. If so, how can I make this visible already in the SVG file instead of getting complaints about my incorrect DXF file? In Normal View and Outline View it looks all fine.

Only if I correct this by hand (unifying the different paths of the incorrect numbers and letters) I can import the Inkscape-DXF correctly to a CAD programm. Although one CAD-programm complains about the dot in the zero if I want to extrude it.
Last edited by theozh on Mon Nov 24, 2014 5:21 pm, edited 1 time in total.

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Incorrect path after "Object to Path"

Postby Lazur » Sun Nov 23, 2014 6:43 am

After converting object to path, you can try selecting all the nodes and click the merge double nodes icon.
So Ctrl+Shift+C, ungrouping or entering the group, rectangle selecting all the characters,
changing to the node tool, rectangle selecting all the nodes and merge nodes will close all open path segments.
Not sure if that solves the dxf problem though.

tylerdurden
Posts: 2344
Joined: Sun Apr 14, 2013 12:04 pm
Location: Michigan, USA

Re: Incorrect path after "Object to Path"

Postby tylerdurden » Sun Nov 23, 2014 9:05 am

I can replicate the issue here. The workaround is to use the simplify path tool on each offending instance. Simplifying a group can generate poor results. :-(

I have not found a monospace font (from my handful that does not have the issue). I can't say if making a font in Inkscape would fare better... it might be worth trying.
Have a nice day.

I'm using Inkscape 0.92.2 (5c3e80d, 2017-08-06), 64 bit win8.1

The Inkscape manual has lots of helpful info! http://tavmjong.free.fr/INKSCAPE/MANUAL/html/

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Incorrect path after "Object to Path"

Postby Lazur » Sun Nov 23, 2014 11:59 am


theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: Incorrect path after "Object to Path"

Postby theozh » Sun Nov 23, 2014 6:57 pm

Thanks for your comments!

@tylerdurden
Yes, "simplify" works even in "one shot" for all objects, however, the letters are badly distorted.

@Lazur URH
You do not need to go to the node tool. As I wrote in my original post: marking the incorrect letter and unifying it (Ctrl++) seems to give correct results.
But for this you have to know which letters are incorrect, which leads to the question: how can I make it visible whether a path is open or closed?
Of course, you can unify each letter prophylactically, which is time consuming and very annoying.

One stroke lettering is not an option for me because I want to drawing lithography masks. There I need "Fill: Black, Stroke: None"


Some more bad examples:
Arial:
Text_to_Path_Arial.png
Text_to_Path_Arial.png (13.31 KiB) Viewed 2907 times

Courier New: (even worse)
Text_to_Path_CourierNew.png
Text_to_Path_CourierNew.png (15.82 KiB) Viewed 2907 times

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Incorrect path after "Object to Path"

Postby Lazur » Mon Nov 24, 2014 3:38 am

All the text character's converted to path have their subpaths opened here.
Double nodes appear lighter grey when selected with the node tool -they don't have the black outline around their marker.

(Strange with only the dot in the zero has problems with extruding. Knowing that obj's faces or verts in general cannot be hollow.)

hulf2012
Posts: 716
Joined: Sat Nov 24, 2012 12:37 pm

Re: Incorrect path after "Object to Path"

Postby hulf2012 » Mon Nov 24, 2014 4:16 am

Hello
I've been trying to reproduce your results here in Inkscape 0.48.5, right now in an Ubuntu System. For the CAD program I'm using Librecad. But Other results appear. From your first message, i think that some information is missing:
1.- Which version of Inkscape are you using?
2.- Which CAD program are you using?
3.- Are you conveting the letters to paths (Shift+ Ctrl + C)? (just to be sure)
4.- Are you using this procedure: Menu >> File >> Save as >> autocad 14 DXF >> with all the options unchecked?
4.1.- Or maybe you are checking ROBO - Master or LWPolyline?
If you have problems:
1.- Post a sample (or samples) of your file please.
2.- Please check here:
http://tavmjong.free.fr/INKSCAPE/MANUAL/html/index.html
3.- If you manage to solve your problem, please post here your solution.

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: Incorrect path after "Object to Path"

Postby theozh » Mon Nov 24, 2014 7:00 am

Sorry for the incomplete information
1. Inkscape 0.91pre2_64bit r13532, Win7 64bit
2. LibreCAD 2.0.6
3. Yes, Object to Path (Shift+Ctrl+C)
4. Menu | File | Save Copy as | Desktop Cutting Plotter AutoCAD R14 (.dxf)
4.1. ROBO unchecked
LWPOLYLINE checked (standard setting)
Base unit: px
Character Encoding: Latin 1
Layer export selection: Visible only

OK, now, I tried again with LWPOLYLINE unchecked and then (at least in LibreCAD) I do not see any wrong lines at first view.
Thanks, hulf2012, for the hint...
I need to check with other 3D-CAD programs.
Win7/64, Inkscape 0.92.2

theozh
Posts: 437
Joined: Fri Mar 23, 2012 6:30 pm

Re: Incorrect path after "Object to Path"

Postby theozh » Mon Nov 24, 2014 7:39 am

Thanks, again hulf2012!
OK, so easy...
I just unchecked LWPOLYLINE (actually, what is this option for? Haven't found an explanation in the manual) and it seems to work in LibreCAD and also SolidWorks for extrusion in 3D.
Win7/64, Inkscape 0.92.2


Return to “Help with using Inkscape”