Flash Drawing Control

Use distinct highlights for multiple selections in Flash drawings

Technologies > User Interface Add-Ins > Flash Drawing Views > Locate Employees with Distinct Highlights 

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 this example, the user can select an employee and have the employee's room highlighted with a distinct color.

Create a DwgOpts object and set the fill color to a distinct color using setFillColor()with a color value generated by gAcadColorMgr.getColorFromValue(). Then apply this fill color to the drawing by calling the highlightAssets() method from the drawing control and passing the DwgOpts object and room restriction:

var opts = new DwgOpts();
...
opts.setFillColor(gAcadColorMgr.getColorFromValue('em.em_id', row['em.em_id'], false));
View.getControl('', 'locateEmployeeDistinctColors_cadPanel').highlightAssets(opts, row);

Embed a Flash drawing in a view

Flash Drawing Control 

View: http://localhost:8080/archibus/schema/ab-products/solutions/drawing-flash/ab-locate-employee-distinct-colors-drawing.axvw

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