push / pop operation

Synopsis

[

]

The [ operation pushes the current shape onto the top of the shape stack. It must be matched by a succeeding ] operation, which pops the shape on top of the shape stack and deletes the shape.

Related

Examples

Push/Pop Example


Push Pop a
Lot-->
	extrude(15)
    
	r(scopeCenter, 0, 22.5, 0) X 
	r(scopeCenter, 0, 22.5, 0) X
	r(scopeCenter, 0, 22.5, 0) X
 			
In this example, the extruded shape is rotated three times and assigned to a new shape (X).

Push Pop b
Lot-->
	extrude(15)
    
	[ r(scopeCenter, 0, 22.5, 0) X ]
	[ r(scopeCenter, 0, 22.5, 0) X ]
	[ r(scopeCenter, 0, 22.5, 0) X ]
 
Encapsulating the rotations and createShape operations with a push/pop pair makes all X coincide.

Copyright ©2008-2016 Esri R&D Center Zurich. All rights reserved.