SDK
Temporary files and parts

Functions

int SPI_FIL_select_current_part ()
 Selects current database for working.
 
int SPI_FIL_clear_tmp_part ()
 Empties the temporary database and return to the current database.
 
int SPI_FIL_read_tmp_part (const std::string &dir, const std::string &name)
 Loads a part in tempory database without display.
 
int SPI_FIL_select_tmp_part ()
 Selects the tempory database as working database.
 
int SPI_FIL_merge_part (const std::string &dir, const std::string &name)
 Merges a file in the current database.
 
int SPI_FIL_import_file_bdd_tmp (const std::string &dir, const std::string &name)
 Imports a file in temporary database without display
known format are :
AUTOCAD DXF, AUTOCAD DWG, HPGL
import parameters for DXF/DWG :
no plan creation for 3d arcs
explosion of dimensions
explosion of acad symbols.
 
int SPI_FIL_save_temporary_file ()
 Performs a temporary backup of the part on the hard drive.
 
int SPI_FIL_restore_temporary_file ()
 Retrieves a temporary backup with the name of the part.
 

Detailed Description

Temporary files and parts

Function Documentation

◆ SPI_FIL_clear_tmp_part()

int SPI_FIL_clear_tmp_part ( )

Empties the temporary database and return to the current database.

Version
4.4
Returns
SPI_YES / SPI_NO
ier := ICALL(SPI_FIL_clear_tmp_part);
int SPI_FIL_clear_tmp_part()
Empties the temporary database and return to the current database.
Definition sp_fil05.c:80

◆ SPI_FIL_import_file_bdd_tmp()

int SPI_FIL_import_file_bdd_tmp ( const std::string & dir,
const std::string & name )

Imports a file in temporary database without display
known format are :
AUTOCAD DXF, AUTOCAD DWG, HPGL
import parameters for DXF/DWG :
no plan creation for 3d arcs
explosion of dimensions
explosion of acad symbols.

Version
5.5
Parameters
[in]dirfile folder
[in]namefile name
Returns
SPI_YES or error number :
3 : Unknow format
6,8 : Memory full
10 : No solid in file
101 : Solid interface not installed
other : interface error
ier := ICALL(SPI_FIL_import_file_bdd_tmp,'c:\temp','TOTO.DXF');
int SPI_FIL_import_file_bdd_tmp(const std::string &dir, const std::string &name)
Imports a file in temporary database without display known format are : AUTOCAD DXF,...
Definition sp_fil05.c:240
See also
SPI_FIL_select_tmp_part, SPI_FIL_select_current_part

◆ SPI_FIL_merge_part()

int SPI_FIL_merge_part ( const std::string & dir,
const std::string & name )

Merges a file in the current database.

Version
4.5
Parameters
[in]dirname of directory
[in]namename of the part file
Returns
SPI_YES / SPI_NO
PCALL(SPI_GEN_get_information,SEN_PART_DIRECTORY,dirdata);
ier := ICALL(SPI_FIL_merge_part,dirdata,'toto.PCE');
void SPI_GEN_get_information(int key, std::string &answer)
Requests system or environment information by the key intermediary (SSY_DATE, SSY_HOUR,...
Definition sp_gen01.c:230
int SPI_FIL_merge_part(const std::string &dir, const std::string &name)
Merges a file in the current database.
Definition sp_fil05.c:200

◆ SPI_FIL_read_tmp_part()

int SPI_FIL_read_tmp_part ( const std::string & dir,
const std::string & name )

Loads a part in tempory database without display.

Version
4.4
Parameters
[in]dirname of the directory
[in]namename of the file
Returns
SPI_YES / SPI_NO
PCALL(SPI_GEN_get_information,SEN_PART_DIRECTORY,dirdata);
ier := ICALL(SPI_FIL_read_tmp_part,dirdata,'toto.PCE');
int SPI_FIL_read_tmp_part(const std::string &dir, const std::string &name)
Loads a part in tempory database without display.
Definition sp_fil05.c:118

◆ SPI_FIL_restore_temporary_file()

int SPI_FIL_restore_temporary_file ( )

Retrieves a temporary backup with the name of the part.

Version
5.5
Returns
SPI_YES
int SPI_FIL_restore_temporary_file()
Retrieves a temporary backup with the name of the part.
Definition sp_fil05.c:361
See also
SPI_FIL_save_temporary_file

◆ SPI_FIL_save_temporary_file()

int SPI_FIL_save_temporary_file ( )

Performs a temporary backup of the part on the hard drive.

Version
5.5
Returns
SPI_YES
int SPI_FIL_save_temporary_file()
Performs a temporary backup of the part on the hard drive.
Definition sp_fil05.c:332
See also
SPI_FIL_restore_temporary_file

◆ SPI_FIL_select_current_part()

int SPI_FIL_select_current_part ( )

Selects current database for working.

Version
4.4
Returns
SPI_YES / SPI_NO
int SPI_FIL_select_current_part()
Selects current database for working.
Definition sp_fil05.c:52

◆ SPI_FIL_select_tmp_part()

int SPI_FIL_select_tmp_part ( )

Selects the tempory database as working database.

Version
4.4
Returns
SPI_YES / SPI_NO
int SPI_FIL_select_tmp_part()
Selects the tempory database as working database.
Definition sp_fil05.c:174