Quantcast
Channel: Mentor Graphics Communities: Message List
Viewing all articles
Browse latest Browse all 1329

toggle items in display control

$
0
0

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".


Viewing all articles
Browse latest Browse all 1329

Trending Articles