Flash Drawing Control

Highlight a Flash drawing by numeric ranges

Technologies > User Interface Add-Ins> Flash Drawing Views > Thematically Highlight by Range 

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 vacancy. This pattern is then replaced by a custom rule set highlighting by room area range. 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.area", "80", "CC6633", "<=", "Small");
ruleset.appendRule("rm.area", "150", "CC9933", "<=", "Medium");
ruleset.appendRule("rm.area", "250", "CCCC33", "<=", "Large");
ruleset.appendRule("rm.area", "250", "CCFF33", ">", "", false, true);
this.areaRangesDrawing_cadPanel.appendRuleSet("areaRangesDrawing_highlightVacantRoomsDs", 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-area-ranges-drawing.axvw

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