[solved] QCAD crashes while importing a block from a dxf file

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 Operating system, QCAD version
Attach Drawing files, Screenshots
Post Reply
wiekiera
Newbie Member
Posts: 5
Joined: Fri May 22, 2020 4:57 pm

[solved] QCAD crashes while importing a block from a dxf file

Post by wiekiera » Mon Jun 08, 2020 7:32 pm

Hi All,

I am not sure if it is a bug or I am doing something wrong.
I am working with 3.24.3.0 version of qcad in Windows 10.
I have prepared a single block in dxf file for future reuse.
The block contains layer 0 plus two additional layers.
It also has an attribute residing in one of additional layers.
If I drag and drop the dxf file from windows explorer to qcad drawing the program crashes.
I have noticed that it is possible to eliminate the problem if the two afore mentioned layers are added in advance to the qcad file.
So that, when the block is added there is no need for the program to create additional layers.
I have attached the dxf file with the block. I am curious if anyone can reproduce the crash event or it is only matter of my system working not properly.

Cheers!
Jakub
Attachments
DatumIdentifierUp.dxf
(101.24 KiB) Downloaded 31 times
Last edited by wiekiera on Mon Jun 08, 2020 8:14 pm, edited 1 time in total.

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

Re: QCAD crashes while importing a block from a dxf file

Post by andrew » Mon Jun 08, 2020 7:56 pm

The problem seems to be the attribute definition which can only live inside a block, not in the context of a main drawing.

The recommended way to do this is with a drawing that contains a block with the same name as the drawing file. QCAD then doesn't create a new block when inserting the file, but rather uses the existing block.

To change your file in that way, proceed as follows:
- Load the file "DatumIdentifierUp.dxf"
- Select > Select all
- Block > Create block from Selection
- Click 0,0 for reference point
- Enter block name as "DatumIdentifierUp"
- Block > Attributes > Synchronize Attributes
- File > Save

Now you should be able to insert the file from Explorer as block with an attribute.

wiekiera
Newbie Member
Posts: 5
Joined: Fri May 22, 2020 4:57 pm

Re: QCAD crashes while importing a block from a dxf file

Post by wiekiera » Mon Jun 08, 2020 8:13 pm

Thanks Andrew. It works. I have tried something similar before.
I only did not perform the last step, that is synchronising the attributes.

Post Reply

Return to “QCAD Troubleshooting and Problems”