Include :
- migliorato salvataggio singola entità (ora in layer di pezzo).
This commit is contained in:
+4
-2
@@ -24,8 +24,10 @@ SaveGeoObj( IGeoObj* pGObj, const std::string& sFile, int nFlag = GDB_SV_BIN)
|
||||
PtrOwner<IGeomDB> pGeomDB( CreateGeomDB()) ;
|
||||
if ( IsNull( pGeomDB))
|
||||
return false ;
|
||||
// inserisco l'oggetto nel GeomDB
|
||||
int nId = pGeomDB->AddGeoObj( GDB_ID_NULL, GDB_ID_ROOT, pGObj) ;
|
||||
// inserisco l'oggetto nel GeomDB (sotto pezzo/layer)
|
||||
int nPartId = pGeomDB->AddGroup( GDB_ID_NULL, GDB_ID_ROOT, Frame3d()) ;
|
||||
int nLayId = pGeomDB->AddGroup( GDB_ID_NULL, nPartId, Frame3d()) ;
|
||||
int nId = pGeomDB->AddGeoObj( GDB_ID_NULL, nLayId, pGObj) ;
|
||||
if ( nId == GDB_ID_NULL)
|
||||
return false ;
|
||||
// eseguo il salvataggio
|
||||
|
||||
Reference in New Issue
Block a user