DGN -> SVG conversion issue

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules
Always indicate Operating system, QCAD version
Attach Drawing files, Screenshots
Post Reply
laschishin
Newbie Member
Posts: 7
Joined: Wed Mar 13, 2019 3:27 pm

DGN -> SVG conversion issue

Post by laschishin » Tue May 07, 2019 11:54 am

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.

User avatar
andrew
Site Admin
Posts: 6162
Joined: Fri Mar 30, 2007 6:07 am

Re: DGN -> SVG conversion issue

Post by andrew » Tue May 07, 2019 12:41 pm

I cannot think of a straightforward workaround.

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

laschishin
Newbie Member
Posts: 7
Joined: Wed Mar 13, 2019 3:27 pm

Re: DGN -> SVG conversion issue

Post by laschishin » Tue May 07, 2019 2:58 pm

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?

User avatar
andrew
Site Admin
Posts: 6162
Joined: Fri Mar 30, 2007 6:07 am

Re: DGN -> SVG conversion issue

Post by andrew » Tue May 07, 2019 3:00 pm

It's fixed in the sources. The fix will be available in the next release (or development snapshot).

laschishin
Newbie Member
Posts: 7
Joined: Wed Mar 13, 2019 3:27 pm

Re: DGN -> SVG conversion issue

Post by laschishin » Tue May 07, 2019 3:09 pm

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?

User avatar
andrew
Site Admin
Posts: 6162
Joined: Fri Mar 30, 2007 6:07 am

Re: DGN -> SVG conversion issue

Post by andrew » Tue May 07, 2019 3:23 pm

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.

laschishin
Newbie Member
Posts: 7
Joined: Wed Mar 13, 2019 3:27 pm

Re: DGN -> SVG conversion issue

Post by laschishin » Tue May 07, 2019 3:27 pm

Ok, thank you

Post Reply

Return to “QCAD Troubleshooting and Problems”