SVG Export of block references

If you are having problems with QCAD, post here. Please report bugs through our Bug Tracker instead.

Always attach your original DXF or DWG file and mentions your QCAD version and the platform you are on.

Moderator: andrew

Forum rules

Always indicate your operating system and QCAD version.

Attach drawing files and screenshots.

Post one question per topic.

Post Reply
User avatar
ryancousins
Premier Member
Posts: 367
Joined: Thu Mar 19, 2020 3:47 am
Location: Michigan, USA

SVG Export of block references

Post by ryancousins » Mon Dec 19, 2022 2:45 am

Windows 11 Pro
QCAD 3.27.8

In the attached DXF file, I have five similar blocks. If I go to the block definition space for one and then do a quick SVG export, it works as expected. If, however, I insert a reference to one of the blocks into the main model space and do a quick SVG export, the resulting SVG seems to change. If I explode the reference to a raw polyline, it will again work as expected.

I have included the two SVG files, plus side-by-side screenshots of both SVG files open in Inkscape and TinkerCAD.
Inkscape.png
Inkscape.png (671.17 KiB) Viewed 3957 times
TinkerCAD.png
TinkerCAD.png (1.09 MiB) Viewed 3957 times
Attachments
One Inch - Exploded Ref Export.svg
(705 Bytes) Downloaded 245 times
One Inch - Block Ref Export.svg
(796 Bytes) Downloaded 235 times
Leg Radius Templates.dxf
(97.97 KiB) Downloaded 217 times

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: SVG Export of block references

Post by Husky » Mon Dec 19, 2022 6:55 am

Hi ryancousins,
ryancousins wrote:
Mon Dec 19, 2022 2:45 am
If, however, I insert a reference to one of the blocks into the main model space and do a quick SVG export, the resulting SVG seems to change. If I explode the reference to a raw polyline, it will again work as expected.
It looks to me that the reason for that is a vertical flip of the block during the inserting process. The block itself (Edit Block mode) exports perfectly to a svg because it wasn't flipped. Compare Property Editor / Scale: Y -1 instead of 1.

Please file a bug-report below:
https://www.qcad.org/bugtracker

Thanks for the heads up! :wink:
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

CVH
Premier Member
Posts: 3416
Joined: Wed Sep 27, 2017 4:17 pm

Re: SVG Export of block references

Post by CVH » Mon Dec 19, 2022 8:42 am

Same issue here ... probably:
https://qcad.org/bugtracker/index.php?d ... sk_id=2406
And there were older reports that were fixed ...

The question remains why a symmetric shape has been flipped in X or in Y or even in both ... :?:
Not speaking of flipping in Z what may occur too.

Still, agreed, the SVG export should handle these correctly.

Regards,
CVH

User avatar
ryancousins
Premier Member
Posts: 367
Joined: Thu Mar 19, 2020 3:47 am
Location: Michigan, USA

Re: SVG Export of block references

Post by ryancousins » Mon Dec 19, 2022 3:30 pm

Thanks guys. It looks like the vertical flip option state is remembered between successive block insertions. So a previous unrelated block that I did mean to flip vertically carried over here but of course I didn't notice because the shape is symmetrical about the X axis. I'll add a bug report.

User avatar
ryancousins
Premier Member
Posts: 367
Joined: Thu Mar 19, 2020 3:47 am
Location: Michigan, USA

Re: SVG Export of block references

Post by ryancousins » Mon Dec 19, 2022 5:09 pm

CVH wrote:
Mon Dec 19, 2022 8:42 am
Same issue here ... probably:
https://qcad.org/bugtracker/index.php?d ... sk_id=2406
Andrew deleted my bug entry as it was a duplicate to this one you mentioned. Thankfully it's easy enough to explode things as a workaround.

Post Reply

Return to “QCAD Troubleshooting and Problems”