DMELRA(3g) — Subroutines
Name
DMELRA − Moves an element range within the open structure.
Operating States: PHOP, ∗, STOP, ∗
Digital PHIGS extension function
Syntax
DMELRA (EP1, EP2)
Argument Data Type Access Description
---------------------------------------------------------------------------
EP1, EP2 Integer Read Element range boundaries
--------------------------------------------------------------------------
Description
DMELRA moves the specified range of the open structure within the open structure. Regardless of the current edit mode, this function inserts the copied structure elements directly after the element indicated by the pointer. This function deletes the elements from their original position when it moves them. The pointer then points to the last structure element.
This function has the same effect as deleting all the elements in the range, then inserting those elements after the element pointer in the open structure.
The element range includes all the structure elements between and including the lower and higher element positions. Digital PHIGS uses the element with the lesser value as the lower element position, and the element with the higher value as the higher element position. Therefore, you do not need to specify the elements in order.
If an element position is greater than the total number of elements in the structure, Digital PHIGS uses the value pointing to the last element in the specified structure. If the specified element position is less than 1, Digital PHIGS uses the value 0. If both of the resulting positions are equal to 0, Digital PHIGS does not modify the open structure.
Digital PHIGS Version 3.1 does not support this function.