OmagCUT :
- abilitata visualizzazione lovorazioni in simulazione anche con 1 sola fase.
This commit is contained in:
+18
@@ -88,6 +88,24 @@ Public Module CamAuto
|
||||
Return True
|
||||
End Function
|
||||
|
||||
Friend Function ShowAllCurrPhaseMachinings() As Boolean
|
||||
' Parto dalla prima lavorazione successiva alla disposizione di fase
|
||||
Dim nId As Integer = EgtGetPhaseDisposition(EgtGetCurrPhase())
|
||||
nId = EgtGetNextOperation(nId)
|
||||
' Finchè c'è una lavorazione
|
||||
While nId <> GDB_ID.NULL
|
||||
' Se disposizione sono alla fase successiva
|
||||
If EgtGetOperationType(nId) = MCH_OY.DISP Then Exit While
|
||||
' Se abilitata
|
||||
If EgtGetOperationMode(nId) Then
|
||||
EgtSetOperationStatus(nId, True)
|
||||
End If
|
||||
' Passo alla successiva
|
||||
nId = EgtGetNextOperation(nId)
|
||||
End While
|
||||
Return True
|
||||
End Function
|
||||
|
||||
Friend Function VerifySetup(ByRef sMissingTools As String) As Boolean
|
||||
Dim bOk As Boolean = True
|
||||
sMissingTools = String.Empty
|
||||
|
||||
@@ -73,6 +73,9 @@ Public Class SimulationPageUC
|
||||
m_CurrProjPage.SaveFile(sMchPath)
|
||||
' Nascondo eventuali pezzi in parcheggio
|
||||
HideParkedParts()
|
||||
' Imposto prima fase
|
||||
EgtSetCurrPhase(1)
|
||||
ShowAllCurrPhaseMachinings()
|
||||
' Visualizzo opportunamente la macchina
|
||||
m_nMachLook = MCH_LOOK.ALL
|
||||
EgtSetMachineLook(m_nMachLook)
|
||||
|
||||
Reference in New Issue
Block a user