selected entity layer becomes current layer

Please use this forum to post feedback and suggestions related to QCAD.

Moderator: andrew

Post Reply
JoseVieira
Junior Member
Posts: 14
Joined: Sun Jun 30, 2019 11:35 pm

selected entity layer becomes current layer

Post by JoseVieira » Mon Jun 06, 2022 9:55 pm

what about a function that makes selected entity's layer becomes current layer?
there is something like that, already?

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

Re: selected entity layer becomes current layer

Post by CVH » Mon Jun 06, 2022 11:00 pm

Hi,

with your selection, double click on the intended layer in the list.

Or alter the layer in the Property Editor.

Regards,
CVH.

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

Re: selected entity layer becomes current layer

Post by CVH » Mon Jun 06, 2022 11:06 pm

OK, got it all wrong ... :oops:
... What if the selected entities are not all on the same layer.

Only one can become current!

Regards,
CVH

JoseVieira
Junior Member
Posts: 14
Joined: Sun Jun 30, 2019 11:35 pm

Re: selected entity layer becomes current layer

Post by JoseVieira » Thu Jul 14, 2022 11:16 pm

Actually, I mean that: You want to draw something that have to be at the same layer of an entity. If you select that entity, its layer will be shown at status line. But, you will have to find that layer among several layers on the layer list. So, will be more easy to click twice on it and make its layer the current layer.
One thing bad is that clicking twice in some entitys leads to edit them. So the command could be "ctrl"+click or something like that.
I'm sorry for the bad english, I hope you can understand what I wrote.

User avatar
Husky
Moderator/Drawing Help/Testing
Posts: 4935
Joined: Wed May 11, 2011 9:25 am
Location: USA

Re: selected entity layer becomes current layer

Post by Husky » Fri Jul 15, 2022 1:51 am

Hi JoseVieira,

Try this:
in your drawing (Model_Space) --> select the entities,

in Property Editor --> check if they are on the correct layer or not ...
(Note: If you see a *VARIES* that means they are on more than one layer - that's ok,)

... if not: --> go to the Layer List and left double click on the target layer. Active or not doesn't matters in this moment but the double click will finally make that clicked layer to the active layer.
Done.
JoseVieira wrote:
Thu Jul 14, 2022 11:16 pm
I'm sorry for the bad english, I hope you can understand what I wrote.
Don't worry about that! If it is easier for you please feel free to post in your native language. We will use online translation - most of the time it works pretty well. :wink:
Work smart, not hard: QCad Pro
Win10/64, QcadPro, QcadCam version: Current.
If a thread is considered as "solved" please change the title of the first post to "[solved] Title..."

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

Re: selected entity layer becomes current layer

Post by CVH » Fri Jul 15, 2022 7:03 am

Hi,

Husky's proposal would move all selected to the target layer and make that the active (current) layer.
But I think that moving entities was not the intention. :wink:
JoseVieira wrote:
Thu Jul 14, 2022 11:16 pm
Actually, I mean that: You want to draw something that have to be at the same layer of an entity. If you select that entity, its layer will be shown at status line. But, you will have to find that layer among several layers on the layer list.
Indeed, in total I also wasted several hours looking up the specific layer to continue drawing on it. :oops:

That is if you don't follow this common drawing practice: e_geek
https://www.ribbonsoft.com/en/tutorial- ... ith-layers

Layers are meant to define how your entities look like (color, line type and lineweight).
Only entities with the exact same look are usually put on the same layer.

It should then not be hard to locate the 'Hidden' line layer or the 'Thick' line layer.

Layers are not intended to group things that belong to a specific (sub-) part in a drawing.
For that we should use Blocks.
Two block examples from the standard Library: 'bed_double_180_200' and 'screw'.
The second one is a simplistic side view of a screw drawn on layer 0 and a red centerline on layer 'center'.


That said, I have a slightly adapted organizing system. :wink:
I group issues of my design proposals in layers with sub-layers that follow the common practice.
To compare two or some I set the issues main layer 'frozen' property to false.

Organized as groups, one issue would be one and the same block reference and I cannot select the individual entities.
For particular reasons I have to avoid the use of 'Edit Block In Place'.

While comparing issues, I have the same problem in looking up to correct layer to edit further. e_confused


I now see that your proposal is also a valid solution for me.
A script that runs on selected, comparing entities layers and then switches to the common layer or failing and reporting different layers.
It would be fairly easy to script and I will see what I can squeeze out of spare time to write something up. 8)
I can already tell that switching the current layer is a double step ... It neads two Undo's (OO) to step back.

Will report back with a link to the posting.
Regards,
CVH

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

Re: selected entity layer becomes current layer

Post by CVH » Wed Jul 20, 2022 7:13 am

Hi JoseVieira,

Have a look at this:
https://qcad.org/rsforum/viewtopic.php?t=9436

Regards,
CVH

Post Reply

Return to “QCAD Suggestions and Feedback”