These functions implement a functionality similar to the !assemble command.
CGX | .cgx |
CIF | .cif |
GDSII | .gds, .str, .strm, .stream |
OASIS | .oas |
If successful, a handle to the stream control structure is returned, which can be passed to other functions which require this data type. A scalar zero is returned on error. The returned handle is used to implement processing of archive data similar to the !assemble command.
This function specifies the equivalent of a Source Block as described for the !assemble command. The StreamInstance function is used to add ``Placement Blocks''.
LayerList
UseLayerList
LayerAlias
UseLayerAlias
If needed, these variables should be set to the desired values before calling this function, then reset to the previous values after the call. This can be done with the Get and Set functions.
InCellNamePrefix
InCellNameSuffix
InToLower
InToUpper
If needed, these variables should be set to the desired values before calling this function, then reset to the previous values after the call. This can be done with the Get and Set functions.
The function returns one on success, zero otherwise with an error message probably available through GetError.
The cellname must match the name of a cell found in the source, including any aliasing in effect. There are two consequences of calling this function: the named cell and possibly its subcell hierarchy will be written to output, and if a top cell was specified (with StreamTopCell), an instance of the named cell will be placed in the top cell. The placement is governed by the x, y, my, ang, and magn arguments, which are ignored if there is no top cell.
The x,y are the translation coordinates of the cell origin. The my is a flag indicating Y-reflection before rotation. The ang is the rotation angle, in degrees, and must be a multiple of 45 degrees. The magn is the magnification factor for the placement. These apply to the instantiation only, and have no effect on the cell definitions.
The remaining arguments affect the cell definitions that are created in the output file.
0 | No empty cell filtering. |
1 | Apply pre- and post-filtering. |
2 | Apply pre-filtering only. |
3 | Apply post-filtering only. |
array[0] | X left |
array[1] | Y bottom |
array[2] | X right |
array[3] | Y top |
If an array is given, only the objects and subcells needed to render the window will be written.
The function returns one on success, zero otherwise with an error message probably available through GetError.