[solved] Block visibility on different layers

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
RobB
Full Member
Posts: 72
Joined: Sun May 26, 2019 4:02 pm
Location: Alpnach, Switzerland

[solved] Block visibility on different layers

Post by RobB » Tue Jan 11, 2022 2:17 pm

In my drawings I often use the same block (representing a component) in multiple layers.
When I turn off layers to select a part of the drawing, these block instances do not adhere to their layer on/off status.
In the attached test, I put a block on layer 'object, then the next instance on layer 'hidden'.

When I turn off layer 'hidden', its block correctly disappears. But when I turn off only layer 'object', both blocks disappear.
It seems that the layer that gets the first instance of the block controls if it is displayed or not for all layers.

Rob

QCAD/CAM

Version: 3.27.1.0 (3.27.1)
Build Date: Dec 13 2021
Revision: 2726424
Qt Version: 5.14.2
Architecture: x86_64
Compiler: gcc 5.4.0
Attachments
test-114.dxf
(142.04 KiB) Downloaded 286 times
Linux Mint 20 , qcadcam-3.24.3.10-pro-linux-x86_64

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

Re: Block visibility on different layers

Post by CVH » Tue Jan 11, 2022 2:34 pm

Rob,

TestBlock entities are created on layer 'object'
The left Block Reference is placed on layer 'object'
The right Block Reference is placed on layer 'hidden'

Freezing layer 'object' affects both, and the block entities, and the Block Reference.
Freezing layer 'hidden' only affects the right Block Reference.

One would expect the same with Show/Hide but that is not.
That is governed by Application Preferences .. Widgets .. Layer List preferences.

Regards,
CVH
Last edited by CVH on Tue Jan 11, 2022 4:40 pm, edited 1 time in total.

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

Re: Block visibility on different layers

Post by andrew » Tue Jan 11, 2022 2:40 pm

This is a common misunderstanding about blocks.

Not only the block reference but also the block contents is also on a layer. In this file the lines in block "testblock" are all on layer "object".
When turning off layer "object", the block reference on layer "hidden" is not hidden, but its entire contents is hidden.

RobB
Full Member
Posts: 72
Joined: Sun May 26, 2019 4:02 pm
Location: Alpnach, Switzerland

Re: Block visibility on different layers

Post by RobB » Tue Jan 11, 2022 3:42 pm

Andrew,
Thanks for the explanation.
I'll move all library blocks to layer 0.
Rob
Linux Mint 20 , qcadcam-3.24.3.10-pro-linux-x86_64

Post Reply

Return to “QCAD Troubleshooting and Problems”