Functions | |
| void | SPI_GEN_get_integer_information (int key, int *answer) |
| Requests system or environment information by the key intermediary (EEN_COLOR_NUMBER, EEN_LAYER_NUMBER ...) | |
| void | SPI_GEN_get_information (int key, std::string &answer) |
| Requests system or environment information by the key intermediary (SSY_DATE, SSY_HOUR, SEN_PART_NAME ...) | |
| int | SPI_GEN_get_type_plane (int planeNb) |
| Reads the type of plane. | |
| void | SPI_GEN_get_date_hour_format (std::string &strDate, std::string &strHour, int format, int sep, int year, int mLet, int dLet, int flagSec) |
| Requests the current date and time in the desired format. | |
| void | SPI_GEN_read_message (int verNb, int messNb, std::string &mess) |
| Reads the message contained in the file MSG_PROC.DAT. | |
| void | SPI_GEN_call_box_error (const std::string &mess) |
| Displays an error message dialog. | |
| void | SPI_GEN_call_box_warning (const std::string &mess) |
| Displays a warning dialog. | |
| int | SPI_GEN_exit_all () |
| Completely stops PASCAL execution. | |
| int | SPI_GEN_close_debug_window () |
| Closes debug window. | |
| int | SPI_GEN_exit () |
| Stops PASCAL execution. | |
| void | SPI_GEN_new_part () |
| Resets the part (=NEW) | |
| void | SPI_GEN_write_next_file (const std::string &fileName) |
| Writes the name of SPI file to be autorun after the end of the current SPI. | |
| int | SPI_GEN_read_name_layer (int layerNb, std::string &familyName, std::string &layerName) |
| Reads the family name and the layer name by its numerical value. | |
| int | SPI_GEN_write_name_layer (int idx, const std::string &name) |
| writes the name of a layer defined by its index | |
| int | SPI_GEN_Color_RGB_to_Integer (int r, int g, int b) |
| Converts RGB color to an integer value. | |
| void | SPI_GEN_read_docxls_message (int messNb, std::string &mess) |
| Reads the message contained in file MSG_DOCX.DAT. | |
| void | SPI_GEN_read_msgmess (int verNb, int messNb, std::string &mess) |
| Reads the message contained in file MSG_MESS.DAT. | |
| void | SPI_GEN_read_panmess (int verNb, int messNb, std::string &mess) |
| Reads the message contained in file MSG_PANE.DAT. | |
| void | SPI_GEN_read_user_message (int mesNb, std::string &mess) |
| Reads the message contained in file open with SPI_GEN_load_user_msgfile. | |
| int | SPI_GEN_load_user_msgfile (const std::string &dir, const std::string &name) |
| Opens a user message file. | |
| void | SPI_GEN_call_browser (const std::string &sAdr, const std::string &sFile) |
| Calls an application to open the file. | |
| void | SPI_GEN_call_system (const std::string &cmd) |
| Calls and executes the system command in DOS window. | |
| void | SPI_GEN_call_program (const std::string &adr, const std::string &prog, const std::string ¶m) |
| Calls and executes a program without opening a DOS window. useful for executables, not for DOS commands or BATCH commands. | |
| void | SPI_GEN_call_program_show (const std::string &adr, const std::string &prog, const std::string ¶m, int show) |
| Calls and executes a program without opening a DOS window, with visibility choice mode useful for executables, not for DOS commands or BATCH commands. | |
| void | SPI_GEN_call_program_show_wait (const std::string &adr, const std::string &prog, const std::string ¶m, int show) |
| Calls and executes a program without opening a DOS window, with visibility choice mode and wait for end of program useful for executables, not for DOS commands or BATCH commands. | |
| void | SPI_GEN_call_program_wait (const std::string &adr, const std::string &prog, const std::string ¶m) |
| Calls and executes a program without opening a DOS window and wait for end of program useful for executables, not for DOS commands or BATCH commands. | |
| int | SPI_GEN_export_rtf_ncfile (const std::string &sAdr, const std::string &sFile) |
| Creates an RTF file with informations about operation list and iso file. | |
| int | SPI_GEN_set_information (int key, const std::string &value) |
| Modifies GO2cam working directories or PartName. | |
| void | SPI_GEN_set_integer_information (int key, int value) |
| Writes system information in GO2cam according to the key (EEN_COLOR_NUMBER, EEN_LAYER_NUMBER, ...) | |
| void | SPI_GEN_get_real_information (int key, double *answer) |
| Requests GO2cam information via a key. | |
| void | SPI_GEN_set_real_information (int key, double value) |
| Write GO2cam information via a key. | |
| int | SPI_GEN_select_information (int typTec, int index) |
| Selects a tool or machine structure index for SPI_GEN_get. | |
| int | SPI_GEN_test_option_validity (int option) |
| Tests if an option is available in current licence. | |
| int | SPI_GEN_test_bit_validity (int bitNumber) |
| Tests if a bit is active in current licence. | |
| int | SPI_GEN_test_specif_bit_validity (int bitNumber) |
| Tests if a specific bit is active in current licence. | |
| void | SPI_GEN_get_system_variable (const std::string &varName, std::string &contents) |
| Reads the contents of a Windows system variable. | |
| void | SPI_GEN_calculate_numerical_value (const std::string &string, double *value, int *error) |
| Calculates the numerical value from a mathematical string. | |
| int | SPI_GEN_get_information_part (int ind, std::string &answer) |
| Retrieves informations from the part ( See "Info version" in GO2cam) | |
| int | SPI_GEN_write_information_part (int ind, const std::string &answer) |
| Writes information in the part. | |
| int | SPI_GEN_get_angle_plane (int planeNb, double *ang1, double *ang2) |
| Reads machining plane angles. | |
| void | SPI_GEN_prepare_reexecution (int reexecType) |
| Prepares the part reexecution. The reexecution is done just after the macro in Pascal In VB, Delphi ... it runs directly. | |
| int | SPI_GEN_read_current_module () |
| Reads current running module. | |
| int | SPI_GEN_show_solids () |
| Displays solids (works only with layout design module) | |
| int | SPI_GEN_hide_solids () |
| Hides solids (works only with layout design module) | |
| void | SPI_GEN_show_meshs (int show) |
| Displays meshs. | |
| void | SPI_GEN_cancel_current_function () |
| Stops current excuting function in GO2cam. | |
| void | SPI_GEN_format_CnFileName_oem (std::string &sVal) |
| get cn filename with oem format (necessary when use of SDENT_SPECIAL_PROGRAM_NC | |
| void | SPI_GEN_get_integer_oem (int id, int *iVal) |
| Reads integers informations by a key in OEM. | |
| void | SPI_GEN_get_real_oem (int id, double *rVal) |
| Reads reals informations by a key in OEM. | |
| void | SPI_GEN_get_string_oem (int id, std::string &sVal) |
| Reads string informations by a key in OEM. | |
| void | SPI_GEN_set_string_oem (int id, const std::string &sVal) |
| Writes string informations by a key in OEM. | |
| int | SPI_GEN_select_element_oem (int eltNb) |
| Selects a tooth element for getting values (Tooth ..) | |
| void | SPI_GEN_get_partori_oem (double *ori) |
| Reads OEM current stock position. | |
| int | SPI_GEN_select_part_oem (int stockNb) |
| Selects a stock for reading specifics values. | |
| void | SPI_GEN_set_NC_format (const std::string &Sformat) |
| Sets up NC format éditor used by post-processor. | |
| void | SPI_GEN_export_file_information_oem (const std::string &dirName) |
| Exports info file for an OEM. | |
| void | SPI_GEN_get_nb_elements_on_stock_oem (int *number) |
| Reads number of teeth elements. | |
| int | SPI_GEN_get_polyline_element_oem (int iCase, int ptmaxNb, int *listTeethTabIdx) |
| Reads points of tooth polygon. | |
| int | SPI_GEN_get_list_elements_group_oem (int *listTeethTabIdx) |
| Reads the list of teeth from the same group as the current tooth. | |
| int | SPI_GEN_get_list_teeth_oem (int *listTeethTabIdx) |
| Reads the list of teeth from the same group as the current tooth. | |
| int | SPI_GEN_get_list_stocks_oem (int *listStockTabIdx) |
| Read stocks list. | |
| int | SPI_GEN_get_list_connectors_oem (int *listConnectorsTabIdx) |
| Reads connector list. | |
| int | SPI_GEN_get_list_dent_oem (int *listTeethTabIdx) |
| Reads the list of teeth from the same group as the current tooth. | |
| int | SPI_GEN_get_list_brut_oem (int *listStockTabIdx) |
| Reads stocks list. | |
| int | SPI_GEN_get_list_connecteurs_oem (int *listConnectorsTabIdx) |
| Reads connectors list. | |
| int | SPI_GEN_get_adr_elmt_array (int pos, int tabNb) |
| Reads an integer element of the array. | |
| int | SPI_GEN_clear_user_curve_oem (int toothDbIdx) |
| Removes all user curves from a tooth. | |
| int | SPI_GEN_add_user_curve_oem (int toothDbIdx, int curveDbIdx) |
| Adds a user curve on a tooth. | |
| int | SPI_GEN_get_real_machine_position_oem (int iPosition, double *position) |
| Get the XYZ coordinates of the i-th position. | |
| void | SPI_GEN_get_mass_unit (int *unit) |
| Get mass unit. | |
| void | SPI_GEN_set_mass_unit (int unit) |
| Set mass unit. | |
| void | SPI_GEN_get_angle_unit (int *unit, int *decimalNb) |
| Get unit angle. | |
| void | SPI_GEN_set_angle_unit (int unit, int decimalNb) |
| Set unit angle. | |
| void | SPI_GEN_get_length_unit (double *factorToMM, int *decimalNb, int *bFractional) |
| Get length unit. | |
| void | SPI_GEN_set_length_unit (double factorToMM, int decimalNb, int bFractional) |
| Set length unit. | |
| void | SPI_GEN_set_machining_unit (int meter, int decimalNb) |
| Set machining units. | |
Miscellaneous
| int SPI_GEN_add_user_curve_oem | ( | int | toothDbIdx, |
| int | curveDbIdx ) |
Adds a user curve on a tooth.
| [in] | toothDbIdx | position of the tooth in database |
| [in] | curveDbIdx | position of the curve in database |
| void SPI_GEN_calculate_numerical_value | ( | const std::string & | string, |
| double * | value, | ||
| int * | error ) |
Calculates the numerical value from a mathematical string.
| [in] | string | mathematical string |
| [out] | value | Calculated value |
| [out] | error |
|
| void SPI_GEN_call_box_error | ( | const std::string & | mess | ) |
Displays an error message dialog.
| [in] | mess | Message to display |
| void SPI_GEN_call_box_warning | ( | const std::string & | mess | ) |
Displays a warning dialog.
| [in] | mess | Message to display |
| void SPI_GEN_call_browser | ( | const std::string & | sAdr, |
| const std::string & | sFile ) |
Calls an application to open the file.
| [in] | sAdr | file directory |
| [in] | sFile | file name |
| void SPI_GEN_call_program | ( | const std::string & | adr, |
| const std::string & | prog, | ||
| const std::string & | param ) |
Calls and executes a program without opening a DOS window.
useful for executables, not for DOS commands or BATCH commands.
| [in] | adr | address of the executable, empty if in the GO2cam root directory |
| [in] | prog | executable file name |
| [in] | param | executable parameters |
| void SPI_GEN_call_program_show | ( | const std::string & | adr, |
| const std::string & | prog, | ||
| const std::string & | param, | ||
| int | show ) |
Calls and executes a program without opening a DOS window, with visibility choice mode
useful for executables, not for DOS commands or BATCH commands.
| [in] | adr | address of the executable, empty if in the GO2cam root directory |
| [in] | prog | executable file name |
| [in] | param | executable parameters |
| [in] | show | window executable visibility
|
| void SPI_GEN_call_program_show_wait | ( | const std::string & | adr, |
| const std::string & | prog, | ||
| const std::string & | param, | ||
| int | show ) |
Calls and executes a program without opening a DOS window, with visibility choice mode
and wait for end of program
useful for executables, not for DOS commands or BATCH commands.
| [in] | adr | address of the executable, empty if in the GO2cam root directory |
| [in] | prog | executable file name |
| [in] | param | executable parameters |
| [in] | show | window executable visibility
|
| void SPI_GEN_call_program_wait | ( | const std::string & | adr, |
| const std::string & | prog, | ||
| const std::string & | param ) |
Calls and executes a program without opening a DOS window and wait for end of program
useful for executables, not for DOS commands or BATCH commands.
| [in] | adr | address of the executable, empty if in the GO2cam root directory |
| [in] | prog | executable file name |
| [in] | param | executable parameters |
| void SPI_GEN_call_system | ( | const std::string & | cmd | ) |
Calls and executes the system command in DOS window.
| [in] | cmd | system command to execute |
| void SPI_GEN_cancel_current_function | ( | ) |
Stops current excuting function in GO2cam.
| int SPI_GEN_clear_user_curve_oem | ( | int | toothDbIdx | ) |
Removes all user curves from a tooth.
| [in] | toothDbIdx | position of the tooth in database -1 => clear All curves in All teeth |
| int SPI_GEN_close_debug_window | ( | ) |
Closes debug window.
| int SPI_GEN_Color_RGB_to_Integer | ( | int | r, |
| int | g, | ||
| int | b ) |
Converts RGB color to an integer value.
| int SPI_GEN_exit | ( | ) |
| int SPI_GEN_exit_all | ( | ) |
| void SPI_GEN_export_file_information_oem | ( | const std::string & | dirName | ) |
Exports info file for an OEM.
| [in] | dirName | file directory |
| int SPI_GEN_export_rtf_ncfile | ( | const std::string & | sAdr, |
| const std::string & | sFile ) |
Creates an RTF file with informations about operation list and iso file.
| [in] | sAdr | file adress |
| [in] | sFile | file name |
| void SPI_GEN_format_CnFileName_oem | ( | std::string & | sVal | ) |
get cn filename with oem format (necessary when use of SDENT_SPECIAL_PROGRAM_NC
| [out] | sVal | cn filename |
| int SPI_GEN_get_adr_elmt_array | ( | int | pos, |
| int | tabNb ) |
Reads an integer element of the array.
| [in] | pos | position in array |
| [in] | tabNb | array number |
| int SPI_GEN_get_angle_plane | ( | int | planeNb, |
| double * | ang1, | ||
| double * | ang2 ) |
Reads machining plane angles.
| [in] | planeNb | Index of the GO2cam plane |
| [out] | ang1 | 1er angle of plane |
| [out] | ang2 | 2eme angle of plane |
| void SPI_GEN_get_angle_unit | ( | int * | unit, |
| int * | decimalNb ) |
Get unit angle.
| [out] | unit | unit angle among the values : SPI_ANGLE_DEGRE SPI_ANGLE_DMS SPI_ANGLE_RADIAN SPI_ANGLE_GRADE |
| [out] | decimalNb | number of decimals |
| void SPI_GEN_get_date_hour_format | ( | std::string & | strDate, |
| std::string & | strHour, | ||
| int | format, | ||
| int | sep, | ||
| int | year, | ||
| int | mLet, | ||
| int | dLet, | ||
| int | flagSec ) |
Requests the current date and time in the desired format.
| [in] | format |
|
| [in] | sep |
|
| [in] | year |
|
| [in] | mLet |
|
| [in] | dLet |
|
| [in] | flagSec |
|
| [out] | strDate | date with format |
| [out] | strHour | hour with format |
| void SPI_GEN_get_information | ( | int | key, |
| std::string & | answer ) |
Requests system or environment information by
the key intermediary (SSY_DATE, SSY_HOUR, SEN_PART_NAME ...)
| [in] | key | keyword Availables keywords are :
|
| [out] | answer | answer to the request |
| int SPI_GEN_get_information_part | ( | int | ind, |
| std::string & | answer ) |
Retrieves informations from the part ( See "Info version" in GO2cam)
| [in] | ind | line index to read |
| [out] | answer | comment read from the part |
| void SPI_GEN_get_integer_information | ( | int | key, |
| int * | answer ) |
Requests system or environment information by
the key intermediary (EEN_COLOR_NUMBER, EEN_LAYER_NUMBER ...)
| [in] | key | request keywords
|
| [out] | answer | answer to the request |
| void SPI_GEN_get_integer_oem | ( | int | id, |
| int * | iVal ) |
Reads integers informations by a key in OEM.
| [in] | id | integer ident
|
| [out] | iVal | integer value |
| void SPI_GEN_get_length_unit | ( | double * | factorToMM, |
| int * | decimalNb, | ||
| int * | bFractional ) |
Get length unit.
| [out] | factorToMM | : conversion factor to millimeter |
| [out] | decimalNb | : number of decimals |
| [out] | bFractional | : SPI_YES / SPI_NO to tell if imperial dimension uses fraction |
| int SPI_GEN_get_list_brut_oem | ( | int * | listStockTabIdx | ) |
Reads stocks list.
| [out] | listStockTabIdx | allocated table index containing the list of stocks |
| int SPI_GEN_get_list_connecteurs_oem | ( | int * | listConnectorsTabIdx | ) |
Reads connectors list.
| [out] | listConnectorsTabIdx | allocated array index containing the list of connectors |
| int SPI_GEN_get_list_connectors_oem | ( | int * | listConnectorsTabIdx | ) |
Reads connector list.
| [out] | listConnectorsTabIdx | allocated array index containing the list of connectors |
| int SPI_GEN_get_list_dent_oem | ( | int * | listTeethTabIdx | ) |
Reads the list of teeth from the same group as the current tooth.
| [out] | listTeethTabIdx | index of the allocated table containing the list of teeth |
| int SPI_GEN_get_list_elements_group_oem | ( | int * | listTeethTabIdx | ) |
Reads the list of teeth from the same group as the current tooth.
| [out] | listTeethTabIdx | index of the allocated table containing the list of teeth |
| int SPI_GEN_get_list_stocks_oem | ( | int * | listStockTabIdx | ) |
Read stocks list.
| [out] | listStockTabIdx | allocated table index containing the list of stocks |
| int SPI_GEN_get_list_teeth_oem | ( | int * | listTeethTabIdx | ) |
Reads the list of teeth from the same group as the current tooth.
| [out] | listTeethTabIdx | index of the allocated table containing the list of teeth |
| void SPI_GEN_get_mass_unit | ( | int * | unit | ) |
Get mass unit.
| [out] | unit | unit among following values : SPI_MASS_MICROGRAM SPI_MASS_MILIGRAM SPI_MASS_CENTIGRAM SPI_MASS_DECIGRAM SPI_MASS_GRAM SPI_MASS_DECAGRAM SPI_MASS_HECTOGRAM SPI_MASS_KILOGRAM SPI_MASS_TONNE SPI_MASS_OUNCE SPI_MASS_POUND |
| void SPI_GEN_get_nb_elements_on_stock_oem | ( | int * | number | ) |
Reads number of teeth elements.
| [out] | number | number of teeth |
| void SPI_GEN_get_partori_oem | ( | double * | ori | ) |
Reads OEM current stock position.
| [out] | ori | stock coordinates |
| int SPI_GEN_get_polyline_element_oem | ( | int | iCase, |
| int | ptmaxNb, | ||
| int * | listTeethTabIdx ) |
Reads points of tooth polygon.
| [in] | iCase |
|
1:polygon offset
| [in] | ptmaxNb | maximum number of points |
| [out] | listTeethTabIdx | index of the allocated table containing the list of points |
| void SPI_GEN_get_real_information | ( | int | key, |
| double * | answer ) |
Requests GO2cam information via a key.
| [in] | key | request keywords Availables keywords are :
|
| [out] | answer | answer to the request |
| int SPI_GEN_get_real_machine_position_oem | ( | int | iPosition, |
| double * | position ) |
Get the XYZ coordinates of the i-th position.
| [in] | iPosition | the machine position |
| [out] | position | the XYZ coordiante |
| void SPI_GEN_get_real_oem | ( | int | id, |
| double * | rVal ) |
Reads reals informations by a key in OEM.
| [in] | id | integer ident
|
| [out] | rVal | real value |
| void SPI_GEN_get_string_oem | ( | int | id, |
| std::string & | sVal ) |
Reads string informations by a key in OEM.
| [in] | id | integer ident
|
| [out] | sVal | string info |
| void SPI_GEN_get_system_variable | ( | const std::string & | varName, |
| std::string & | contents ) |
Reads the contents of a Windows system variable.
| [in] | varName | variable name |
| [out] | contents | content of the variable |
| int SPI_GEN_get_type_plane | ( | int | planeNb | ) |
Reads the type of plane.
| [in] | planeNb | index of the GO2cam plane |
Type of plane :
| int SPI_GEN_hide_solids | ( | ) |
Hides solids (works only with layout design module)
| int SPI_GEN_load_user_msgfile | ( | const std::string & | dir, |
| const std::string & | name ) |
Opens a user message file.
| [in] | dir | directory |
| [in] | name | file name |
| void SPI_GEN_new_part | ( | ) |
| void SPI_GEN_prepare_reexecution | ( | int | reexecType | ) |
Prepares the part reexecution. The reexecution is done just after the macro in Pascal
In VB, Delphi ... it runs directly.
| [in] | reexecType | 1 total reexecution 2 partial reexecution geometry 3 partial reexecution machining cycles |
| int SPI_GEN_read_current_module | ( | ) |
Reads current running module.
| void SPI_GEN_read_docxls_message | ( | int | messNb, |
| std::string & | mess ) |
Reads the message contained in file MSG_DOCX.DAT.
| [in] | messNb | message number |
| [out] | mess | message read (CH80) |
| void SPI_GEN_read_message | ( | int | verNb, |
| int | messNb, | ||
| std::string & | mess ) |
Reads the message contained in the file MSG_PROC.DAT.
| [in] | verNb | message version number |
| [in] | messNb | message number |
| [out] | mess | message read (CH80) (empty if not found) |
| void SPI_GEN_read_msgmess | ( | int | verNb, |
| int | messNb, | ||
| std::string & | mess ) |
Reads the message contained in file MSG_MESS.DAT.
| [in] | verNb | message version number Values for Nover :
|
| [in] | messNb | message number |
| [out] | mess | message read (CH255) |
| int SPI_GEN_read_name_layer | ( | int | layerNb, |
| std::string & | familyName, | ||
| std::string & | layerName ) |
Reads the family name and the layer name by its numerical value.
| [in] | layerNb | layer number |
| [out] | familyName | layer group name |
| [out] | layerName | layer name |
| void SPI_GEN_read_panmess | ( | int | verNb, |
| int | messNb, | ||
| std::string & | mess ) |
Reads the message contained in file MSG_PANE.DAT.
| [in] | verNb | message version number |
| [in] | messNb | message number |
| [out] | mess | message read (CH255) |
| void SPI_GEN_read_user_message | ( | int | mesNb, |
| std::string & | mess ) |
Reads the message contained in file open with SPI_GEN_load_user_msgfile.
| [in] | mesNb | message number |
| [out] | mess | message read (CH80) |
| int SPI_GEN_select_element_oem | ( | int | eltNb | ) |
Selects a tooth element for getting values (Tooth ..)
| [in] | eltNb | element number (1..n) |
| int SPI_GEN_select_information | ( | int | typTec, |
| int | index ) |
Selects a tool or machine structure index for SPI_GEN_get.
| [in] | typTec | TEC_ATTACHE tool holder TEC_TOURELLE machine turret TEC_OUTFIX machine fixed tool TEC_JAUGE machine gauge |
| [in] | index |
| int SPI_GEN_select_part_oem | ( | int | stockNb | ) |
Selects a stock for reading specifics values.
| [in] | stockNb | stock number (1..n) |
| void SPI_GEN_set_angle_unit | ( | int | unit, |
| int | decimalNb ) |
Set unit angle.
| [in] | unit | unit angle among the values : SPI_ANGLE_DEGRE SPI_ANGLE_DMS SPI_ANGLE_RADIAN SPI_ANGLE_GRADE |
| [in] | decimalNb |
| int SPI_GEN_set_information | ( | int | key, |
| const std::string & | value ) |
Modifies GO2cam working directories or PartName.
| [in] | key | keyword See the file RES_ISPI.DAT
|
| [in] | value | value to assign |
| void SPI_GEN_set_integer_information | ( | int | key, |
| int | value ) |
Writes system information in GO2cam according to the key (EEN_COLOR_NUMBER, EEN_LAYER_NUMBER, ...)
| [in] | key | request keywords Availables keywords are :
|
| [in] | value | integer value of the key |
| void SPI_GEN_set_length_unit | ( | double | factorToMM, |
| int | decimalNb, | ||
| int | bFractional ) |
Set length unit.
| [in] | factorToMM | : conversion factor to millimeter |
| [in] | decimalNb | : number of decimals |
| [in] | bFractional | : SPI_YES / SPI_NO to tell if imperial dimension uses fraction |
| void SPI_GEN_set_machining_unit | ( | int | meter, |
| int | decimalNb ) |
Set machining units.
| [in] | meter | : SPI_YES / SPI_NO (imperial) |
| [in] | decimalNb | : number of decimals used only if unit change |
| void SPI_GEN_set_mass_unit | ( | int | unit | ) |
Set mass unit.
| [in] | unit | unit among following values : SPI_MASS_MICROGRAM SPI_MASS_MILIGRAM SPI_MASS_CENTIGRAM SPI_MASS_DECIGRAM SPI_MASS_GRAM SPI_MASS_DECAGRAM SPI_MASS_HECTOGRAM SPI_MASS_KILOGRAM SPI_MASS_TONNE SPI_MASS_OUNCE SPI_MASS_POUND |
| void SPI_GEN_set_NC_format | ( | const std::string & | Sformat | ) |
Sets up NC format éditor used by post-processor.
| [in] | Sformat | label to identify format |
| void SPI_GEN_set_real_information | ( | int | key, |
| double | value ) |
Write GO2cam information via a key.
| [in] | key | request keywords Availables keywords are :
|
| [in] | value | real value of the key |
| void SPI_GEN_set_string_oem | ( | int | id, |
| const std::string & | sVal ) |
Writes string informations by a key in OEM.
| [in] | id | integer ident
|
| [out] | sVal | string info |
| void SPI_GEN_show_meshs | ( | int | show | ) |
Displays meshs.
| [in] | show | integer 0 => hide, 1 => show |
| int SPI_GEN_show_solids | ( | ) |
Displays solids (works only with layout design module)
| int SPI_GEN_test_bit_validity | ( | int | bitNumber | ) |
Tests if a bit is active in current licence.
| [in] | bitNumber | bit number to test |
| int SPI_GEN_test_option_validity | ( | int | option | ) |
Tests if an option is available in current licence.
| [in] | option | option to test 1 => MTE |
| int SPI_GEN_test_specif_bit_validity | ( | int | bitNumber | ) |
Tests if a specific bit is active in current licence.
| [in] | bitNumber | specific bit number to test |
| int SPI_GEN_write_information_part | ( | int | ind, |
| const std::string & | answer ) |
Writes information in the part.
| [in] | ind | line index to write (If ind does not exist => add) |
| [in] | answer | comment to write |
| int SPI_GEN_write_name_layer | ( | int | idx, |
| const std::string & | name ) |
writes the name of a layer defined by its index
| [in] | idx | layer number |
| [in] | name | layer name |
| void SPI_GEN_write_next_file | ( | const std::string & | fileName | ) |
Writes the name of SPI file to be autorun after the end of the
current SPI.
| [in] | fileName | SPI file name (ie:'TEST.SPI' ) |