- Migliorie Calc pezzi

- Correzione flip e rot dei duplo
- Cambiata gestione ricalcolo in supervisore
- Aggiunti controlli su comunicazione tra programmi
- Gestione apertura progetto con s/blocco duplo
- Gestione errore ricalcolo in supervisore
- Aggiunti controlli su cicli di comunicazione tra programmi
This commit is contained in:
Emmanuele Sassi
2022-02-03 21:49:05 +01:00
parent 568e98aec8
commit ee558cecd6
16 changed files with 243 additions and 229 deletions
@@ -1277,6 +1277,12 @@ Public Class BTLPartVM
End Set
End Property
Public ReadOnly Property nFeaturesGlobalState As CalcStates
Get
Return m_BTLPartM.nFeaturesGlobalState
End Get
End Property
Public Property nState As CalcStates
Get
Return m_BTLPartM.nState
@@ -1673,6 +1679,7 @@ Public Class BTLPartVM
Friend Sub CalcGlobalUpdate(Optional bFeatureFirst As Boolean = False)
m_BTLPartM.nCALC_GlobalERR = nCALC_ERR
m_BTLPartM.nGlobalState = nState
m_BTLPartM.nFeaturesGlobalState = CalcStates.NOTCALCULATED
If nState > CalcStates.NOTCALCULATED Then
For Each Feature In BTLFeatureVMList
If Not Feature.bDO And Not bFeatureFirst Then Continue For
@@ -1691,6 +1698,9 @@ Public Class BTLPartVM
m_BTLPartM.nGlobalState = Feature.nState
m_BTLPartM.nCALC_GlobalERR = Feature.nCALC_ERR
End If
If Feature.nState > m_BTLPartM.nFeaturesGlobalState Then
m_BTLPartM.nFeaturesGlobalState = Feature.nState
End If
If Feature.nCALC_ROT <> 0 Then
m_BTLPartM.m_nCALC_ROT = Feature.nCALC_ROT
End If