Page 1 of 1

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

Posted: Mon Jun 08, 2020 7:32 pm
by wiekiera
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

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

Posted: Mon Jun 08, 2020 7:56 pm
by andrew
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.

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

Posted: Mon Jun 08, 2020 8:13 pm
by wiekiera
Thanks Andrew. It works. I have tried something similar before.
I only did not perform the last step, that is synchronising the attributes.