EgtInterface 1.5j4 :

- ora si imposta un context corrente anche per le API come per LUA
- il context corrente di LUA coincide con quello delle API.
This commit is contained in:
Dario Sassi
2014-10-15 15:31:00 +00:00
parent 3b1e139286
commit 46c5fce044
29 changed files with 594 additions and 528 deletions
+20 -20
View File
@@ -67,16 +67,16 @@ __stdcall EgtGetFileType( const string& sFilePath)
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtImportDxf( int nGseCtx, const wchar_t* wsFilePath)
__stdcall EgtImportDxf( const wchar_t* wsFilePath)
{
return EgtImportDxf( nGseCtx, wstrztoA( wsFilePath)) ;
return EgtImportDxf( wstrztoA( wsFilePath)) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtImportDxf( int nGseCtx, const string& sFilePath)
__stdcall EgtImportDxf( const string& sFilePath)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// importo il file DXF
// aggiungo un gruppo pezzo
@@ -90,16 +90,16 @@ __stdcall EgtImportDxf( int nGseCtx, const string& sFilePath)
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtImportStl( int nGseCtx, const wchar_t* wsFilePath)
__stdcall EgtImportStl( const wchar_t* wsFilePath)
{
return EgtImportStl( nGseCtx, wstrztoA( wsFilePath)) ;
return EgtImportStl( wstrztoA( wsFilePath)) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtImportStl( int nGseCtx, const string& sFilePath)
__stdcall EgtImportStl( const string& sFilePath)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// importo il file STL
// aggiungo un gruppo pezzo e un gruppo layer
@@ -114,16 +114,16 @@ __stdcall EgtImportStl( int nGseCtx, const string& sFilePath)
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtImportCnc( int nGseCtx, const wchar_t* wsFilePath)
__stdcall EgtImportCnc( const wchar_t* wsFilePath)
{
return EgtImportCnc( nGseCtx, wstrztoA( wsFilePath)) ;
return EgtImportCnc( wstrztoA( wsFilePath)) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtImportCnc( int nGseCtx, const string& sFilePath)
__stdcall EgtImportCnc( const string& sFilePath)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// importo il file CNC
// aggiungo un gruppo pezzo
@@ -137,16 +137,16 @@ __stdcall EgtImportCnc( int nGseCtx, const string& sFilePath)
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtExportDxf( int nGseCtx, int nId, const wchar_t* wsFilePath)
__stdcall EgtExportDxf( int nId, const wchar_t* wsFilePath)
{
return EgtExportDxf( nGseCtx, nId, wstrztoA( wsFilePath)) ;
return EgtExportDxf( nId, wstrztoA( wsFilePath)) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtExportDxf( int nGseCtx, int nId, const string& sFilePath)
__stdcall EgtExportDxf( int nId, const string& sFilePath)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// esporto il file DXF
// preparo l'esportatore
@@ -158,16 +158,16 @@ __stdcall EgtExportDxf( int nGseCtx, int nId, const string& sFilePath)
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtExportStl( int nGseCtx, int nId, const wchar_t* wsFilePath)
__stdcall EgtExportStl( int nId, const wchar_t* wsFilePath)
{
return EgtExportStl( nGseCtx, nId, wstrztoA( wsFilePath)) ;
return EgtExportStl( nId, wstrztoA( wsFilePath)) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtExportStl( int nGseCtx, int nId, const string& sFilePath)
__stdcall EgtExportStl( int nId, const string& sFilePath)
{
IGeomDB* pGeomDB = GetGeomDB( nGseCtx) ;
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, FALSE)
// esporto il file STL
// preparo l'esportatore