Maintain custom property definitions
For context and examples, see Custom properties.
Access custom property definition maintenance:
- On the DataBlast application menu, select Site Maintenance.
The Site Maintenance screen displays.
- Select the Mine Site > Custom Property Definitions node.
The Custom Property Definitions Maintenance ribbon menu displays.
- To filter the display of custom property definitions, select the Custom Property Target from Hole (default), Hole Pattern [All Patterns], Hole Pattern [Drill Patterns], Hole Pattern [Backfill Patterns], Hole Pattern [Charge Patterns], Hole Pattern [Blast Patterns], Hole Pattern [Initiation Patterns], Hole Pattern [Firing Patterns], Hole Pattern [Report Patterns] Hole Pattern [User Defined Patterns], Mine Block, Mine Site.
To add a custom property definition:
- On the Custom Property Definitions Maintenance ribbon menu, click Add Custom Property.
The Custom Property Definition screen displays.
- Select the Target from Hole (default), Hole Pattern [All Patterns], Hole Pattern [Drill Patterns], Hole Pattern [Backfill Patterns], Hole Pattern [Charge Patterns], Hole Pattern [Blast Patterns], Hole Pattern [Initiation Patterns], Hole Pattern [Firing Patterns], Hole Pattern [Report Patterns] Hole Pattern [User Defined Patterns], Mine Block, Mine Site.
- Select the Property Type from Standard Custom Property and CAD Print Border Item.
- Enter the Field Name as it is stored in the database. Custom property definition field names are prefixed with C_ and must be unique. Special characters are not allowed, and spaces are replaced with an underscore character.
- To add a language definition:
- Select the Language from English, Portuguese, French, Spanish and Russian.
Tip: For each custom property, add language definitions for the languages in which DataBlast Pro is viewed at your site. See Change the user interface language. If you display the DataBlast Pro user interface in a language for which you have not defined a language definition for the custom property, the Field Name, including the C_ prefix, is used as the display name.
- Enter or select the Property Grid Category. For mine blocks, hole patterns and holes, the custom property displays under this category name in the Properties Pane. For your mine site, custom properties are sorted by this category on the Mine Site Custom Properties and Site Maintenance screens. Maximum length: 50 characters.
- Enter the Property Grid Name. The display name for the property in the Properties Pane. Special characters and spaces are allowed. Default: The Field Name. Maximum length: 50 characters.
- Enter the Property Grid Description. The description to display for the property at the bottom of the Properties Pane. Maximum length: 200 characters.
- Select the Language from English, Portuguese, French, Spanish and Russian.
- Select the Data Type from:
- Boolean
- DateTime: Select a Format String from .NET date-time formats. See https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-date-and-time-format-strings.
- Decimal: Select a Format String from .NET decimal formats. See https://learn.microsoft.com/en-us/dotnet/standard/base-types/custom-numeric-format-strings.
- Geometry
- Integer: Select a Format String from .NET integer formats.
- Resource: Select the Resource Type.
- String (default)
- Select the Value Type from User-Editable Property Value and Calculated Expression Value.
- If the Value Type is User-Editable Property Value:
- If the Data Type is String, Integer or Decimal, select whether to Use Fixed Values. Use Fixed Values cannot be combined with Use Value Range or Use Value Interval.
- If Use Fixed Values is checked, configure the values:
- Click Edit List.
The Edit Fixed Values List screen displays.
- Select whether to Allow Input of 'Other' (New) Values.
- If other values are allowed, select whether to Auto-Save New Values as List Values.
If Allow Input of 'Other' (New) Values is cleared, auto-save is also cleared.
- In the List Values table, enter each allowed value in the String Value, Integer Value or Decimal Value column, depending on the selected data type.
Blank and duplicate list values cannot be saved. Before checking for duplicate string values, whitespace is trimmed and letter case is ignored.
- Select Default for one list value if required.
Only one value can be the default. If Allow Empty or Null Value is not selected and the list contains values, a default value is required. The custom property Default Value is updated from the selected list value. If empty or null values are allowed, the selection list also includes an empty value.
- To reorder the list, drag and drop values or use the up and down buttons. Click Sort List Values to sort strings alphabetically or numbers numerically.
- To edit or rename a value, change it in the List Values table.
Existing object values are not updated and continue to store the old value.
- To delete a value, select it and click Delete Selected List Value.
A value that is in use cannot be deleted.
- Click Apply.
Note: CSV and hole pattern imports write custom property values without validating them against the fixed list. Unknown imported values are not added to the fixed list.
- Click Edit List.
- If the Data Type is Integer or Decimal, select whether to Use Value Range.
- If Use Value Range is checked, enter the Lower and Upper values and select whether to Use Value Interval.
- If Use Value Interval is checked, enter the interval Step by value.
Intervals start from the lower value. The upper value can be reached only when the difference between the upper and lower values is divisible by the interval step.
- If the Data Type is Boolean, Decimal, Integer or String, select whether to Use Default Value.
- If Use Default Value is checked, enter the Default Value.
For an Integer or Decimal property, the default value and values entered for the custom property are adjusted to comply with the selected value range and interval. The numeric spinner is limited to the range and changes values by the interval step.
- Select whether to Allow Empty or Null Value.
- If Value Type is Calculated Expression Value:
- Click Edit Expression.
The Expression Editor displays.
- Create the Expression by adding fields and functions, and entering text or values as required.
Use the search filters to find value fields, functions and measurement unit converters. The filters retain their values for the current login session, and functions are grouped in the Functions Library tree. You can drag fields, functions and measurement unit converters to the required insertion point, double-click them, or click Add Field to Expression or Add Function to Expression as applicable. You can also edit the expression directly. Syntax highlighting distinguishes text strings, numeric values, function names and data field names. The colours are specified on the Display Colour tab in Local settings and apply the next time the Expression Editor is opened. See Calculated expression functions.
- To view and edit the available data for testing expressions:
- Click Edit Test Data.
The Calculated Expression Test Data screen displays.
- Edit the test data values as required. Null values can be overridden with values that are more representative of the expression.
- Click Close.
- Click Edit Test Data.
- To test the expression, click Test Expression.
The expression result displays with the value resolved for each field in the expression. Null values are explicitly labelled. If the expression returns a value that does not match the selected data type or cannot be calculated from the available test data, the Status displays an error message.
- Click Apply.
The expression is validated. If validation fails, the expression is not applied.
- Click Edit Expression.
- Click Apply.
- Click Save Changes.
To edit a custom property definition:
- Select the custom property definition.
- On the Custom Property Definitions Maintenance ribbon menu, click Edit Custom Property; or double-click the custom property.
If the custom property definition has been used in another object (for example, in the calculation expression of another custom property definition, in a hole properties export template, in a text report or in a CAD print border), a warning displays.
- Edit the custom property definition as required.
- Click Apply.
- Click Save Changes.
To duplicate a custom property definition:
- Select the custom property definition.
- On the Custom Property Definitions Maintenance ribbon menu, click Duplicate Custom Property.
- Edit the custom property definition as required.
- Click Apply.
- Click Save Changes.
To deactivate a custom property definition:
- Select the custom property definition.
- Uncheck Active for the custom property definition.
A confirmation message displays. If the custom property definition has been used in another object (for example, in the calculation expression of another custom property definition, in a hole properties export template, in a text report or in a CAD print border), a warning displays and the custom property definition cannot be deactivated.
- Click Yes.
- Click Save Changes.
Note: The custom property definition is marked as inactive and is hidden throughout the user interface.
To reactivate a custom property definition:
- On the Custom Property Definitions Maintenance ribbon menu, click Show Inactive Items.
Inactive custom property definitions display with strike-through text.
- Select the custom property definition.
- Check Active for the custom property definition.
If the custom property definition's name conflicts with another active custom property definition for the same target type, a warning message displays.
- If a warning message displays, resolve the name conflict:
- Click OK.
The Custom Property Definition screen displays.
- Enter a unique Field Name.
- Click Apply.
- Click OK.
- Click Save Changes.
