Common functions used by CAM Library. More...
Functions | |
int | camlib_PathsAsPolygons () |
Converts paths (and traces) to polygons. The result will be an outlined polygon. Useful when polygons are desired for output. More... | |
int | camlib_NoStepRepeat () |
Explodes Step-Repeat (ie. arrayed data). More... | |
int | camlib_IgnoreText () |
Skips test during the loading of DXF or GDSII. More... | |
int | camlib_SetQuietMode () |
Suppresses translator information outputted to stdout. More... | |
int | camlib_UseArcs () |
Allows CAM Library engine to handle arcs. By default Arcs are not separately processed. More... | |
int | camlib_MaxPolygon (int nCount) |
Max. points used in a polygon. (default: 30,000) If a polygon has more points, then it will be sliced into smaller polygons. More... | |
int | camlib_ArcDeviation (float fSize) |
Arc approximation tolerance using millimeters (Default is: .01) More... | |
int | camlib_ArcResolution (float fDegrees) |
Arc approximation using degrees (Default is: 3) More... | |
int | camlib_Scale (float fScale) |
Scales the imported data. (default: 1.0) More... | |
int | camlib_DefaultFont (char *value) |
Use this font as the default (default: txt) More... | |
int | camlib_IgnoreFigures (int value) |
Assign figure types to be ignored before activating cell. Use -1 to disable Ignorefigures. More... | |
int | camlib_SetClipBox (float fLeft, float fBottom, float fRight, float fTop) |
Crop out just a rectangular region of the design you require. More... | |
int | camlib_IgnoreLayers (char *value) |
Assign Layer name(s) to ignore. If more than one layer separate using a comma. More... | |
int | camlib_IncludeLayers (char *value) |
Assign Layer name(s) to be used. If more than one layer separate using a comma. More... | |
int | camlib_GetUserUnits (char *value) |
Get the active user units used in CAM Library API. More... | |
int | camlib_SetUserUnits (char *value) |
Set the active user units to be used with CAM Library API's. More... | |
int | camlib_SetDatabaseExtents (char *value) |
You can actually modify the CAM Library database to handle various designs extents up to 100x100 meters. small = 1/10 nanometer accuracy. medium = 10 nanometer accuracy. large = 100 nanometer accuracy. The default value is "medium". More... | |
int | camlib_ExportArcs () |
Permits CAM Library to detect line segments (that are organized as an arc) and output as arc entities (instead of line segments). More... | |
Common functions used by CAM Library.
int camlib_ArcDeviation | ( | float | fSize | ) |
Arc approximation tolerance using millimeters (Default is: .01)
fSize | Size of Arc approximation tolerance using millimeters (Default is: .01) |
int camlib_ArcResolution | ( | float | fDegrees | ) |
Arc approximation using degrees (Default is: 3)
fDegrees | Arc resulution in Degrees |
int camlib_DefaultFont | ( | char * | value | ) |
Use this font as the default (default: txt)
value | Default font name. The font name can be one of the available font files located in the CAM Library folder ../fonts Make sure to removee the .fnt extesion. |
int camlib_ExportArcs | ( | ) |
Permits CAM Library to detect line segments (that are organized as an arc) and output as arc entities (instead of line segments).
int camlib_GetUserUnits | ( | char * | value | ) |
Get the active user units used in CAM Library API.
value | The following are the available user units: "nanometer", "micron", "millimeter", "centimeter", "meter", "inch", "mil", "dpi". |
int camlib_IgnoreFigures | ( | int | value | ) |
Assign figure types to be ignored before activating cell. Use -1 to disable Ignorefigures.
value | Figure Types to ignore - defined by CAM_FigureType. Use -1 to disable IgnoreFigures. |
int camlib_IgnoreLayers | ( | char * | value | ) |
Assign Layer name(s) to ignore. If more than one layer separate using a comma.
value | A comma separate string which contains the layer names you wish to ignore. Example: layer1,top.pho,layer23,silktop.gbr |
int camlib_IgnoreText | ( | ) |
Skips test during the loading of DXF or GDSII.
int camlib_IncludeLayers | ( | char * | value | ) |
Assign Layer name(s) to be used. If more than one layer separate using a comma.
value | A comma separate string which contains the layer names you wish to include. Example: layer1,top.pho,layer23,silktop.gbr |
int camlib_MaxPolygon | ( | int | nCount | ) |
Max. points used in a polygon. (default: 30,000) If a polygon has more points, then it will be sliced into smaller polygons.
nCount | Maximum number of points allowed per polygon. |
int camlib_NoStepRepeat | ( | ) |
Explodes Step-Repeat (ie. arrayed data).
int camlib_PathsAsPolygons | ( | ) |
Converts paths (and traces) to polygons. The result will be an outlined polygon. Useful when polygons are desired for output.
int camlib_Scale | ( | float | fScale | ) |
Scales the imported data. (default: 1.0)
fScale | Scale factor for the imported data. (default: 1.0) |
int camlib_SetClipBox | ( | float | fLeft, |
float | fBottom, | ||
float | fRight, | ||
float | fTop | ||
) |
Crop out just a rectangular region of the design you require.
fLeft | Clip design to extents Left. |
fBottom | Clip design to extents Bottom. |
fRight | Clip design to extents Right. |
fTop | Clip design to extents Top. |
int camlib_SetDatabaseExtents | ( | char * | value | ) |
You can actually modify the CAM Library database to handle various designs extents up to 100x100 meters. small = 1/10 nanometer accuracy. medium = 10 nanometer accuracy. large = 100 nanometer accuracy. The default value is "medium".
value | The following are the available database extents: "small", "medium", "large". |
int camlib_SetQuietMode | ( | ) |
Suppresses translator information outputted to stdout.
int camlib_SetUserUnits | ( | char * | value | ) |
Set the active user units to be used with CAM Library API's.
value | The following are the available user units: "nanometer", "micron", "millimeter", "centimeter", "meter", "inch", "mil", "dpi". |
int camlib_UseArcs | ( | ) |
Allows CAM Library engine to handle arcs. By default Arcs are not separately processed.