Hi,
I am using QCAD to convert dxf files into svg. I am doing this for a software where we are allowing user to import their CAD drawings. I am facing a strange problem. Some of my files are getting converted correctly but others are not. My software is using dwv2svg command from a java class. Attached are two samples files which are not getting converted correctly. I tried to open them in QCAD desktop application and they were looking fine. When I tried to export them to SVG from desktop application I was getting same behaviour.
dwg2svg conversion
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.
dwg2svg conversion
- Attachments
-
- house.dxf
- (16.1 KiB) Downloaded 258 times
-
- House Floor Plan Sample.dwg
- (230.07 KiB) Downloaded 243 times
Re: dwg2svg conversion
In house.dxf, the lineweight of layer 0 is set to 0.00mm (which means as thin as possible in the CAD world).
dwg2svg translates this into a stroke-width of 0.001 in SVG (since 0 would mean invisible in the SVG world). 0.001 is still hardly visible unless you zoom in a lot.
You can either adjust the lineweight in the DXF (lineweight of layer 0) or pass a minimum lineweight to dwg2svg, e.g.:
dwg2svg -minlineweight=0.1 house.dxf
dwg2svg translates this into a stroke-width of 0.001 in SVG (since 0 would mean invisible in the SVG world). 0.001 is still hardly visible unless you zoom in a lot.
You can either adjust the lineweight in the DXF (lineweight of layer 0) or pass a minimum lineweight to dwg2svg, e.g.:
dwg2svg -minlineweight=0.1 house.dxf