Hi!
I'm trying to make web app where user uploads his .dxf file to server, and then app finds specific square which limits the object that we need, and converts that area to jpg.
So basically the dxf is very large, and I only need one region from it. I can't convert it to image with full size because it's too large.
I have app that find the square, but now i just need to "crop" the dxf. Is it possible to do using only command line tools?
I'm using qcad-3.19.1-pro-linux-x86_64 version.
Thanks!
[solved] "Cropping" .dxf file on command line
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: "Cropping" .dxf file on command line
dwg2bmp should have you covered. To export the rectangle at X,Y with WIDTH / HEIGHT:
See also:
Code: Select all
dwg2bmp -w X,Y,WIDTH,HEIGHT -f -o out.png in.dxf
Code: Select all
dwg2bmp -h
Re: "Cropping" .dxf file on command line
Thanks that worked! Feel a bit dummy for missing that earlier