Cancel
Showing results for 
Search instead for 
Did you mean: 

Check if Layer is Hidden on Drawing Sheet (Not a view)

Pioneer
Pioneer

With VB, is is possible to check if a layer is visible on a Drawing Sheet that has no views on it?

 

There is the .ishidden option for a layer in a drawing view, but i cannot find how to check if a layer is visible on the sheet.

 

Thanks.

 

 

Clive Coomes
Design Engineer
Solid Edge ST10 (Version: 110.00.11.004 x64)
Laptop: Dell Precision 7530, 32Gb Memory, Nvidia Quadro 3200, Windows 10 x64
2 REPLIES 2
Highlighted

Re: Check if Layer is Hidden on Drawing Sheet (Not a view)

Solution Partner Phenom Solution Partner Phenom
Solution Partner Phenom

@CCoomes,

 

Function IsSheetLayerHidden(layerName as String, sheet as SolidEdgeDraft.Sheet) As Boolean
Return (Not sheet.Layers.Item(layerName).IsShownInContext(sheet))
End Function

 

Kind regards,
Wolfgang Kunert - www.wksyspro.de

Re: Check if Layer is Hidden on Drawing Sheet (Not a view)

Pioneer
Pioneer
Thank you Wolfgang,
This works perfectly and is such a simple solution.
Thanks again.
Clive Coomes
Design Engineer
Solid Edge ST10 (Version: 110.00.11.004 x64)
Laptop: Dell Precision 7530, 32Gb Memory, Nvidia Quadro 3200, Windows 10 x64