Functions | |
| int | SPI_FIL_read_bin_file (const std::string &dir, const std::string &name) |
| Empties memory and loads GO2cam binary file. | |
| int | SPI_FIL_write_bin_file (const std::string &dir, const std::string &name) |
| Creates a binary GO2cam file from what is in memory. | |
| int | SPI_FIL_set_param_inp_exp_file (int param, const std::string &sVal) |
| Configures interface settings. | |
| int | SPI_FIL_import_file (const std::string &dir, const std::string &name) |
| Empties memory and imports a file The recognized files are of the following type : AUTOCAD DXF, AUTOCAD DWG, ACIS SAT, CATIA NATIF, STEP, IGES, VDA, HPGL, ISO CN, TELL 2D, ME10 MI, PTS, PRO-ENG. | |
| int | SPI_FIL_import_file_solid (const std::string &dir, const std::string &name) |
| See SPI_FIL_import_file + UI start for positioning, origin and creation of stock. | |
| int | SPI_FIL_export_file (const std::string &dir, const std::string &name) |
| Exports a file in desired format. | |
| int | SPI_FIL_update_object_fte (const std::string &dir, const std::string &name, int mode) |
| Updates an FTE object from a file. | |
| int | SPI_FIL_export_solid_stl (int indDB, int indStock, const std::string &dir, const std::string &name, int *status) |
| Creates an STL file from a designated volume. | |
| int | SPI_FIL_export_solid_iges (int indDB, int indStock, const std::string &dir, const std::string &name, int *status) |
| Creates an IGES file from a designated volume. | |
| int | SPI_FIL_export_solid_psl (int indDB, int indStock, int version, const std::string &dir, const std::string &name) |
| Creates a parasolid file (X_T) from a designated solid. | |
| int | SPI_FIL_export_solid (int indDB, int indStock, const std::string &dir, const std::string &name, int *status) |
| Creates a solid file from a designated solid. | |
| int | SPI_FIL_export_bitmap_file () |
| Exports a bitmap file using standard export funcions. | |
| int | SPI_FIL_export_bitmap_file2 (int dimX, int dimY, const std::string &folder, const std::string &name) |
| Exports bitmap file. Bitmap is centered on screen. | |
| int | SPI_FIL_export_bitmap_file3 (int dimX, int dimY, const std::string &folder, const std::string &name, int colorId) |
| Exports bitmap file. Bitmap is centered on screen. | |
| int | SPI_FIL_export_mcg (const std::string &dir, const std::string &name) |
| Exports a full model machine. | |
| int | SPI_FIL_merge_dxf (const std::string &dir, const std::string &name) |
| Merges a DXF file on current part. | |
| int | SPI_FIL_merge_interface_file (const std::string &dir, const std::string &name, int isGinters) |
| Merges a file on current part. | |
| int | SPI_FIL_merge_interface_file2 (const std::string &dir, const std::string &name, int isGinters, int positionning) |
| Merges a file on current part with or without positionning function. | |
| int | SPI_FIL_call_manual_positioning () |
| Calls the postioning functions of a solid part. | |
Import/Export files
| int SPI_FIL_call_manual_positioning | ( | ) |
Calls the postioning functions of a solid part.
| int SPI_FIL_export_bitmap_file | ( | ) |
Exports a bitmap file using standard export funcions.
| int SPI_FIL_export_bitmap_file2 | ( | int | dimX, |
| int | dimY, | ||
| const std::string & | folder, | ||
| const std::string & | name ) |
Exports bitmap file. Bitmap is centered on screen.
| [in] | dimX | dimension on X (eg 1024) |
| [in] | dimY | dimension on Y (eg 768 ) |
| [in] | folder | directory where to stock image file |
| [in] | name | name of image file |
| int SPI_FIL_export_bitmap_file3 | ( | int | dimX, |
| int | dimY, | ||
| const std::string & | folder, | ||
| const std::string & | name, | ||
| int | colorId ) |
Exports bitmap file. Bitmap is centered on screen.
| [in] | dimX | dimension on X (eg 1024) |
| [in] | dimY | dimension on Y (eg 768 ) |
| [in] | folder | directory where to stock image file |
| [in] | name | name of image file |
| [in] | colorId | color of the background |
| int SPI_FIL_export_file | ( | const std::string & | dir, |
| const std::string & | name ) |
Exports a file in desired format.
| [in] | dir | file directory |
| [in] | name | file name |
| int SPI_FIL_export_mcg | ( | const std::string & | dir, |
| const std::string & | name ) |
Exports a full model machine.
| [in] | dir | file folder |
| [in] | name | file name |
| int SPI_FIL_export_solid | ( | int | indDB, |
| int | indStock, | ||
| const std::string & | dir, | ||
| const std::string & | name, | ||
| int * | status ) |
Creates a solid file from a designated solid.
| [in] | indDB | index of the entity to export |
| [in] | indStock | stock index at t if indDB is stock 0=Origin ... MAXELT=last |
| [in] | dir | directory of the file to be created |
| [in] | name | name of the file to create |
| [out] | status | on error returns error status
|
| int SPI_FIL_export_solid_iges | ( | int | indDB, |
| int | indStock, | ||
| const std::string & | dir, | ||
| const std::string & | name, | ||
| int * | status ) |
Creates an IGES file from a designated volume.
| [in] | indDB | index of the entity to export |
| [in] | indStock | stock index at t if indDB is stock 0=Origin ... MAXELT=last |
| [in] | dir | directory of the file to be created |
| [in] | name | name of the file to create |
| [out] | status | on error returns error status
|
| int SPI_FIL_export_solid_psl | ( | int | indDB, |
| int | indStock, | ||
| int | version, | ||
| const std::string & | dir, | ||
| const std::string & | name ) |
Creates a parasolid file (X_T) from a designated solid.
| [in] | indDB | index of the solid |
| [in] | indStock | stock index if indDB is a stock entity 0=origin stock ... MAXELT=last stock |
| [in] | version | parasolid version: 0 : V12, 1 : V13, 2 : V14 |
| [in] | dir | export folder |
| [in] | name | file name |
| int SPI_FIL_export_solid_stl | ( | int | indDB, |
| int | indStock, | ||
| const std::string & | dir, | ||
| const std::string & | name, | ||
| int * | status ) |
Creates an STL file from a designated volume.
| [in] | indDB | index of the entity to export |
| [in] | indStock | stock index at t if indDB is stock 0=Origin ... MAXELT=last |
| [in] | dir | directory of the file to be created |
| [in] | name | name of the file to create |
| [out] | status | on error returns error status
|
| int SPI_FIL_import_file | ( | const std::string & | dir, |
| const std::string & | name ) |
Empties memory and imports a file
The recognized files are of the following type :
AUTOCAD DXF, AUTOCAD DWG,
ACIS SAT, CATIA NATIF, STEP, IGES, VDA,
HPGL, ISO CN, TELL 2D, ME10 MI, PTS,
PRO-ENG.
| [in] | dir | file directory |
| [in] | name | file name |
| int SPI_FIL_import_file_solid | ( | const std::string & | dir, |
| const std::string & | name ) |
See SPI_FIL_import_file + UI start for positioning, origin and creation of stock.
| [in] | dir | file directory |
| [in] | name | file name |
| int SPI_FIL_merge_dxf | ( | const std::string & | dir, |
| const std::string & | name ) |
Merges a DXF file on current part.
| [in] | dir | file folder |
| [in] | name | file name |
| int SPI_FIL_merge_interface_file | ( | const std::string & | dir, |
| const std::string & | name, | ||
| int | isGinters ) |
Merges a file on current part.
| [in] | dir | file folder |
| [in] | name | file name |
| [in] | isGinters | import by ginters (1) or not (0) |
| int SPI_FIL_merge_interface_file2 | ( | const std::string & | dir, |
| const std::string & | name, | ||
| int | isGinters, | ||
| int | positionning ) |
Merges a file on current part with or without positionning function.
| [in] | dir | file folder |
| [in] | name | file name |
| [in] | isGinters | import by ginters (1) or not (0) |
| [in] | positionning | SPI_YES = call positionning after merge SPI_NO = don't call positionning function |
| int SPI_FIL_read_bin_file | ( | const std::string & | dir, |
| const std::string & | name ) |
Empties memory and loads GO2cam binary file.
| [in] | dir | directory of the file |
| [in] | name | filename |
| int SPI_FIL_set_param_inp_exp_file | ( | int | param, |
| const std::string & | sVal ) |
Configures interface settings.
| [in] | param | parameter key (see list below) |
| [in] | sVal | parameter value |
| int SPI_FIL_update_object_fte | ( | const std::string & | dir, |
| const std::string & | name, | ||
| int | mode ) |
Updates an FTE object from a file.
| [in] | dir | import folder |
| [in] | name | file name |
| [in] | mode |
| int SPI_FIL_write_bin_file | ( | const std::string & | dir, |
| const std::string & | name ) |
Creates a binary GO2cam file from what is in memory.
| [in] | dir | file directory |
| [in] | name | file name |