Sample SVG with Format & Rules ============================== To use **ENUM** (test/tarantatestdevice/1/dishstate) values in an rule as below, the svg element with label layer5(this could be a layer or any SVG element) will show when the **dishstate** value is Slew. .. code-block:: text rule5: { type=layer model=test/tarantatestdevice/1/dishstate layer=layer5 condition=value==Slew } Similarly we can have rule condition for attriute(short_scalar) with numerical values: .. code-block:: text rule5: { type=layer model=sys/tg_test/1/short_scalar layer=layer4 condition=(value>40 and value<60) } The below sample SVG demonstrates the usage of rules and formattings in SVG widget & synoptics. User can create as many rules with different types of attributes. .. code-block:: html model=test/tarantatestdevice/1/routingtableRouting Table model=sys/tg_test/1/long_scalar format=concat(Long Scalar: ) Long Scalar model=testdb://test/tarantatestdevice/1/dishstate format=concat(Dish State: ) Dish State model=sys/tg_test/1/short_scalar format=concat(Short Scalar: )short_scalar model=sys/tg_test/1/long_spectrum_ro format=index(10) format=numeral(0.00) format=concat(Long Spectrum[10]: ) long_spectrum_ro model=sys/tg_test/1/float_spectrum_ro format=index(10) format=numeral(0.0) float_spectrum_ro model=test/tarantatestdevice/1/processorinfo format=/temperature format=numeral(0) format=concat(temperature: ) Processor Info model=sys/tg_test/1/double_spectrum_ro format=substr(1,4) format=concat(DS[1-4]: )double_spectrum_ro model=sys/tg_test/1/double_scalar format=numeral(0.00) format=concat(Double Scalar: ) double_scalar Layer 5 Layer 4 Layer 3 Layer 2 Layer 1 rule1: { type=layer model=sys/tg_test/1/short_scalAR layer=dishtext condition=not(value>0 and value<10) } rule2: { type=layer model=sys/tg_test/1/long_scalAR layer=layer2 condition=not(value > 10 and value<20) } rule3: { type=layer model=sys/tg_test/1/short_scalaR layer=layer3 condition=not(value>20 and value<30) } rule4: { type=layer model=sys/tg_test/1/short_scalaR layer=layer4 condition=not(value >30 and value<40) } rule5: { type=layer model=test/tarantatestdevice/1/dishstate layer=layer5 condition=value==Slew } rule6: { type=css model=sys/tg_test/1/long_scalar ifcss={"stroke":"red"} elsecss={"stroke":"yellow"} condition=value > 50 } rule7: { type=css model=sys/tg_test/1/long_scalar ifcss={"fontSize":"20px"} elsecss={"fontSize":"10px"} condition=value>100 } **Note**: The quotes and <,> etc. signs are converted(",<,>) in above example since it is generated from Inkscape.