TS. Create Custom Labels

In the Reserves tab in the Viewport Display panel locate Labels field and press its dropdown; there is a preloaded list of automatic labels for the level hierarchy and reserves fields. We can add to this list by configuring custom labels.

  1. Press the gear icon to the right of the Label dropdown.

  2. Click the blue plus icon to add a new label.

  3. Rename the label to "Record".

  4. Paste the sample formula into the code editor.

  5. Double click in the Available Formulas for code hints.

  6. Press OK to finish.

Custom Display Label

public class Label : ILabelTextProvider { public string GetLabel(RecordAndShadingContext rsc) { var name = rsc.Record.GetNames(); var mine = name[1]; var pit = name[2]; var stage = name[3]; var bench = name[4]; var blast = name[5]; return "Id: " + mine + "_" + pit + "_" + stage + "_" + bench + "_" + blast; } }