select-outline-problem - outline dissappears behind picture-layer

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

select-outline-problem - outline dissappears behind picture-layer

vowi
Hi LibreCAD-forum,

is there a way to set a certain layer to select objects? LibreCAD selects the picture, instead of the line.

1. imported a picture "ground view" in layer "picture"
2. retraced the outline of a ground view in layer "outline"
3. when trying to select that outline, the outline dissappears behind the picture and is not selected
4. instead of the intended outline, accidentally the picture beeing selected.

regards
Volker

P.S.: Found a similar-sounding topic from 2015, but wasn´t replyed:
https://forum.librecad.org/Imported-picture-blocks-lines-behind-it-scaling-idea-td5711503.html

example: #select-outline-picture-problem01.dxf
Version: 2.2.0-rc4-8-g5a07ab41
Compiler: GNU GCC 7.3.0
Compiled on: Jul  3 2022
Qt Version: 5.12.4
Boost Version: 1.65.1
System: Windows 10 (10.0)
Reply | Threaded
Open this post in threaded view
|

Re: select-outline-problem - outline dissappears behind picture-layer

dellus
This is a known issue. Always the image is selected instead of the line. Some workarounds:
https://forum.librecad.org/Drawing-Over-an-Image-tp5722128p5722130.html
https://forum.librecad.org/librcad-2-2-image-tp5718640p5718642.html
 
Reply | Threaded
Open this post in threaded view
|

Re: select-outline-problem - outline dissappears behind picture-layer

vowi
thank you dellus - I was searching for the wrong term "picture" instead of "image".

It´s a pity, LibreCAD doesn´t offer an option to make the image-layer non-selectable. "Switching layers on and off" is a workaround, but it´s an annoying activity, when tracing/editing many objects from an image. Hope a developer will find time, to add some code someday...

regards
Volker
Version: 2.2.0-rc4-8-g5a07ab41
Compiler: GNU GCC 7.3.0
Compiled on: Jul  3 2022
Qt Version: 5.12.4
Boost Version: 1.65.1
System: Windows 10 (10.0)
Reply | Threaded
Open this post in threaded view
|

Re: select-outline-problem - outline dissappears behind picture-layer

dxli
In reply to this post by dellus
I also found it's a useful feature to allow drawing over an image.

We currently have drawing order support, so it's possible to move the image to the bottom.

For selection, I just pushed a fix to ignore locked layers, when click to select:

https://github.com/LibreCAD/LibreCAD/commit/cc45a92fd21c424692d1f074e5565fed17d7ff74

The end user can:

1. keep the image to a separate layer, and lock that layer;
2. move the image to drawing order to the bottom;
3. draw over the layer in a separate layer(unlocked, of course).

The change appears to be logical to me. It's probably not a priority to select entities on a locked layer.

dellus wrote
Reply | Threaded
Open this post in threaded view
|

Re: select-outline-problem - outline dissappears behind picture-layer

vowi
Hi dxli,

thanks for your reply and yes, that´s what I´ve wished to come true. I couldn`t test yet, because usually my LibreCAD runs on a windows-machine. I guess structure&code of windows-LibreCAD is different from what you showed us in librecad/src/lib/engine/rs_entitycontainer.cpp ?
Anyhow, thank you and for my next "drawing on image" I will move to my linux-machine and change that line 1491 !

Volker

Version: 2.2.0-rc4-8-g5a07ab41
Compiler: GNU GCC 7.3.0
Compiled on: Jul  3 2022
Qt Version: 5.12.4
Boost Version: 1.65.1
System: Windows 10 (10.0)
Reply | Threaded
Open this post in threaded view
|

Re: select-outline-problem - outline dissappears behind picture-layer

flywire
dxli wrote
I just pushed a fix to ignore locked layers, when click to select:
Great! Given the old https://dokuwiki.librecad.org/doku.php/tutorial:carport I think this was a regression.

vowi wrote
I couldn`t test yet, because usually my LibreCAD runs on a windows-machine.
Use the Continuous Build Pre-release: https://github.com/LibreCAD/LibreCAD/releases