AnsweredAssumed Answered

toggle items in display control

Question asked by andrew_french on Aug 9, 2016
Latest reply on Aug 30, 2017 by .-.--.--

One of my layout designers asked for a script where he could toggle certain things in the display control on and off like "Display Active Layer Only" using hot keys.  I know how to setup hot keys but I'm struggling to figure out how to toggle items on and off that live in the display control.  Anyone have any experience doing this that could help me out?  I see several items in "ActiveViewEX.DisplayControl" like "set_Option" but it crashes on me when I run it.


Something like

ExpDoc.ActiveViewEx.DisplayControl.set_Option("Display Active Layer Only", MGCPCB.EPcbGraphicsItemState.epcbGraphicsItemStateOnEnabled);

seems like it should enable the "Display Active Layer Only".