Fill ENS gaps - SmartPlant Foundation - IM Update 46 - Help - Hexagon

SmartPlant Foundation Help

Language
English
Product
SmartPlant Foundation
Search by Category
Help
SmartPlant Foundation / SDx Version
10
SmartPlant Markup Plus Version
10.0 (2019)
Smart Review Version
2020 (15.0)

The most common use for an ENS definition is to generate a unique name for a new object. Usually the ENS definition contains an ENS item of type function sequence. The sequence is incremented each time a new object is created. However, users can override the sequence generation by specifying a sequence number directly on the form.

Users can also generate a range of items based on the Number to define field. For example, if you specify a starting number of 20 and specify four items, the software allocates 20, 21, 22, and 23. If the starting number and the range are not available, the software displays an error message.

Specifying a manual sequence number can create gaps in the sequence. For example, if you generated the sequence above and the last auto-generated number was 18, there would be a gap where 19 was not being used.

To make the handling of gaps configurable, a property on the ENS item called FillGaps allows you to specify whether the software allows gaps or fills them. If this property is set to True, gaps are filled, and the software supplies the next available numbers in the range. For example, if you create four items, starting with 20, the software will provide 20, 21, 22, and 24 if 23 is already used. If the starting number is not available and this property is set to True, the software displays an error message. If the property is set to False, the whole range of numbers must be available to create the item.

The default ENS sequence start number is set to 1. To set the ENS sequence start number to 0 (zero), type -1 in the ENS sequence start number field.