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.
DGN -> SVG conversion issue
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Re: DGN -> SVG conversion issue
I cannot think of a straightforward workaround.
Bug report under:
https://qcad.org/bugtracker/index.php?d ... sk_id=1883
Bug report under:
https://qcad.org/bugtracker/index.php?d ... sk_id=1883
-
- Newbie Member
- Posts: 7
- Joined: Wed Mar 13, 2019 3:27 pm
Re: DGN -> SVG conversion issue
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?
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
It's fixed in the sources. The fix will be available in the next release (or development snapshot).
-
- Newbie Member
- Posts: 7
- Joined: Wed Mar 13, 2019 3:27 pm
Re: DGN -> SVG conversion issue
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?
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
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.
-
- Newbie Member
- Posts: 7
- Joined: Wed Mar 13, 2019 3:27 pm
Re: DGN -> SVG conversion issue
Ok, thank you
-
- Newbie Member
- Posts: 4
- Joined: Tue Mar 07, 2023 11:27 am
Re: DGN -> SVG conversion issue
What is the command to convert dgn to svg?