Is it possible to disable warning message in the terminal, when executing a batch script?
I have managed to disable debug messages. I just cannot find a way to disable warning messages…
Is it possible to disable warning message in the terminal, when executing a batch script?
I have managed to disable debug messages. I just cannot find a way to disable warning messages…
Debug and warning messages are streamed to stderr.
You can stream stderr to nul with (Windows):
./dwg2svg.bat ... 2> nul
Or (Linux / macOS):
dwg2svg.sh ... 2>/dev/null
Thank you, Andrew.
Unfortunately, I have found that was not my problem…
Original and output drawings attached.
Looking forward to hearing your thoughts on the time discrepancy.
cleaned.dxf (522 KB)
hummingbird.dxf (637 KB)
Hi,
There are indeed (almost) zero length entities in the drawing.
Bridging gaps between splines:
Where two spline meet
I don’t know their native format because I did open the file in the QCAD GUI.
On loading QCAD or Open Design libraries may already fix entity issues.
May I ask what application created this DXF file?
The meaningful splines look more like Beziers segments.
In general they are not all perfectly tangentially connected.
QCAD has no method merging them back into longer spline chains.
Not aware of such Command Line tool thus I suspect a custom tool.
I think you are better of with re-coding your tool.
Select all (visible) entities, reject invalid and (almost) Null-length entities.
Explode remaining to line and arcs.
Optional remove all duplicate segments.
Convert these segments to polylines given a certain tolerance.
Replace all initial content by new polylines. (… Always keep a copy or store as new file just in case of …)
BTW: QCAD kept on failing on the ‘Cleaned’ file zooming in deeper and back out. ![]()
Once I normalized the 87 polylines that didn’t occur anymore, still, the screen update in high zoom seems to slow down.
Could be a second selection color issue …?
Regards,
CVH
Thank you, CVH.
I’ll look to make changes, based on your feedback and see how I get on.
I do not know the tool that created the original SVG drawing.
Yes, tools are custom. I write my own and enjoy testing other tools in the process ![]()
I have not much failure in QCAD. Though, my experience is limited.
Do you know how to process multiple files through command line tools without opening and closing QCAD each time?
Please open a new topic for unrelated questions.
That makes the forum searchable. ![]()
Unrelated to QCAD.
Bash scripting see:
On windows called a batch file …
I don’t think you need to open the QCAD GUI for each … QCAD can run without the GUI.
Regards,
CVH
Needed to look this up
:
Regrads,
CVH