DWG Import

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
martblek
Active Member
Posts: 29
Joined: Wed Sep 02, 2020 7:58 am

DWG Import

Post by martblek » Wed Sep 02, 2020 8:46 am

Hello,
using 3.25 version of QCadCam and there is some strange things with import .dwg files.
First is angle and hole dimension.
File 0030.dwg
qcad3_25_0.PNG
qcad3_25_0.PNG (31.36 KiB) Viewed 5169 times
SLD_2D_Editor.PNG
SLD_2D_Editor.PNG (11.23 KiB) Viewed 5169 times
And second is too much diameter dimensions from zero coords.
File 0002.dwg
strange.PNG
strange.PNG (382.13 KiB) Viewed 5169 times
Tested in old Solidworks 2DEditor, EDrawings and VariCAD viewer with no prob.
This happening on many drawings i have :(
Thanks.
Attachments
0002.dwg
(395.01 KiB) Downloaded 527 times
0030.dwg
(223.29 KiB) Downloaded 506 times

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

Re: DWG Import

Post by andrew » Wed Sep 02, 2020 9:02 am

The dimensions in this file are stored with invalid / wrong coordinates.

The way this works is as follows:
- Each dimension is stored with various reference points that define from where to where the dimension measures, where the dimension line is placed, etc.
- Each dimension is also stored with a dimension block which contains the visual representation of the dimension (lines, arrows, etc.) as a type of cache.
- Usually, these two sets of information correspond with each other - in these two drawings they don't.
- Other CAD applications might simply show the cached dimension block, regardless of the reference points stored in the file. Note that if you modify such a dimension ever so slightly in another CAD application (e.g. by moving a reference point slightly), the dimension will be re-rendered and will look as shown in QCAD.
- QCAD always renders dimensions from their reference points. Dimension block caches are ignored.

You can force QCAD to use these dimension block caches using the command line switch -recompute-dim. This is only recommended if you only want to export or print a file "as is").

martblek
Active Member
Posts: 29
Joined: Wed Sep 02, 2020 7:58 am

Re: DWG Import

Post by martblek » Wed Sep 02, 2020 9:24 am

Ok.
Thank you for answer.
With this option working perfectly.

martblek
Active Member
Posts: 29
Joined: Wed Sep 02, 2020 7:58 am

Re: DWG Import

Post by martblek » Fri Sep 04, 2020 11:06 am

Hello ,
like i said, with this option "-recompute-dim" importing work ok.
I tried to export as SVG, there is no problem with result
But if i want to export as PDF i must change paper size and then these dimension lines are back :(

Post Reply

Return to “QCAD Troubleshooting and Problems”