Message 1 of 4

Not applicable
02-13-2018
08:00 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello All,
I'm hoping this is an easy question & just something I'm overlooking.
I have the following code
'get single layer Dim odoc As DrawingDocument = ThisApplication.ActiveDocument Dim oBaseLayer As Layer oBaseLayer = odoc.StylesManager.Layers.Item("DWG__TXT50") 'change color To red Dim oColor As Color oColor = oBaseLayer.Color oColor.Red = 0 oColor.Green = 0 oColor.Blue = 0 oBaseLayer.Color = oColor
This code will find the layer "DWG__TXT50" & change its color to Black which is great.
I want to ad an "IF" statement to this so that the code will search all Layers within idw that have in string "DWG" & change all those layers colors to Black.
For some reason I cannot find any code/api to get idw layers in an item list to interrogate them.
PLEASE HELP!! lol
Many Thanks in advance
Tim
Solved! Go to Solution.