Download Chapter 8 ick Start Manual – Viewer Mode

Transcript
Chapter 13. RBA Reference
13.10. Class Cell (version 0.21)
13.10.8 clear( integer )
Clear the shapes on the given layer.
Input:
integer
e layer index.
13.10.9 clear_insts
Clear the instance list.
13.10.10
clear_shapes
Clear all shapes in the cell.
13.10.11
copy( src, dest )
Copy the shapes from the source to the target layer.
e target layer is not overwrien. Instead, the shapes are added to the shapes of the target layer. If source
and target layer are identical, this method does nothing.
is method has been introduced in version 0.19.
Input:
src
dest
13.10.12
e layer index of the source layer.
e layer index of the destination layer.
destroy
Explicitly destroy the object.
Explicitly destroy the object on C++ side if it was owned by the Ruby interpreter. Subsequent access to
this object will throw an exception. If the object is not owned by Ruby, this method will do nothing.
13.10.13
[const] boolean destroyed
Tell, if the object was destroyed.
Return: true
false
13.10.14
yield integer each_child_cell
Iterate over all child cells.
Return: integer
13.10.15
e object was destroyed, either explicitly or by the C++ side. e laer may
happen, if the object is owned by a C++ object which got destroyed itself.
e object is still alive.
e child cell indices, not every instance.
yield Instance each_inst
Iterate over all child instances (which may actually be instance arrays).
Starting with version 0.15, this iterator delivers Instance objects, rather than CellInstArray objects.
Return: Instance
KLayout
e delivered objects as yield.
Version 0.21
183