Command
QisLib_NewOASIS Function: int QisLib_NewOASIS(double GridValue); Inputs: GridValue: Grid value of the new OASIS file. Return: success: 0 failure: value < 0 indicating one of the following errors. Errors: -1: QisLib has not been initialized. -2: The specified value is invalid (negative). -3: This application is not licensed to work with OASIS files. -4: Internal memory failure occurred while initializing for a new OASIS file. -5: File open in progress, operation not permitted. Description: - This command starts a new database using the specified grid (unit is always micron for OASIS files). - Previously opened OASIS/GDSII file, if any, will be closed. - Usually, this call is followed by a QisLib_AddStructure call and then calls to QisLib_AddLayer, QisLib_AddBoundary, etc. To specify the current viewing cell after a cell is added, call QisLib_OpenStructure. Since the extents of a cell could be different after data is added to it, QisLib_OpenStructure can be called to calculate the new extents of the cell. Otherwise, the extents of the cell will be (0,0,0,0). - Anything added to the new file is added to memory only and can be saved to disk via a call to QisLib_SaveOASIS or QisLib_SaveOASISStructure. - All editing commands are available immediately after this call and there is no need to call QisLib_SetLoadMemory to turn ON editing mode when this function is called. Example: ... Return = QisLib_NewOASIS(0.001); // Create a new OASIS file with resolution of 0.001 micron (The units are always micron for OASIS files).References: QisLib_AddLayer QisLib_AddStructure QisLib_AddBoundary QisLib_AddPath QisLib_RoundPolygon QisLib_SaveOASIS QisLib_SaveOASISStructure |