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
[solved] Block visibility on different layers
Moderator: andrew
Forum rules
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
Always indicate your operating system and QCAD version.
Attach drawing files and screenshots.
Post one question per topic.
[solved] Block visibility on different layers
- Attachments
-
- test-114.dxf
- (142.04 KiB) Downloaded 286 times
Linux Mint 20 , qcadcam-3.24.3.10-pro-linux-x86_64
Re: Block visibility on different layers
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
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.
Re: Block visibility on different layers
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.
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.
Re: Block visibility on different layers
Andrew,
Thanks for the explanation.
I'll move all library blocks to layer 0.
Rob
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