next up previous contents index
Next: Current Transform Up: Geometry Editing Functions 1 Previous: General Editing   Contents   Index

Cells

(int) ClearCell(undoable, layer_list)
This function will clear the content of the present mode (electrical or physical) part of the current cell. If the first argument is nonzero, the deletions will be added to the internal undo list, otherwise not. The latter is more efficient, though this makes the deletions irreversible. The second argument, if null or empty, indicates that all objects on all layers will be deleted, including subcells. Otherwise this can be set to a string containing a space-separated list of layer names, following an optional special character `!' or `^' which must be the first character in the string if used. If the special character does not appear, the deletions apply only to the layers listed. If the special character appears, the deletions apply only to the layers not listed. Recall that the internal name for the layer that contains subcels ls ``$$'', thus for example using ``! $$'' would delete all geometry but retain the subcells.

The return value is the number of objects deleted.

(int) CopyCell(name, newname)
This function will copy the cell in memory named name to newname. The function returns 1 if the operation was successful, 0 otherwise. The name cell must exist in memory, and the newname can not clash with an existing cell or library device.

(int) RenameCell(oldname, newname)
This function will rename the cell in memory named oldname to newname, and update all references. The function returns 1 if the operation was successful, 0 otherwise. The oldname cell must exist in memory, and the newname can not clash with an existing cell or library device.


next up previous contents index
Next: Current Transform Up: Geometry Editing Functions 1 Previous: General Editing   Contents   Index
Stephen R. Whiteley 2012-04-01