libredwg
libredwg copied to clipboard
dwg2SVG wrong viewBox
Hi, I am using dwg2SVG from docker. Have not managed to use this command for any of the files in the test folder libredwg/test/test-data/. For example:
dwg2SVG example_r14.dwg > example_r14.svg this gives an empty content file as attached.
or dwg2SVG example_2018.dwg > example_2018.svg
.dwg files and .svg output , just in case
examples 2.zip
It is working if used correctly, because it's part of the test suite. My guess is that the shared library couldn't be loaded, or such an external error.
Thank you so much for replying! How to use it correctly? I also tried with my own .dwg but they it not work,i.e., same problem. Maybe I should compile from source, instead of using docker?
Tried again with compiling from source. Still see empty svg generated. Got these on dwg2SVG example_2018.dwg > example_2018.svg ATTDEF ignored MTEXT ignored MTEXT ignored MTEXT ignored MTEXT ignored MTEXT ignored MTEXT ignored MTEXT ignored MTEXT ignored MTEXT ignored MTEXT ignored MTEXT ignored MTEXT ignored MTEXT ignored MTEXT ignored MTEXT ignored MTEXT ignored MTEXT ignored
Sorry, cannot repro. dwg2SVG is part of the test-suite and works on all tested platforms. The messages you see are expected.
I see.
width="100%" height="100%"
viewBox="-2680430.068109 -1672547.179548 3540706.089899 2726367.694617">
is way too large, and you cannot see anything there. the entities are around 2680701.618090,1052992.241139
any update on this? I check the latest code still have the same problem, the svg is empty.
It's not empty, you just ont see the entities, because the view is is way too large.
No, other priorities now
I have a same problem..Is it fixed?
I have a same problem..Is it fixed?
See https://github.com/LibreDWG/libredwg/discussions/770#discussioncomment-6528614
first you should delete the label "defs" and "/defs" of the xxx.svg