<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE language SYSTEM "klayout_doc.dtd">

<doc>

  <title>Flatten Cells</title>
  <keyword name="Flatten"/>
  <keyword name="Editing"/>

  <p>
  The "flatten cell" operation flattens a cell into all of it's parents.
  This basically removes a cell by promoting her shapes and instances up in the hierarchy.
  </p>

  <p>
  Cell flattening can be applied to single instances or cells as a whole.
  When applied to an instance, the individual instance is resolved into shapes. The 
  instantiated cell will still exist afterwards. When applied to a cell, the cell 
  will disappear and replaced by it's contents in all places it is used.
  </p>

  <p>
  Instance-wise flattening is available by choosing "Edit/Selection/Flatten Instances". 
  Cell-wise flattening is available by choosing "Edit/Cell/Flatten Cell" or "Flatten Cell" 
  from the cell list's context menu.
  </p>

  <p>
  The flatten operation offers some options, i.e. the number of hierarchy levels to 
  flatten and how to deal with child cells which become obsolete through this operation.
  By enabling this "prune" option, all child cells are removed when they are no longer needed.
  Otherwise, new top level cells will appear - these are the cells which are not longer instantiated.
  </p>

</doc>

