Page 1 of 1

DGN -> SVG conversion issue

Posted: Tue May 07, 2019 11:54 am
by laschishin
Hello,

I'm converting a DGN file to SVG using QCAD command like tool.
Qcad Version: 3.16.5.0 (3.16.5)

I see that result SVG file contains an XML comment sections for each text label in source file.
For example, a DGN text label "400A" will appear in SVG file as comment like: "<!-- Text: 400A -->"

My issue is: when DGN text label contains two dashes "--", after conversion SVG file will contain this: "<!-- Text: -- -->"
This conflicts with W3C XML standard: https://www.w3.org/TR/2008/REC-xml-2008 ... c-comments, which prohibits placing two dashes into an comment.

My question is: how can I avoid such situation? Is there some adjustments to a js file during conversion, or any other ways to get rid of two dashed into XML comment?

Thanks.

Re: DGN -> SVG conversion issue

Posted: Tue May 07, 2019 12:41 pm
by andrew
I cannot think of a straightforward workaround.

Bug report under:
https://qcad.org/bugtracker/index.php?d ... sk_id=1883

Re: DGN -> SVG conversion issue

Posted: Tue May 07, 2019 2:58 pm
by laschishin
Hello, andrew

Thank you for logging in a bug.
I see that the bug is in status Closed with resolution Fixed. Just to be clear: does it mean that the issue is fixed in 3.22.0 version? Or it will fixed in next releases?

Re: DGN -> SVG conversion issue

Posted: Tue May 07, 2019 3:00 pm
by andrew
It's fixed in the sources. The fix will be available in the next release (or development snapshot).

Re: DGN -> SVG conversion issue

Posted: Tue May 07, 2019 3:09 pm
by laschishin
I'm asking because new versions can not convert DGN to SVG (details https://qcad.org/rsforum/viewtopic.php?f=95&t=6141) and I have to use version 3.16.5.
Could you provide a backport to 3.16.5?
Or how can I apply the fix on 3.16.15?

Re: DGN -> SVG conversion issue

Posted: Tue May 07, 2019 3:23 pm
by andrew
Unfortunately, we cannot provide a backport for 3.16.5. If you are stuck with that version, I'd recommend to post-process the SVG and remove or fix the comments, for example using a simple batch or bash script.

Re: DGN -> SVG conversion issue

Posted: Tue May 07, 2019 3:27 pm
by laschishin
Ok, thank you

Re: DGN -> SVG conversion issue

Posted: Tue Mar 07, 2023 11:28 am
by hoang_aize
What is the command to convert dgn to svg?