Highlighting and Labeling Multiple Assets
Highlighting and Labeling Multiple Assets
Technologies / User Interface Add-Ins / Drawing Views / Drawing that displays Multiple Asset Types
You may want a view in which you highlight multiple assets, such as highlighting rooms by room type and also highlighting furniture and equipment. For each asset you want to highlight, you define its highlight and label dataSource in the axvw file.
In the drawing panel, specify
highlightDataSource
and
labelsDataSource
properties with pattern “asset:dataSourceId;anotherAsset:anotherDataSourceId…”.
For example, the following panel will highlight and label rm and eq assets.
<panel type="drawing" id="panel_multiple_assets"
highlightDataSource="rm:ds_rm_highlight;eq:ds_eq_highlight"
labelsDataSource="rm:ds_rm_label;eq:ds_eq_label" highlightType="restriction">
</panel>
The order in which the system highlights assets is the same order as the order in
highlightDataSource
property.
You can specify different label size per asset. In
<report />
, define
labelHeight
to be something like
<report labelHeight=”rm:5;eq:1.5” />
.
With multiple assets highlighting, it’s likely you want rooms to be border-highlighted to make other assets more readable. And if you want to print out the PDF report, border highlighting also save a lot of ink. In
<report />
, you define
labelHeight
like
<report borderHighlight=”rm:5” />
(5 is the border size).
You can define a legend panel for each asset, and the display order will be the same as their defined order in axvw.
JavaScript
In JavaScript, you can dynamically pass the
highlightDataSource
,
labelsDataSource
,
labelHeight
,
borderHighlight
and
legend
info to the paginated report workflow rule API.
var pdfParameters = {};
//pass drawingName to skip core's expensive process to get it
pdfParameters.drawingName = selectedFloor.dwgName;
pdfParameters.highlightDataSource = 'rm:rmHighlightDS;eq:eqHighlightDS';
pdfParameters.labelsDataSource = 'rm:rmLabelDS;eq:eqLabelDS’;
pdfParameters.labelHeight = 'rm:3';
//required legend panel
pdfParameters.legends.required = 'panel_rmLegendDS;panel_eqLegendDS';
//show room border highlight in PDF
pdfParameters.borderHighlight='rm:5';