Exporting an entity set to a solver deck can lead to a very long id list.
For that reason, some users prefer to define a set of nodes or a set of elements through a combination of formulaic expressions.
This can be done in HyperMesh as explained below.
The element set, defined in this example, creates the following lines in the OptiStruct solver deck:
$HMSET 1 2 "set1" 18
$HMSETTYPE 1 "formula" 18
SET 1 ELEM LIST
+ 50 THRU 60