Topic: Export DXF fail QElectroTech-0.70-dev+svn5627-1

Dear Qelectrotech Team
Im was using new version 0.70. I just want to know if the DXF export feature are not available due these version is not official released.
i can export to JPEG, PNG, etc, but when i send to DXF, the only drawing that was exported is the title block.

Thanks a lot for your help, and congratulations for you program.

I want to use 0.7 version because there is the feature to add to elements more information, like we have a database, with manufacturer name, part number, etc.

Post's attachments

Attachment icon Version2.qet 12.51 kb, 546 downloads since 2018-12-04 

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

Hello Gamezgust,

thanks for the compliments, but we do not have anyone who is expert in DXF and who can review the DXF export code right now, and add new dynamic texts conversion.

https://svnweb.tuxfamily.org/filedetail … atedxf.cpp 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

Hi Laurent the king of workaround,
have you any solution to convert new dynamic text in old text ?
We have a project to convert in dxf and it's a very big problem to loose all text...

Somebody work on this problem ?

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

  Nobody !


But try to export to SVG or PDF and convert online SVG or PDF to DXF. 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

With tool to convert from pdf: text are loosed. And with tool to convert from SVg: text are dirty.

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

Work great here on my Debian

laurent@debian:~/qet_element_moderation$ pstoedit -f "dxf: -ctl -mm" -split example_project.pdf example_project_%d.dxf

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

Sinon sous win https://www.scan2cad.com/

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

Ok, thanks Laurent !
I will try pstoedit this evening at home on linuxmint.

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

Pstoedit work but text are "empty shape", not a text.I tryed option -polyaslines but not better.

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

sudo apt-get install printer-driver-cups-pdf 

Well, go to print menu -> choose printer and select  CUPS Generic PDF printer 

https://download.qelectrotech.org/qet/forum_img/cups.png
https://download.qelectrotech.org/qet/forum_img/cups-option.png

now run pstoedit again.

....
[font=monospace]unable to map [c2] glyph name 83 encoded as 83 - using the PostScript code value instead.
unable to map [c2] glyph name 50 encoded as 50 - using the PostScript code value instead.
unable to map [c2] glyph name 49 encoded as 49 - using the PostScript code value instead.
unable to map [c2] glyph name 55 encoded as 55 - using the PostScript code value instead.
unable to map [c2] glyph name 83 encoded as 83 - using the PostScript code value instead.
unable to map [c2] glyph name 49 encoded as 49 - using the PostScript code value instead.
unable to map [c2] glyph name 65 encoded as 65 - using the PostScript code value instead.
unable to map [c2] glyph name 117 encoded as 117 - using the PostScript code value instead.
unable to map [c2] glyph name 116 encoded as 116 - using the PostScript code value instead.
unable to map [c2] glyph name 45 encoded as 45 - using the PostScript code value instead.
unable to map [c2] glyph name 48 encoded as 48 - using the PostScript code value instead.
unable to map [c2] glyph name 45 encoded as 45 - using the PostScript code value instead.
unable to map [c2] glyph name 77 encoded as 77 - using the PostScript code value instead.
unable to map [c2] glyph name 97 encoded as 97 - using the PostScript code value instead.
unable to map [c2] glyph name 110 encoded as 110 - using the PostScript code value instead.
....couic
...[/font]




https://download.qelectrotech.org/qet/s … pt_pdf.zip



I think more better if you don't use bitmap fonts in QET settings dynamic_texts fonts select a vector font !

https://www.quora.com/What-are-the-diff … ector-font 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

OK, I will try. But I don't not what is the link between pstoedit and cups-printer...
Thanks Laurent.

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

See my ZIP files .

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

galexis wrote:

OK, I will try. But I don't not what is the link between pstoedit and cups-printer...
Thanks Laurent.

cups PDF can export vector fonts into PDF, and I think not  QPrinter::PdfFormat  (raster format ) used in QET to generate PDF files.
http://doc.qt.io/qt-5/qprinter.html

Also you need vector fonts if you want DXF texts can be editable after conversion.


A bitmap font is made of raster images that define each character of a font. Bitmap fonts are non-responsive, and do not maintain their shape & character when resized to bigger/smaller sizes. these are generally meant for use in one size only. Proggy is a good example of a bitmap font. Bitmap fonts are rarely used nowadays.

A vector font is a type of font where the glyphs of the font is defined mathematically and graphed on whatever application you are using. Vector fonts can be used anywhere, and are flexible to use. they can be expanded to huge sizes without any problem, as they can retain their size. Most modern fonts like Adobe Source Sans are vector fonts.

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

I haven't got setting for pdf version on linuxmint ...But, I can add some parameter.

Post's attachments

Capture du 2019-01-04 19-34-46.png, 58.81 kb, 1212 x 671
Capture du 2019-01-04 19-34-46.png 58.81 kb, 560 downloads since 2019-01-04 

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

Other workaround.

export your diagrams to svg, open it in inkscape and save to *.DXF.

https://download.qelectrotech.org/qet/forum_img/inkscape_dxf.png

Post's attachments

Attachment icon 59_bornier_xo_94-127.dxf 222.4 kb, 493 downloads since 2019-01-08 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

  https://blog.willwinder.com/2014/02/eas … rsion.html


https://github.com/winder/svgToDxf


This script simply runs a command with Inkscape to convert a file from svg to
eps, and then runs another command with pstoedit to convert it from eps to
dxf.

Exemple pour inkscape en CLI et faire de la conversion par lot :
https://superuser.com/questions/303727/ … y-used-bit


EDIT: for Windows users : https://github.com/maujabur/svg_to_dxf

https://forum.hardware.fr/hfr/Graphisme … 6009_1.htm 

"Le jour où tu découvres le Libre, tu sais que tu ne pourras jamais plus revenir en arrière..."

Re: Export DXF fail QElectroTech-0.70-dev+svn5627-1

Thanks Laurent, conversion svg to dxf work well ! I will try conversion by batch....