Export not working

If you are having problems with QCAD 2.1/2.2, post here. Please report bugs here.

Moderator: andrew

Locked
JimG
Newbie Member
Posts: 4
Joined: Mon May 02, 2011 5:30 am

Export not working

Post by JimG » Mon May 02, 2011 5:41 am

I am unable to export usable PDF or SVG files from qcad. With PDF export, I end up with a completely blank file, at least there is nothing in the file that Adobe Reader can see.

With SVG export, I get a viewable file. But when I import the file into Inkscape, the scale is really messed up. It plots around 1/10 as large as it should.

Where to start troubleshooting?

Jim

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

Re: Export not working

Post by andrew » Mon May 02, 2011 11:57 am

As always, please indicate your QCAD version, operating system and other relevant information. In this case, please indicate your drawing main unit and drawing scale.
JimG wrote:I am unable to export usable PDF or SVG files from qcad. With PDF export, I end up with a completely blank file, at least there is nothing in the file that Adobe Reader can see.
Did you switch to the print preview first and adjust your drawing scale and position on the paper?
JimG wrote:With SVG export, I get a viewable file. But when I import the file into Inkscape, the scale is really messed up. It plots around 1/10 as large as it should.
You will most likely have to scale your drawing in Inkscape to get the desired result.

JimG
Newbie Member
Posts: 4
Joined: Mon May 02, 2011 5:30 am

Post by JimG » Mon May 02, 2011 12:32 pm

I am using Qcad Professional version 2.2.2.1 on Windows XP SP 3.

Drawing units are inches, scale is 1:1. I use print preview, and click the button to center the image, but not "fit to page". I also normally toggle the black/white mode to black, but have tried both ways.

The PDF is still coming out blank. An oddity is that the Adobe Reader automatically scales the blank page to 2041% when it tries to display the file.

The SVG file comes out looking correct, but at an unknown scale. I have tried scaling by the standard 90 px per inch, but this makes the image too big by almost a factor of 2. By experimentation, it seems that scaling the drawing by around 2.5 results in something "close".

I am trying to use the SVG files as input to Ponoko.com's CNC laser cutter, so I need to know the exact scale factor.

Thanks in advance.

Jim

JimG
Newbie Member
Posts: 4
Joined: Mon May 02, 2011 5:30 am

Post by JimG » Tue May 03, 2011 1:00 am

Through experimentation, I have succeeded in creating PDF's. The sheet size, by default, is "custom". Once the sheet size is changed to "letter", the PDF function works.

The SVG export, however, still seems to output entities at a random scale.

Someone with access to qcad's source code must know what conversion qcad it uses to go from drawing units (in the DXF) to px units (in the SVG) ?

Jim

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

Post by andrew » Tue May 03, 2011 8:59 am

The SVG output scale is indeed arbitrary. QCAD calculates the borders of the drawing and then performs an auto zoom of the drawing into these borders. Margins are applied to make sure that thick lines are not cut off at the borders.

Please note that QCAD SVG export is intended for presentation purposes only, not for further processing. Dashed lines are ripped apart, text is broken up, dimension entities are exported as lines and other shapes, etc.

To transfer geometry across to another program, the DXF format should be used instead.

QCAD 3 improves these aspects of SVG export with two options (preserve looks or preserve geometry) and the scale should be correct in the output in any case. Feel free to send us a drawing of yours, so we can convert it using QCAD 3.

JimG
Newbie Member
Posts: 4
Joined: Mon May 02, 2011 5:30 am

Post by JimG » Tue May 03, 2011 1:59 pm

Thanks, Andrew. Having this information will help me work around the scaling issues.

For now, I am drawing a large bounding rectangle around my piece drawings and then performing SVG scaling based on the known dimensions of the rectangle. I look forward to the new capabilities in version 3.

I believe that SVG is a very poor choice of formats for CNC control, but there are many other things I like about the service provider :(

Jim

Locked

Return to “QCAD 2.1/2.2 Troubleshooting and Problems”