EAGLE Central Forums
Where the EAGLE community meets. Sponsored by Stratford Digital.

Home » CadSoft Support Forums » eagle.suggest.eng » toggle layer displaying
toggle layer displaying [message #167301] Tue, 27 September 2016 08:55 Go to next message
Morten Leikvoll
Messages: 1351
Registered: November 2007
Senior Member
I'm sure it must have been requested by someone before, but why don't we
have a toggle key for the display function yet? There is '-' to hide,
and afaics, the effort needed to introduce the toggle prefix can't cause
very much conflict, if any at all.

It would be very useful for those who want to make key aliases for
hiding/showing specific layers.
Re: toggle layer displaying [message #167303 is a reply to message #167301] Tue, 27 September 2016 10:16 Go to previous messageGo to next message
warrenbrayshaw
Messages: 1767
Registered: January 2010
Location: New Zealand
Senior Member
On 27/09/2016 9:55 p.m., Morten Leikvoll wrote:
> I'm sure it must have been requested by someone before, but why don't we
> have a toggle key for the display function yet? There is '-' to hide,
> and afaics, the effort needed to introduce the toggle prefix can't cause
> very much conflict, if any at all.
>
> It would be very useful for those who want to make key aliases for
> hiding/showing specific layers.


Hi Morten

Toggle ULPs have been around for a long time but I don't recall a
suggestion like yours.

I think what you are saying is that you want to run a display
command/script again and again. With each run you want specified layers
to toggle between on and off.

Can this not be done with two aliases and an assigned key to run
'display last'.

To achieve this I could see myself making a ULP that snapshots a
starting display alias and within it you specify the layer you wish to
toggle. An assigned key then runs the ULP and does the toggling.

You could use a context menu to set up what you want to be the toggling
layer by clicking on an object in that layer. The work flow would be
great. You are working away and think, Hmmm, I would love to be able to
toggle that layer. Right click a wire in that layer, run the context ULP
and hey presto an assigned hot key toggles that layer on and off.
Multiple layers toggling should be achievable to with a little expansion
of the idea.

Your need may be away from this scenario so apologies if it is.

Regards
Warren
Re: toggle layer displaying [message #167304 is a reply to message #167303] Tue, 27 September 2016 10:46 Go to previous messageGo to next message
Morten Leikvoll
Messages: 1351
Registered: November 2007
Senior Member
On 27.09.2016 12:16, warrenbrayshaw wrote:
> On 27/09/2016 9:55 p.m., Morten Leikvoll wrote:
>> I'm sure it must have been requested by someone before, but why don't we
>> have a toggle key for the display function yet? There is '-' to hide,
>> and afaics, the effort needed to introduce the toggle prefix can't cause
>> very much conflict, if any at all.
>>
>> It would be very useful for those who want to make key aliases for
>> hiding/showing specific layers.
>
>
> Hi Morten
>
> Toggle ULPs have been around for a long time but I don't recall a
> suggestion like yours.
>
> I think what you are saying is that you want to run a display
> command/script again and again. With each run you want specified layers
> to toggle between on and off.
>
> Can this not be done with two aliases and an assigned key to run
> 'display last'.
>
> To achieve this I could see myself making a ULP that snapshots a
> starting display alias and within it you specify the layer you wish to
> toggle. An assigned key then runs the ULP and does the toggling.
>
> You could use a context menu to set up what you want to be the toggling
> layer by clicking on an object in that layer. The work flow would be
> great. You are working away and think, Hmmm, I would love to be able to
> toggle that layer. Right click a wire in that layer, run the context ULP
> and hey presto an assigned hot key toggles that layer on and off.
> Multiple layers toggling should be achievable to with a little expansion
> of the idea.
>
> Your need may be away from this scenario so apologies if it is.

I'm pretty convinced I saw someone wanting to toggle each layer
independantly, and I was thinking this could be useful for me right now.
I want to toggle my signal layers by using CTRL-1..6, and I want them to
toggle independantly. Using display last will not work here, as I may
for example search for the layer where my signal continues. Also context
menu's for this isnt snappy enough, also you can not right click
something on a hidden layer :p

Yes I could write an ULP that keeps last states in a file, but that will
just be a workaround for a simple missing feature. The display command
is there to change the view, not to configure something (like the layer
command), so toggling a view must be a very natural thing to do.
Re: toggle layer displaying [message #167317 is a reply to message #167304] Tue, 27 September 2016 18:51 Go to previous messageGo to next message
warrenbrayshaw
Messages: 1767
Registered: January 2010
Location: New Zealand
Senior Member
On 27/09/2016 11:46 p.m., Morten Leikvoll wrote:

>
> I'm pretty convinced I saw someone wanting to toggle each layer
> independantly, and I was thinking this could be useful for me right now.
> I want to toggle my signal layers by using CTRL-1..6, and I want them to
> toggle independantly.....
>

Bill Westfield's toglays.ulp assigned to keys CTRL-1..6 will do exactly
what you want.

HTH
Warren
Re: toggle layer displaying [message #167321 is a reply to message #167317] Wed, 28 September 2016 07:27 Go to previous message
Morten Leikvoll
Messages: 1351
Registered: November 2007
Senior Member
On 27.09.2016 20:51, warrenbrayshaw wrote:
> On 27/09/2016 11:46 p.m., Morten Leikvoll wrote:
>
>>
>> I'm pretty convinced I saw someone wanting to toggle each layer
>> independantly, and I was thinking this could be useful for me right now.
>> I want to toggle my signal layers by using CTRL-1..6, and I want them to
>> toggle independantly.....
>>
>
> Bill Westfield's toglays.ulp assigned to keys CTRL-1..6 will do exactly
> what you want.
>
> HTH
> Warren

Ah, thanks, yes indeed. I didn't think of reading layer visibility
status to change state (I should know better). This must be the reason
why there is little whining about the topic.

I think this isse is one of those smop issues that should just be fixed,
but the existence of a perfect ulp always pushes it back in the queue.
Unfortunately, this thread is probably not the last one about the topic :p
Previous Topic: Why do I need to draw the same symbol N times?
Next Topic: measuring min (clearance) distance
Goto Forum:
  


Current Time: Tue Sep 19 20:46:11 GMT 2017