<< Click to Display Table of Contents >> Navigation: Macros > Macro commands and parameters > Macro reporting commands > Macro write to an object > Macro command Viewcolor |
Purpose:
Colour an object in the one-line network diagram depending on macro result
General notation:
Viewcolor ( Object, Colour )
Colour is an integer value between 0 and 14, representing the colours: black, gray, lightgray, navy, blue, aqua, purple, fuchsia, green, lime, teal, maroon, red, yellow and white.
Example:
Colour cables red (12) and lines blue (4):
for(branch,a)
if(a.Sort,=,'CABLE')
viewcolor(a,12)
end
if(a.Sort,=,'LINE')
viewcolor(a,4)
end
end
See also:
•View
Back to reporting commands.