InkCut Extension, send HPGL directly to cutter from Inkscape
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
Thanks Moini for the speedy reply. I used sudo nautilus and looked at permissions. Set all the files and folders to read & write and file to execute and this seemed to work. I haven't tested yet so I may be on here again soon. Great if this works or I need to pay for Signcut in a months time when my Liyu 610 is one year old.
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
Ok I have good news. I tried controlling my Liyu cutter with Inkcut today. I found that squares and stars created in Inkscape and converted to paths cut just fine. So happy this is getting somewhere - result. I get the common problem other folk seem to get i.e. cutter is now cutting... message stays on the lcd after the job is complete. Not worried it seems to have no adverse effect.
The important issue I need to resolve urgently is the inability to cut text. I ungrouped it as there was some complaint about groups - so with the text converted to paths and ungrouped I received this error...
Traceback (most recent call last):
File "inkcutext.py", line 71, in <module>
effect.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 268, in affect
self.effect()
File "inkcutext.py", line 50, in effect
InkscapePlugin(self.document,nodes.keys(),inkex)
File "/home/john/.config/inkscape/extensions/inkcut/app/main.py", line 473, in InkscapePlugin
app = Application(svg,nodes,inkex)
File "/home/john/.config/inkscape/extensions/inkcut/app/main.py", line 114, in __init__
self.on_preview_clicked('first')
File "/home/john/.config/inkscape/extensions/inkcut/app/main.py", line 227, in on_preview_clicked
psvg = preview.hpgl(self.plot)
File "/home/john/.config/inkscape/extensions/inkcut/app/bin/preview.py", line 70, in hpgl
for c in plot.toHPGL().split(';'):
File "/home/john/.config/inkscape/extensions/inkcut/app/bin/path.py", line 391, in toHPGL
data = self.changeOrder(self.createTiledClones())
File "/home/john/.config/inkscape/extensions/inkcut/app/bin/path.py", line 380, in changeOrder
hpgl.extend(clone.toHPGL())
File "/home/john/.config/inkscape/extensions/inkcut/app/bin/path.py", line 553, in toHPGL
hpgl.extend(path.toHPGL())
File "/home/john/.config/inkscape/extensions/inkcut/app/bin/path.py", line 857, in toHPGL
poly = self.toPolyline()
File "/home/john/.config/inkscape/extensions/inkcut/app/bin/path.py", line 839, in toPolyline
raise AssertionError("Polyline only handles, (L, C, A,& Z) path cmds, given %s"%(cmd))
AssertionError: Polyline only handles, (L, C, A,& Z) path cmds, given Q
Tried a few different fonts, sizes etc - no joy so far. Please help. Thanks
The important issue I need to resolve urgently is the inability to cut text. I ungrouped it as there was some complaint about groups - so with the text converted to paths and ungrouped I received this error...
Traceback (most recent call last):
File "inkcutext.py", line 71, in <module>
effect.affect()
File "/usr/share/inkscape/extensions/inkex.py", line 268, in affect
self.effect()
File "inkcutext.py", line 50, in effect
InkscapePlugin(self.document,nodes.keys(),inkex)
File "/home/john/.config/inkscape/extensions/inkcut/app/main.py", line 473, in InkscapePlugin
app = Application(svg,nodes,inkex)
File "/home/john/.config/inkscape/extensions/inkcut/app/main.py", line 114, in __init__
self.on_preview_clicked('first')
File "/home/john/.config/inkscape/extensions/inkcut/app/main.py", line 227, in on_preview_clicked
psvg = preview.hpgl(self.plot)
File "/home/john/.config/inkscape/extensions/inkcut/app/bin/preview.py", line 70, in hpgl
for c in plot.toHPGL().split(';'):
File "/home/john/.config/inkscape/extensions/inkcut/app/bin/path.py", line 391, in toHPGL
data = self.changeOrder(self.createTiledClones())
File "/home/john/.config/inkscape/extensions/inkcut/app/bin/path.py", line 380, in changeOrder
hpgl.extend(clone.toHPGL())
File "/home/john/.config/inkscape/extensions/inkcut/app/bin/path.py", line 553, in toHPGL
hpgl.extend(path.toHPGL())
File "/home/john/.config/inkscape/extensions/inkcut/app/bin/path.py", line 857, in toHPGL
poly = self.toPolyline()
File "/home/john/.config/inkscape/extensions/inkcut/app/bin/path.py", line 839, in toPolyline
raise AssertionError("Polyline only handles, (L, C, A,& Z) path cmds, given %s"%(cmd))
AssertionError: Polyline only handles, (L, C, A,& Z) path cmds, given Q
Tried a few different fonts, sizes etc - no joy so far. Please help. Thanks
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
It appears that the function that converts the letter's path to a series of straight lines can't handle everything that the path is comprised of. I had to look it up, and found that Q is for Quadratic Bezier curves. So your letters contain those, and they don't work with the extension.
Here's something that explains how to convert to something that it will understand:
https://bugs.launchpad.net/inkscape/+bug/1009765 (but, unfortunately, just the maths).
I have no idea how to tell Inkscape to convert a quadratic bezier curve to a cubic one, but I think this is what would be needed.
Here's something that explains how to convert to something that it will understand:
https://bugs.launchpad.net/inkscape/+bug/1009765 (but, unfortunately, just the maths).
I have no idea how to tell Inkscape to convert a quadratic bezier curve to a cubic one, but I think this is what would be needed.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
Moini wrote:I have no idea how to tell Inkscape to convert a quadratic bezier curve to a cubic one, but I think this is what would be needed.
Node-edit the path (e.g. select a single node with Inkscape's node tool and nugde it with the arrow keys) - the node tool does not support editing quadratic Bézier and elliptical arc curves, and thus all quadratic ( as well as elliptical arc) path commands are “converted” to cubic Bézier curve commands.
Inkscape has no built-in (single-click) option to force writing only cubic Bézier curves to accommodate extensions which only support a limited set of SVG path commands. The curves in paths from text converted to path originate from the font definitions (and the type/flavour of font determines which types of curves are used for the glyph outlines - quadratic or cubic).
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
If the user used a Boolean operation, like Path -> Combine or Path -> Union, would that do a rewrite, too? (or path -> difference with an object that doesn't intersect, maybe....)
Or selecting all nodes then moving them all with keyboard? Could be fast: Ctrl+Shift+A, n, Ctrl+A, arrow up, arrow down.
Or selecting all nodes then moving them all with keyboard? Could be fast: Ctrl+Shift+A, n, Ctrl+A, arrow up, arrow down.
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
Thanks for the prompt responses. People want the name of their boat cutting in vinyl. Maybe there are font choices that may cause fewer problems than others. I will try the node editing nudge trick and report back. I really don't want to buy signcut and be forced to carry on using windoze when my free first year expires. Some experimentation will now follow. Any further pointers welcome. I had never heard of quadratic beziers - that can be my something new today! Nice
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
You can test yourself e.g. with the 'o' (or 'O') of DejaVu Sans (usually available on Linux desktops, and on many distros the default fallback font for 'sans-serif').Moini wrote:If the user used a Boolean operation, like Path -> Combine or Path -> Union, would that do a rewrite, too? (or path -> difference with an object that doesn't intersect, maybe....)
- Path > Combine does not fully rewrite the path commands. AFAICT it concatenates the path data of the individual paths into one, preserving the original path data (quadratic Bézier as well as elliptical arc curves).
- Path > Union on the other hand seems to rewrite quadratic Béziers as cubic Béziers (it does however preserve elliptical arc commands as much as possible, e.g. when unioning circle or ellipses).
Yes. All nodes or a single selected one (as described in my other comment) does not make difference - both kinds of node-editing actions trigger a full path rewrite, with just cubic Bézier commands.Moini wrote:Or selecting all nodes then moving them all with keyboard? Could be fast: Ctrl+Shift+A, n, Ctrl+A, arrow up, arrow down.
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
Historical note: AFAICS Inkscape <= 0.48 did convert the path data from fonts to cubic Bézier commands already when converting text to path (or maybe even earlier, internally), which might explain why some (older, or external) extensions did not see a real need to support other path commands than what was (usually) generated by Inkscape itself (M,m, L,l, C,c, Z,z).
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
Thank you for the explanations, ~suv!
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
-
- Posts: 1
- Joined: Wed Jan 18, 2017 11:28 am
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
I have downloaded InkCut and can't get it installed. Newby to Linux and do not no what to do. I have Ubuntu Mate 16.04 running on Virtual Bow on a windows 10 machine. Do I have to make it a dual boot machine instead?
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
Thank you Moini and anyone else who have helped. Success! Inkcut cut my text perfectly. Here is what worked for me...
1. typed some truetype text into Inkscape
2. converted to paths
3. ungrouped
4. carried out the path-> union
5. cut it with inkcut.
Thank you all. No signcut paid software for me then - yippee.
1. typed some truetype text into Inkscape
2. converted to paths
3. ungrouped
4. carried out the path-> union
5. cut it with inkcut.
Thank you all. No signcut paid software for me then - yippee.
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
Can you post a picture of the result? I love to see what people create 

Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
-
- Posts: 11
- Joined: Sat Apr 22, 2017 10:18 pm
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
Hi im new to linux and inkscape. I come from windows where i used corel and artcut with usb to serial driver CH341SER. It all worked fine but since moving to linux things have not been the same. My Flycut CSFY720 cuts way smaller than the artwork that gets sent to it. Couldnt figure out the scale/calibration settings so got hold of linux CH341SER driver, thing is i have no idea how to install it... CH341SER_LINUX/ch34x.c, CH341SER_LINUX/Makefile, CH341SER_LINUX/readme.txt These 3 files i recieved in the download.
Txt file says the following ...
// ChangeLog
// 1.0 - 1.1 modified to solve transmition between ch341 and ch341
// 1.1 - 1.2 Support high Linux kernel
Instructions
Note: 1.Please run followed executable programs as root privilege
2.Current Driver support versions of linux kernel range from 2.6.25 to 3.13.x
3.Current Driver support 32bits and 64bits linux systems
Usage:
(load or unload linux driver of CH34x)
//compile
#make
//load ch34x chips driver
#make load
//unload ch34x chips driver
#make unload
// 1.2 - 1.3 Fix some bugs
MAKE FILE SAYS THIS...
ifeq ($(KERNELRELEASE), )
KERNELDIR := /lib/modules/$(shell uname -r)/build
PWD :=$(shell pwd)
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD)
clean:
rm -rf .tmp_versions Module.symvers *.mod.c *.o *.ko .*.cmd Module.markers modules.order
load:
modprobe usbserial
insmod ch34x.ko
unload:
rmmod ch34x
else
obj-m := ch34x.o
endif
ANY HELP WILL BE APPRECIATED.
Apparently linux have usb to serial drivers as default.
Txt file says the following ...
// ChangeLog
// 1.0 - 1.1 modified to solve transmition between ch341 and ch341
// 1.1 - 1.2 Support high Linux kernel
Instructions
Note: 1.Please run followed executable programs as root privilege
2.Current Driver support versions of linux kernel range from 2.6.25 to 3.13.x
3.Current Driver support 32bits and 64bits linux systems
Usage:
(load or unload linux driver of CH34x)
//compile
#make
//load ch34x chips driver
#make load
//unload ch34x chips driver
#make unload
// 1.2 - 1.3 Fix some bugs
MAKE FILE SAYS THIS...
ifeq ($(KERNELRELEASE), )
KERNELDIR := /lib/modules/$(shell uname -r)/build
PWD :=$(shell pwd)
default:
$(MAKE) -C $(KERNELDIR) M=$(PWD)
clean:
rm -rf .tmp_versions Module.symvers *.mod.c *.o *.ko .*.cmd Module.markers modules.order
load:
modprobe usbserial
insmod ch34x.ko
unload:
rmmod ch34x
else
obj-m := ch34x.o
endif
ANY HELP WILL BE APPRECIATED.
Apparently linux have usb to serial drivers as default.
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
Please, can we discuss this in the correct topic?
Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
Yes, Pixelsaint, if you could please post that in your original topic? You won't find any new or different people who can answer, by posting the same problem in different boards or different topics. Those of us who answer messages here, day after day, typically read all the new messages, everyday. Those who haven't answered yet probably just don't know the answer.
(Although I don't mind answering Private Messages now and then, a lot of people will not.)
Moini's trying to help you, if you could answer her last question in the other topic
(Although I don't mind answering Private Messages now and then, a lot of people will not.)
Moini's trying to help you, if you could answer her last question in the other topic

Basics - Help menu > Tutorials
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
Manual - Inkscape: Guide to a Vector Drawing Program
Inkscape Community - Inkscape FAQ - Gallery
Inkscape for Cutting Design
-
- Posts: 11
- Joined: Sat Apr 22, 2017 10:18 pm
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
Sorry guys im just all over the place "slow old newby"
Re: InkCut Extension, send HPGL directly to cutter from Inkscape
No worries 

Something doesn't work? - Keeping an eye on the status bar can save you a lot of time!
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Inkscape FAQ - Learning Resources - Website with tutorials (German and English)
Return to “Inkscape & Cutters/Plotters”
Who is online
Users browsing this forum: No registered users and 2 guests