Command
QisLib_AddStructure

QisLib_AddStructure


Function:
	int QisLib_AddStructure(const char* StructName);

Inputs:
	StructName: Name of the cell to be added.

Return:
	success: 0
	failure: one of the following values :

Errors:
	-1: QisLib has not been initialized.
	-2: The specified cell name is invalid (null).
	-3: Internal memory failure occurred while adding cell.
	-4: The specified cell already exists.
	-5: The GDSII/OASIS file has not been loaded in memory.
	-6: File open in progress, operation not permitted.

Description:
	- This function adds a cell with the specified name to the existing database.
	- This cell is an empty cell and has no polygons and hence no extents.
	- This function will fail if a cell with the same name already exists in the
	database. It will also fail if the GDSII/OASIS file is not loaded into memory or if
	it was not opened as a new file using QisLib_NewGDSII/QisLib_NewOASIS.
	- This function call is usually followed by calls to QisLib_AddLayer or
	QisLib_AddBoundary or QisLib_AddPath or QisLib_AddRoundPolygon.
	- This function call does not select the newly added cell for viewing. To select the
	newly added cell (and recalculate it's extents if data are added),
	QisLib_OpenStructure must be used. However, it is better to call
	QisLib_OpenStructure after some data is added to the cell.

References:
QisLib_AddAddLayer
QisLib_AddBoundary
QisLib_AddPath
QisLib_AddRoundPolygon
QisLib_SetLoadMemory
QisLib_OpenStructure