Page 1 of 1

dwg2svg text information

Posted: Thu Dec 01, 2022 3:42 pm
by agedviking
hello everyone,

I am currently testing QCAD version 3.27 command line tool dwg2svg. I want to convert dwg files into svg vector graphics to display them in the browser. This works great.

However, I would like to be able to make adjustments to the svg. An example: the text which is also vectorized should be clickable. But after the conversion the text-path has no more information about the text it represents. Is there a possibility to set in the conversion that the text is taken over as an id attribute?

I am looking forward to an answer. Thanks

Re: dwg2svg text information

Posted: Thu Dec 01, 2022 4:26 pm
by CVH
agedviking wrote:
Thu Dec 01, 2022 3:42 pm
the text which is also vectorized should be clickable.
Hi,
Not sure, never used it, but have you tried all dwg2svg options?
https://www.ribbonsoft.com/en/products/ ... ls#dwg2svg

Thinking of -preserve-geometry or -no-text-transforms ...
Maybe the bridge is too wide, text options in QCAD are limited compared to SVG.

One can always file a feature request at bugtracker.

Regards,
CVH

Re: dwg2svg text information

Posted: Thu Dec 01, 2022 6:05 pm
by andrew
-preserve-geometry will give you text entities in the SVG output. The drawback is that the rendering is not guaranteed to be identical in SVG as it is in QCAD.