Quantcast
Channel: Cadence Custom IC Skill Forum
Viewing all articles
Browse latest Browse all 5066

Toggle a grid switch

$
0
0

Should be easy, but can't figure out where it is wrong.

Lint score is 100.

Tried "nil" with and without quotes.

Purpose = Toggle the fb1 grid on or off with a bindkey.

Flow:

1. get grid visible status.

2. if on then turn off.

3. if off then turn on.

Problem: Turns it off but won't toggle it on.

code starts here:

procedure(MDTtoggleFB1( )
if( pteIsVisible("Grids;Snap Patterns;Local Grids;fb1" "Grids") == "nil"
then
pteSetVisible("Grids;Snap Patterns;Local Grids;fb1" t "Grids")
else
pteSetVisible("Grids;Snap Patterns;Local Grids;fb1" nil "Grids")
)
)


Viewing all articles
Browse latest Browse all 5066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>