Your application can copy the graphics orders from a single element using the GpiQueryElement and GpiElement functions. GpiQueryElement copies the graphics orders (or part of the orders, depending on allocated size) from an element into an array of bytes. GpiQueryElement is not valid within an element bracket, nor if the drawing mode is other than DM_RETAIN.
GpiElement copies the data from the array back into the current segment. The data may not contain any begin or end element orders. GpiElement is not valid within an element bracket. The element is retained if the drawing mode is DM_RETAIN and drawn if the mode is either DM_DRAW, or DM_DRAWANDRETAIN.