EgtInterface 1.6a2 :
- numerose modifiche e correzioni - aggiunta registrazione comandi in formato lua - aggiunto valutatore di espressioni.
This commit is contained in:
+10
-10
@@ -81,13 +81,13 @@ bool
|
||||
__stdcall EgtImportDxf( const string& sFilePath)
|
||||
{
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
VERIFY_GEOMDB( pGeomDB, false)
|
||||
// importo il file DXF
|
||||
// aggiungo un gruppo pezzo
|
||||
int nPartId = pGeomDB->AddGroup( GDB_ID_NULL, GDB_ID_ROOT, Frame3d()) ;
|
||||
// preparo l'importatore
|
||||
PtrOwner<IImportDxf> pImpDxf( CreateImportDxf()) ;
|
||||
VERIFY_NULL( Get( pImpDxf), "Error in CreateImportDxf", FALSE)
|
||||
VERIFY_NULL( Get( pImpDxf), "Error in CreateImportDxf", false)
|
||||
// eseguo l'importazione
|
||||
return pImpDxf->Import( sFilePath, pGeomDB, nPartId) ;
|
||||
}
|
||||
@@ -104,14 +104,14 @@ bool
|
||||
__stdcall EgtImportStl( const string& sFilePath)
|
||||
{
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
VERIFY_GEOMDB( pGeomDB, false)
|
||||
// importo il file STL
|
||||
// aggiungo un gruppo pezzo e un gruppo layer
|
||||
int nPartId = pGeomDB->AddGroup( GDB_ID_NULL, GDB_ID_ROOT, Frame3d()) ;
|
||||
int nLayerId = pGeomDB->AddGroup( GDB_ID_NULL, nPartId, Frame3d()) ;
|
||||
// preparo l'importatore
|
||||
PtrOwner<IImportStl> pImpStl( CreateImportStl()) ;
|
||||
VERIFY_NULL( Get( pImpStl), "Error in CreateImportStl", FALSE)
|
||||
VERIFY_NULL( Get( pImpStl), "Error in CreateImportStl", false)
|
||||
// eseguo l'importazione
|
||||
return pImpStl->Import( sFilePath, pGeomDB, nLayerId) ;
|
||||
}
|
||||
@@ -128,13 +128,13 @@ bool
|
||||
__stdcall EgtImportCnc( const string& sFilePath)
|
||||
{
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
VERIFY_GEOMDB( pGeomDB, false)
|
||||
// importo il file CNC
|
||||
// aggiungo un gruppo pezzo
|
||||
int nPartId = pGeomDB->AddGroup( GDB_ID_NULL, GDB_ID_ROOT, Frame3d()) ;
|
||||
// preparo l'importatore
|
||||
PtrOwner<IImportCnc> pImpCnc( CreateImportCnc()) ;
|
||||
VERIFY_NULL( Get( pImpCnc), "Error in CreateImportCnc", FALSE)
|
||||
VERIFY_NULL( Get( pImpCnc), "Error in CreateImportCnc", false)
|
||||
// eseguo l'importazione
|
||||
return pImpCnc->Import( sFilePath, pGeomDB, nPartId) ;
|
||||
}
|
||||
@@ -151,11 +151,11 @@ bool
|
||||
__stdcall EgtExportDxf( int nId, const string& sFilePath)
|
||||
{
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
VERIFY_GEOMDB( pGeomDB, false)
|
||||
// esporto il file DXF
|
||||
// preparo l'esportatore
|
||||
PtrOwner<IExportDxf> pExpDxf( CreateExportDxf()) ;
|
||||
VERIFY_NULL( Get( pExpDxf), "Error in CreateExportDxf", FALSE)
|
||||
VERIFY_NULL( Get( pExpDxf), "Error in CreateExportDxf", false)
|
||||
// eseguo l'esportazione
|
||||
return pExpDxf->Export( pGeomDB, nId, sFilePath) ;
|
||||
}
|
||||
@@ -172,11 +172,11 @@ bool
|
||||
__stdcall EgtExportStl( int nId, const string& sFilePath)
|
||||
{
|
||||
IGeomDB* pGeomDB = GetCurrGeomDB() ;
|
||||
VERIFY_GEOMDB( pGeomDB, FALSE)
|
||||
VERIFY_GEOMDB( pGeomDB, false)
|
||||
// esporto il file STL
|
||||
// preparo l'esportatore
|
||||
PtrOwner<IExportStl> pExpStl( CreateExportStl()) ;
|
||||
VERIFY_NULL( Get( pExpStl), "Error in CreateExportStl", FALSE)
|
||||
VERIFY_NULL( Get( pExpStl), "Error in CreateExportStl", false)
|
||||
// eseguo l'esportazione
|
||||
return pExpStl->Export( pGeomDB, nId, sFilePath) ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user