It is possible to create commands using the last created item from e.g. the previously executed command using so called array indexing. This consists of an opening square bracket behind a (listable) object name, followed by an integer (a whole number) and a matching closing bracket, for example to use the last created point: Points[-1]
This integer indexing is zero-based and works on any listable object, i.e. any object on which you can fire a filter or tabulate command (examples: Points for all points, Plates for all plate objects, or Group_1 for a created group). The items in these lists are stored in the order the objects are created. Both positive and negative numbering can be used in this array indexing:
This array indexing also works for assigned user features (e.g. Plates). See this example below for PLAXIS 2D AE and notice the differences for e.g. Plates[-1] and Lines[-1].Plate:
Application of commands: Groupfiltered and Apply
[Tips and Tricks]
Macros using the commands runner