Relates to versions - All
This guide has been produced to show Alastri Products Users how to create and add Blast Custom Labels.
Custom Labels
In the Designer tab in Display panel locate Labels section and press Text dropdown: there is a preloaded list of automatic labels for the level hierarchy and reserves fields.
Adding Custom Labels
We can add to this list by configuring custom labels displaying various data and properties.
-
Select the gear icon next to the Text dropdown. This opens the configuration dialog.
-
Press the blue plus icon to add a new label.
-
Rename the label as desired.
- Paste the sample formula into the code editor.
- Press Ok to finish.
-
Select the newly added label from the Label: field dropdown. (Note that custom shadings are shown in bold orange, while standard shadings are shown in normal black).
-
To view the label, make sure you the Labels eye toggle is enabled.
Note, that you can change label’s colours and fonts by changing the default numbers.
Available Formulas:
Reserves as Numbers:
- In the Formulas tab, there is a list of available formulas. Double click on the code and paste it in the “return” row.
- Select the value in Configure Reserves as Number, "Dry Tonnes" for example.
- Press the Test button to make sure your code is correct. Any errors found will be shown in the Errors panel and won’t let you to proceed.
Reserves as Strings:
- Double click on the code and paste it in the “return” row.
-
To convert data of the “double” type to the “string” type, you’ll need to use “.ToString()” method.
-
To display a certain number of decimals in the text labels, use formats like “"#,##0.00"“.
-
To add a new line in the label, use ““\n”“.
-
To add any other text in the label, use +””…””, for example, “ + " Kt“;.
Adjusted Dry Tonnes
- Define a dryT value
- Assign DryTonnes values to dryT
- Define adjDryT as a value to show adjusted DryTonnes value
- Convert data of the “double” type to the “string” type by using “.ToString()” method
Want to learn more?
Online Help Manuals - Click here for the latest version
Learning Management System - Click here to login or here to request access
Comments
0 comments
Please sign in to leave a comment.