AnsweredAssumed Answered

Controlling the Display Setting with automation

Question asked by charles.ietswaard1 on Dec 17, 2014
Latest reply on Dec 17, 2014 by charles.ietswaard1

Hello all,


I want to control the DisplayControl setting by means of automation.

The following snippet will turn of the visibility  of the User Draft Layers Object but does not change the state of the underlying layers


Dim DisplayControlObj

Dim GlobalDisplayControlObj


set DisplayControlObj = pcbDoc.ActiveView.DisplayControl

set GlobalDisplayControlObj = DisplayControlObj.Global


DisplayControlObj.Option( "Option.UserDraftLayers.Enabled" )    = epcbGraphicsItemStateOffEnabled





As soon as you turn on an individual layer  with


DisplayControlObj.Global.Color( "User.PCA-003" )    = application.Utility.NewColorPattern( 0, 0, 0, 100, 0, True, False )


Not only that user layer is turned on but also all the other user layers that where visible before




Is there a DisplayControl Option that will not only turn of the visibility of the section but also turn off the underlying layers.


Regards, Charles