QCAD Crashes on block insert if layer in block is missing from drawing

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
shakiestnerd
Registered Member
Posts: 1
Joined: Mon Oct 25, 2021 1:24 am
Location: USA

QCAD Crashes on block insert if layer in block is missing from drawing

Post by shakiestnerd » Mon Oct 25, 2021 2:04 am

I've been playing around with creating my own blocks in QCAD.

Usually, my blocks are created with all the elements on layer 0. I wanted to create some blocks with attributes to make changing the text easy. I placed those attributes on a layer named TEXT.

If my drawing contains a layer named TEXT, then the block inserts perfectly. If the drawing lacks a TEXT layer, then QCAD crashes out when I try to insert the block.

I don't consider this a big problem, but it has annoyed me a couple of times. It would be good if QCAD would:
  • Warn me that a block contains a layer that doesn't exist in my drawing and refuse to insert it (instead of crashing)
  • Or just automatically create the layer for me.
  • Or some other friendly behavior
Of course, I could just be doing something wrong. :? That's always a strong possibility.

QCAD 3.26.2 on Linux Mint 20.2

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

Re: QCAD Crashes on block insert if layer in block is missing from drawing

Post by andrew » Mon Oct 25, 2021 6:48 am

Please attach the DXF file for the block you are inserting and the file you are inserting to, thanks.

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

Re: QCAD Crashes on block insert if layer in block is missing from drawing

Post by CVH » Mon Oct 25, 2021 6:54 am

Hi,

How can a block definition exists without the layer(s) of one or more of its entities?
In this case Attribute entities on layer 'TEXT'.

Are you referring to 'Block Insert (BI)' or do you refer to 'Insert library Item' ...?

Regards,
CVH

Post Reply

Return to “QCAD Troubleshooting and Problems”