Hi there,
Problem: I am running into a strange problem with some block references in a reduced number of cad files being rendered in strange places.
Description: I have a routine that batch-rasterizes cad files. The script relies on "dwg2bmp" with the "-zoom-all" argument. However, I started noticing that for some files, the zoom all option zoom out too much to objects that didn't seem to be on the drawing.
For example, for the following file:
I get a rasterized image like this:
If I open the file in a different software and "zoom all", I get everything in the right place:
However, when I open the same file with the QCAD GUI (no zoom all), I get this:
Notice that in the QCAD version, the chair and computer on the desk of the lower right corner of room 210 are missing. On zoom all, I get the same view bounding box as in the rasterization process:
Now, if I zoom on the brown dot at the bottom, the missing chair is there:
But if I try to select it and zoom out, the selection box is offset by +3000 units!
The missing laptop (part of the same block) is to be found on the top part of the drawing, but this one doesn't allow to be selected:
So, I guess my question is if you think this is a problem with the files or with the way QCAD renders these strange blocks. This problem doesn't seem to appear when opening the files with other software.
Here is a collection of other files that have similar issues:
Thank you so much in advance!
Strange things happening with blocks in file
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.
-
- Active Member
- Posts: 28
- Joined: Fri May 10, 2019 6:26 pm
Re: Strange things happening with blocks in file
These blocks use block transforms (a transformation matrix for block references). This is currently not supported by QCAD as it seems to be a rather uncommon feature of the DXF/DWG formats.
I've added a feature request at:
https://qcad.org/bugtracker/index.php?d ... sk_id=1895
I've added a feature request at:
https://qcad.org/bugtracker/index.php?d ... sk_id=1895
-
- Active Member
- Posts: 28
- Joined: Fri May 10, 2019 6:26 pm
Re: Strange things happening with blocks in file
Thank you andrew!
-
- Active Member
- Posts: 28
- Joined: Fri May 10, 2019 6:26 pm
Re: Strange things happening with blocks in file
Hi Andrew,
Is there any way to detect which blocks use block transforms from the ECMAScript API? While the FR goes through, I would like at least to be able to remove those blocks from the drawing prior to rasterizing them.
Thanks!
Is there any way to detect which blocks use block transforms from the ECMAScript API? While the FR goes through, I would like at least to be able to remove those blocks from the drawing prior to rasterizing them.
Thanks!
Re: Strange things happening with blocks in file
Unfortunately not. QCAD does not import such transformation matrices at all.