Required Functions for CAM Library. More...
Functions | |
| int | camlib_Initialize (int argc, char *argv[]) |
| Initializes CAM Library. More... | |
| int | camlib_Initialize_SessionID (int argc, char *argv[], char *sTempFolder) |
| Initializes CAM Library using a defined temporary folder. Assigning a temporary folder can be helpful to avoid file/folder conflicts when running multiple processes of CAM Library simultaneously. This must be the first API function call for CAM Library (or camlib_Initialize), and it is required. The temporary folder must be an absolute path (i.e full-path). More... | |
| int | camlib_ActivateImport () |
| Starts the CAM Library Import Engine. More... | |
| int | camlib_ActivateCell (char *value) |
| Sets the Top Cell used to activate (i.e make current). Either camlib_ActivateCellFlattenHierarchy or camlib_ActivateCell function is Required. More... | |
| int | camlib_ActivateCellFlattenHierarchy (char *value) |
| Activates the Top Cell and flattens all hierarchy (if any). Either camlib_ActivateCellFlattenHierarchy or camlib_ActivateCell function is Required. More... | |
| int | camlib_ActivateExport () |
| Starts the CAM Library Export Engine. This function is only necessary when exporting to an external file. More... | |
| int | camlib_Finalize () |
| Free all memory used by CAM Library. camlib_Finalize is Required. More... | |
| int | camlib_SaveActiveCell () |
| Save active cell. More... | |
| int | camlib_VerifyLicense (char *value) |
| Assigns your license key to CAM Library. More... | |
| int | camlib_VerifyLicenseFile (char *value) |
| Assigns your license file to CAM Library. More... | |
| int | camlib_VerifyActivationCode (char *value) |
| Assigns your Activation Code to CAM Library. More... | |
| int | camlib_SaveWorkspace (char *value) |
| Save design to an external file (*.wrk) More... | |
| int | camlib_OpenWorkspace (char *value) |
| Open a workspace file (*.wrk) More... | |
Required Functions for CAM Library.
| int camlib_ActivateCell | ( | char * | value | ) |
Sets the Top Cell used to activate (i.e make current). Either camlib_ActivateCellFlattenHierarchy or camlib_ActivateCell function is Required.
Sample C++ Code:
Sample Node.js Code:
| value | Name of cell to activate. |
| int camlib_ActivateCellFlattenHierarchy | ( | char * | value | ) |
Activates the Top Cell and flattens all hierarchy (if any). Either camlib_ActivateCellFlattenHierarchy or camlib_ActivateCell function is Required.
Sample C++ Code:
Sample Node.js Code:
| value | Name of cell to activate. |
| int camlib_ActivateExport | ( | ) |
Starts the CAM Library Export Engine. This function is only necessary when exporting to an external file.
| int camlib_ActivateImport | ( | ) |
Starts the CAM Library Import Engine.
| int camlib_Finalize | ( | ) |
Free all memory used by CAM Library. camlib_Finalize is Required.
| int camlib_Initialize | ( | int | argc, |
| char * | argv[] | ||
| ) |
Initializes CAM Library.
This must be the first API function call for CAM Library (or camlib_Initialize_SessionID), and it is required.
Sample C++ Code:
Sample Node.js Code:
| argc | Number of arguments. |
| argv | Argument variables. |
| int camlib_Initialize_SessionID | ( | int | argc, |
| char * | argv[], | ||
| char * | sTempFolder | ||
| ) |
Initializes CAM Library using a defined temporary folder. Assigning a temporary folder can be helpful to avoid file/folder conflicts when running multiple processes of CAM Library simultaneously. This must be the first API function call for CAM Library (or camlib_Initialize), and it is required. The temporary folder must be an absolute path (i.e full-path).
IMPORTANT: When using camlib_Initialize_SessionID(), you are responsible for the following:
Sample C++ Code:
Sample Node.js Code:
| argc | Number of arguments. |
| argv | Argument variables. argv[0] must be the full path for CAM Library. |
| sTempFolder | Assign a specific temporary folder to avoid any conflicts with other running services. Must be full-path. |
| int camlib_OpenWorkspace | ( | char * | value | ) |
Open a workspace file (*.wrk)
| value | The file path for the workspace file. |
| int camlib_SaveActiveCell | ( | ) |
Save active cell.
Sample C++ Code:
Sample Node.js Code:
| int camlib_SaveWorkspace | ( | char * | value | ) |
Save design to an external file (*.wrk)
| value | The file path to store the workspace file. |
| int camlib_VerifyActivationCode | ( | char * | value | ) |
Assigns your Activation Code to CAM Library.
Here's a sample activation code you will receive from Numerical Innovations: CL23AG34DFJT54
Sample C++ Code:
Sample Node.js Code:
| value | License key. |
| int camlib_VerifyLicense | ( | char * | value | ) |
Assigns your license key to CAM Library.
Since the license key contains multiple lines you will need to modify the license key before sending it to camlib_VerifyLicense().
Here's a sample license key you will receive from Numerical Innovations:
You will need to modify the license key string before sending it to camlib_VerifyLicense(). Make sure that you replace \ with \\ , and make sure to add a newline character at the end of each line. See below for an example and compare the difference:
Modified License Key:
Sample C++ Code:
Sample Node.js Code:
| value | License key. |
| int camlib_VerifyLicenseFile | ( | char * | value | ) |
Assigns your license file to CAM Library.
Sample C++ Code:
Sample Node.js Code:
| value | License key file path. |