Thread subject: sK1 Project :: PLT export

Posted by iw2lsi on 03-04-2012 18:35
#1

Hi all

I'm new to UC and I found it really a great job

as I work a lot with PLT/HPGL files, I would suggest to improve the PLT export this way:

1) differentiate colors selecting different pens <HPGL SP command>
2) allow to set a precision factor for curve linearization
3) allow streaming (read source from stdin, output converted file to stdout)

what do you think ?

best regards

Giampaolo

Posted by Chevroletat42 on 05-04-2012 10:57
#2

UniConvertor is a universal vector graphics translator. The project uses sK1 engine to convert one format to another. It has an import filters for: CDR, CDRX, CDT etc

Posted by iw2lsi on 05-04-2012 11:14
#3

Hello Chevroletat

I don't understand exacly your comments... anyway... of course... PLT files are also used on laser engraving machines, where the pen number normally is associated with some laser parameters as power, frequency, traveling speed and so on.

that's why merging all pens can be a problem... pen colors and or numbers are not important, but distinguish different pens is.

Best Regards

Giampaolo

Posted by igor on 05-04-2012 17:02
#4

Hi Giampaolo,

Don't worry, "Chevroletat42" is a spam robot no more :) It posted meaningless text for one purpose only - store links in his signature to promote some commercial site. I have banned this account.

So concerning your suggestions.

differentiate colors selecting different pens <HPGL SP command>


current PLT import|export implementation is for cutting plotters only. I.e. it uses simplified HPGL language. I think later we will create normal variant of HPGL parser for conventional purposes.

allow to set a precision factor for curve linearization


This feature has been implemented in UniConvertor 2.0 and LinCutter - special GUI application for vinyl cutting plotter (something like Roland CutStudio). The applications will be released at the end of April.

allow streaming (read source from stdin, output converted file to stdout)


UniConvertor 2.0 general pattern is to read whole file, build format specific DOM model and translate this model to another model, for example SVG model. Each DOM model can parse file and save model objects into file. So stream reading is impossible, because it breaks generic application pattern. But you can implement this feature using bash commands:
Code

(some input stream)> file.svg
uniconvertor file.svg file.plt
cat file.plt | (output stream)




Edited by igor on 05-04-2012 17:04

Posted by iw2lsi on 10-04-2012 08:07
#5

Hello Igor

first of all, I appreciate your time and your works very much...

I'm just going to add support for svg and cdr into my qt program using uniconvertor as an external command-line application... as differentiating plt pens is important for me I'll do some tests on this directions as soon as possible... of course... I'll share this if I got something work (but I'm totally new to phyton :-()

thanks again for your great works

Giampaolo

Posted by igor on 11-04-2012 08:32
#6

Hi Giampaolo,

I would recommended you to wait for UniConvertor 2.0 release just because it has been designed as a python library uc2, i.e. it can be used like Python Image Library but not as an external command-line application.

Posted by Arun Sarkar on 23-04-2012 10:02
#7

igor wrote:
This feature has been implemented in UniConvertor 2.0 and LinCutter - special GUI application for vinyl cutting plotter (something like Roland CutStudio). The applications will be released at the end of April.
[/code]


Hello ;)

Is there any windows version on initial relese of UC2? or only Linux?

Thanks in advance

Arun :)