I did a dump of the env variables and grep -i mark | grep layout and did not see the layer of current env value of the marknet hilite layer.
Is there a env variable that has the value of the Auto Hilight Color value in the Mark net function?How to get it?
How to change it or get it to cycle?
Get the list of layers used in leHiMarkNet?
The choices are hardcoded to be y0-y9 and there are no controls to change this. Whether it is cycling by default can be controlled by this:
envSetVal("layout" "markNetAutoColorCycle" 'boolean nil) ; t is the default
There is this article which gives a slightly clunky way to set it to start from a specific y0-y9 layer: How to make markNet use a specific layer "y4 drawing" to trace the net and have it marked thick so that it is more visible?
Thanks for the infoI will create a variable to cycle through the y[0-9] layers, if there is no way to get the current hilite
Why do you need to create a variable and set it to particular layers to cycle it - that's what envSetVal("layout" "markNetAutoColorCycle" 'boolean t) does (that's the default behaviour too). Perhaps you're using an older version before that was implemented? In which case, it would be useful to know which sub-version you're using so I can check...
I tried the script by defining and undefined the hilite layer.
When I dont set the value it takes the current hilite layer a wont change till I use the leHiMarknet to cycle to the next layer.
So I set the value to rotate the layer for the different nets I mark.
I was wanting to get the current env hilite value and toggle through its values. Furthermore, if the user wanted a single color or rotate it would be under the users control.
I don't really understand - I must be missing something. Can't you just hit F3 and change this yourself? It's under the user's control already...