EgtExecutor 2.3a4 :

- aggiunte impostazioni di progetto modificato dove opportune in BeamMgr.
This commit is contained in:
Dario Sassi
2021-01-15 14:12:36 +00:00
parent de30bede15
commit 5f9e4ccb0c
2 changed files with 31 additions and 2 deletions
+31 -2
View File
@@ -47,6 +47,7 @@ ExeBeamCreatePart( void)
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
VERIFY_BEAMMGR( pBeamMgr, GDB_ID_NULL)
// creo un pezzo (trave o parete) e lo rendo corrente
ExeSetModified() ;
return pBeamMgr->CreatePart() ;
}
@@ -67,6 +68,7 @@ ExeBeamErasePart( void)
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
VERIFY_BEAMMGR( pBeamMgr, false)
// cancello il pezzo corrente
ExeSetModified() ;
return pBeamMgr->ErasePart() ;
}
@@ -77,6 +79,7 @@ ExeBeamUpdatePart( void)
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
VERIFY_BEAMMGR( pBeamMgr, false)
// forzo aggiornamento del pezzo corrente
ExeSetModified() ;
return pBeamMgr->UpdatePart() ;
}
@@ -87,6 +90,7 @@ ExeBeamSetPartProdNbr( int nProdNbr)
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
VERIFY_BEAMMGR( pBeamMgr, false)
// imposto il numero di produzione al pezzo corrente
ExeSetModified() ;
return pBeamMgr->SetPartProdNbr( nProdNbr) ;
}
@@ -97,6 +101,7 @@ ExeBeamSetPartName( const string& sName)
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
VERIFY_BEAMMGR( pBeamMgr, false)
// imposto il nome al pezzo corrente
ExeSetModified() ;
return pBeamMgr->SetPartName( sName) ;
}
@@ -107,6 +112,7 @@ ExeBeamSetPartCount( int nCount)
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
VERIFY_BEAMMGR( pBeamMgr, false)
// imposto il numero di parti da produrre al pezzo corrente
ExeSetModified() ;
return pBeamMgr->SetPartCount( nCount) ;
}
@@ -117,6 +123,7 @@ ExeBeamSetPartBox( double dLength, double dHeight, double dWidth, bool bUpdate)
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
VERIFY_BEAMMGR( pBeamMgr, false)
// imposto le dimensioni al pezzo corrente
ExeSetModified() ;
return pBeamMgr->SetPartBox( dLength, dHeight, dWidth, bUpdate) ;
}
@@ -128,6 +135,7 @@ ExeBeamAddProcess( int nGroup, int nProc, int nSide, const string& sDes, int nPr
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
VERIFY_BEAMMGR( pBeamMgr, GDB_ID_NULL)
// aggiungo una feature al pezzo corrente
ExeSetModified() ;
return pBeamMgr->AddProcess( nGroup, nProc, nSide, sDes, nProcId, frRef, vdPar, sPar, bUpdate) ;
}
@@ -139,6 +147,7 @@ ExeBeamModifyProcess( int nGeomId, int nGroup, int nProc, int nSide, const strin
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
VERIFY_BEAMMGR( pBeamMgr, GDB_ID_NULL)
// modifico una feature di un pezzo
ExeSetModified() ;
return pBeamMgr->ModifyProcess( nGeomId, nGroup, nProc, nSide, sDes, nProcId, frRef, vdPar, sPar, bUpdate) ;
}
@@ -149,6 +158,7 @@ ExeBeamEraseProcess( int nGeomId, bool bUpdate)
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
VERIFY_BEAMMGR( pBeamMgr, false)
// cancello una feature di un pezzo
ExeSetModified() ;
return pBeamMgr->EraseProcess( nGeomId, bUpdate) ;
}
@@ -159,6 +169,7 @@ ExeBeamEnableProcess( int nGeomId, bool bEnable, bool bUpdate)
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
VERIFY_BEAMMGR( pBeamMgr, false)
// abilito la lavorazione di una feature di un pezzo
ExeSetModified() ;
return pBeamMgr->EnableProcess( nGeomId, bEnable, bUpdate) ;
}
@@ -168,8 +179,17 @@ ExeBeamCalcSolid( int nPartId, bool bRecalc)
{
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
VERIFY_BEAMMGR( pBeamMgr, false)
// disabilito possibilità di alterare il flag di modifica
bool bOldEnabModif = ExeGetEnableModified() ;
if ( bOldEnabModif)
ExeDisableModified() ;
// calcolo il solido della trave
return pBeamMgr->CalcSolid( nPartId, bRecalc) ;
bool bOk = pBeamMgr->CalcSolid( nPartId, bRecalc) ;
// ripristino possibilità di alterare il flag di modifica
if ( bOldEnabModif)
ExeEnableModified() ;
// risultato
return bOk ;
}
//-----------------------------------------------------------------------------
@@ -188,8 +208,17 @@ ExeBeamShowSolid( int nPartId, bool bShow)
{
IBeamMgr* pBeamMgr = GetCurrBeamMgr() ;
VERIFY_BEAMMGR( pBeamMgr, false)
// disabilito possibilità di alterare il flag di modifica
bool bOldEnabModif = ExeGetEnableModified() ;
if ( bOldEnabModif)
ExeDisableModified() ;
// aggiorno lo stato di visualizzazione della trave (solido e complementari)
return pBeamMgr->ShowSolid( nPartId, bShow) ;
bool bOk = pBeamMgr->ShowSolid( nPartId, bShow) ;
// ripristino possibilità di alterare il flag di modifica
if ( bOldEnabModif)
ExeEnableModified() ;
// risultato
return bOk ;
}
//-----------------------------------------------------------------------------
BIN
View File
Binary file not shown.