int cvxActiveLayerNumGet ( int* number /* O: layer number (0-255) */ ) /* DESCRIPTION: Get the activate layer number. */ ________________________________________________________________________________ int cvxActiveLayerNumSet ( int number /* I: layer number (0-255) */ ) /* DESCRIPTION: Set the activate layer. Returns 1 if error; 0 if success */ ________________________________________________________________________________ int cvxLayerActivate ( vxName Name /* I: layer name */ ) /* DESCRIPTION: Activates the specified layer so that newly-created entities are automatically assigned to it. Returns 1 if error; 0 if success, */ ________________________________________________________________________________ int cvxLayerAdd ( char *Name /* I: layer name */ ) /* DESCRIPTION: Creates a new layer with the specified name. Returns 1 if error; 0 if success, */ ________________________________________________________________________________ int cvxLayerAdd2 ( const svxLayerInfo *psLayerInfo, /* I: layer infor */ int *number /* O: layer number (0-255) */ ) /* DESCRIPTION: Create a layer entity with layer infor. Returns 1 if error; 0 if success, */ ________________________________________________________________________________ int cvxLayerAssign ( char *Name, /* I: layer name */ int numEnts, /* I: no. of entities to assign to layer */ int *idEnts /* I: list of id's of entities to assign to layer */ ) /* DESCRIPTION: Assigns the specified entities to the specified layer. Returns 1 if error; 0 if success, */ ________________________________________________________________________________ int cvxLayerDel ( vxName Name /* I: layer name */ ) /* DESCRIPTION: Deletes the specified layer. Returns 1 if error; 0 if success, */ ________________________________________________________________________________ int cvxLayerDel2 ( int number /* I: layer number (0-255) */ ) /* DESCRIPTION: Delete a layer. Returns 1 if error; 0 if success. */ ________________________________________________________________________________ int cvxLayerExists ( vxName Name /* I: layer name */ ) /* DESCRIPTION: Returns 1 if the layer exists in the active target object. Returns 0 if it does not exist. */ ________________________________________________________________________________ int cvxLayerExists2 ( int Number /* I: layer id */ ) /* DESCRIPTION: The number(layer id) must be 0-255. Returns 1 if the layer exists in the active target object. Returns 0 if it does not exist. */ ________________________________________________________________________________ int cvxLayerGetAllCategory ( int *numCate, /* O: number of categories */ vxLongName** categories /* O: name of categories */ ) /* DESCRIPTION: Get all categories in layer manager. The calling procedure MUST deallocate the output list with cvxMemFree. Returns 1 if error; 0 if success */ ________________________________________________________________________________ int cvxLayerId ( vxName name, /* I: name */ int *id /* O: layer id */ ) /* DESCRIPTION: Output the layer id of a specified name. Returns 1 if error; 0 if success, */ ________________________________________________________________________________ int cvxLayerIdModify ( int srcNumber, /* I : source layer id */ int tarNumber /* I : target layer id */ ) /* DESCRIPTION: Modify the layer id of layer and related objects ,source layer id and target layer id must be 0-255. Return 1 if the layer not be modified or error. Return 0 if success. NOTE: The function does not allow layer id 0 to be modified. */ ________________________________________________________________________________ int cvxLayerInfoExport ( vxPath file /* I: export target file full path with extension "zwlyr" */ ) /* DESCRIPTION: Export layers information to specified file. Returns 1 if error; 0 if success, */ ________________________________________________________________________________ int cvxLayerInfoGet ( int number, /* I: layer number (0-255) */ svxLayerInfo *pLayerInfo /* O: layer infor */ ) /* DESCRIPTION: Get the layer infor. Returns 1 if error; 0 if success. */ ________________________________________________________________________________ int cvxLayerInfoImport ( vxPath file, /* I: import target file full path with extension "zwlyr" */ int overWrite /* I: 1 to overwrite existing layers; 0 to append existing layers */ ) /* DESCRIPTION: Import layers information from specified file. Returns 1 if error; 0 if success, */ ________________________________________________________________________________ int cvxLayerInfoSet ( int number, /* I: layer number (0-255) */ const svxLayerInfo *pLayerInfo /* I: layer infor */ ) /* DESCRIPTION: Set the layer infor. Returns 1 if error; 0 if success. */ ________________________________________________________________________________ void cvxLayerInqActive ( vxName Name /* O: active layer name */ ) /* DESCRIPTION: Outputs the name of the active layer. */ ________________________________________________________________________________ int cvxLayerInqEnts ( int Number, /* I: layer number (0-255) */ int *numEnt, /* O: no. of entities on the specified layer */ svxEntPath **Paths /* O: pick-path list of entities on the specified layer */ ) /* DESCRIPTION: Get all entities on the specified layer. The calling procedure MUST deallocate the output list with cvxMemFree. Returns 1 if error; 0 if success */ ________________________________________________________________________________ int cvxLayerList ( int *Count, /* O: layer count */ vxName **Names /* O: list of layers */ ) /* DESCRIPTION: Outputs a list of all layers in the active part or sheet. The calling procedure must deallocate the output list. Returns 1 if error; 0 if success, */ ________________________________________________________________________________ int cvxLayerName ( int Number, /* I: layer number (0-255) */ vxName Name /* O: layer name */ ) /* DESCRIPTION: Outputs the name of the layer with the specified number. Returns 1 if error; 0 if success. */ ________________________________________________________________________________ int cvxLayerNum ( vxName Name, /* I: layer name */ int *Number /* O: layer number (0-255) */ ) /* DESCRIPTION: Outputs the number of the layer with the specified name. Outputs "Number = -1" if the layer is not found. Returns 1 if error; 0 if success. */ ________________________________________________________________________________ int cvxLayerShowAll (void) /* DESCRIPTION: Makes all layers visible. Returns 1 if error; 0 if success, */ ________________________________________________________________________________ int cvxLayerStateGet ( vxName Name, /* I: layer name */ int *isVisible, /* O: 1 = visible; 0 = blanked */ int *isFrozen /* O: 1 = frozen, 0 = not frozen */ ) /* DESCRIPTION: Gets the state of the specified layer. Returns 1 if error; 0 if success, */ ________________________________________________________________________________ int cvxLayerStateSet ( vxName Name, /* I: layer name */ int isVisible, /* I: 1 = visible, 0 = blanked, -1 = leave the same */ int isFrozen /* I: 1 = frozen, 0 = not frozen, -1 = leave the same */ ) /* DESCRIPTION: Sets the state of the specified layer. The input argument "isFrozen" can be overloaded (set it to -2) to prevent this function from logging a "LayerState" history operation to record a change in layer visibility if a part is active. In this case, the frozen status of the specified layer remains the same. Note that some history and entity selection operations are only applied to visible entities, so be careful using "isFrozen = -2". Returns 1 if error; 0 if success, */ ________________________________________________________________________________ int cvxLayerSync(void) /* DESCRIPTION: Synchronizes entity visibility with layer visibility. */ ________________________________________________________________________________