NumberFeatureByName.vbs

Description

This script gives selected features a name that includes a prefix and sequential numbering in the order that the features were selected starting at a specified number.  This is useful for post-processing where the feature name (rather than ID) may be used as a reference for results output, for example in a report.

Instructions

To use the script, first select a series of points, lines, surfaces or volumes.  When selecting, hold Shift on the keyboard whilst picking (single left clicking) the geometry features you are selecting.  This will add them into selection one by one in the order picked.  Then run this script via File>Script>Run Script

Notes

1.       THIS SCRIPT IS NOT PART OF LUSAS SOFTWARE AND AS SUCH IS NOT QUALITY APPROVED OR SUPPORTED. IT IS PROVIDED ON AN AS IS BASIS FOR DEMONSTRATION PURPOSES ONLY.

2.       A suffix is also included in the script but not used by default.  This can be defined by the user by editing the script.  The prefix can also easily be edited in the script if required.

3.       If the selection is of points, then these points will be named in the order selected as P1, P2, P3 and so on.

4.       If the selection is of lines, then these lines will be named in the order selected as L1, L2, L3 and so on.

5.       Similarly for surfaces or volumes if selected.