Flash Drawing Control

Highlight a Flash drawing and specify color overrides

Technologies > User Interface Add-Ins> Flash Drawing Views > Highlight and Override Default Colors 

Note: With the release of ARCHIBUS V.23.2, all ARCHIBUS views were converted to use the HTML drawing control instead of the Flash drawing control. If you have previously created views that use the Flash drawing control, the view's drawings will still work.

For new views that you create, ARCHIBUS, Inc. recommends using the HTML control, as the Flash control is slated for desupport in future versions of ARCHIBUS. For information on converting existing views with Flash drawings to HTML format, see Convert views with the Flash drawing control to the HTML drawing control.

In the example above, the drawing's original highlighting pattern is set according to room occupancy. This pattern is then replaced by a custom rule set which highlights all values above three as a single category "4 or more" and alters the color palette.

In the JavaScript, the existing highlight data source may be associated with a new rule set by calling appendRuleSet():

var ruleset = new DwgHighlightRuleSet();
ruleset.appendRule("rm.count_em", "1", "00CCFF", "==");
ruleset.appendRule("rm.count_em", "2", "0099CC", "==");
ruleset.appendRule("rm.count_em", "3", "009966", "==");
<!-- by passing true as the final argument, this value is set as the default value-->
ruleset.appendRule("rm.count_em", "4 or more", "00CC33", "==", "", false, true);
this.colorOverridesDrawing_cadPanel.appendRuleSet("colorOverridesDrawing_highlightHeadCountDs", ruleset);

For general information about incorporating a legend panel into a view,

Flash Drawing  Control

For additional information regarding rule sets,

Flash Drawing Control

View: http://localhost:8080/archibus/schema/ab-products/solutions/drawing-flash/ab-color-overrides-drawing.axvw

Copyright © 1984-2018, ARCHIBUS, Inc. All rights reserved.