Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| f82a6495bd | |||
| c6262613c8 | |||
| 31edd150bd | |||
| 9fdd7b4b77 | |||
| b0bae3af98 | |||
| 235ec10a2d | |||
| 66061ad262 | |||
| 3e99eb1a8f |
@@ -29,9 +29,17 @@ Public Class CurrMachWindowVM
|
|||||||
m_SelCurrSawing = value
|
m_SelCurrSawing = value
|
||||||
End If
|
End If
|
||||||
CurrentMachine.sCurrSawing = m_SelCurrSawing
|
CurrentMachine.sCurrSawing = m_SelCurrSawing
|
||||||
|
' salvo la lvorazione corrente
|
||||||
|
WritePrivateProfileString(S_MACH_MACH, K_CURRSAWING_OFFICE, m_SelCurrSawing, sMachIniFile)
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public Sub SetCurrSawing(sCurrOfficeSawing As String)
|
||||||
|
m_SelCurrSawing = sCurrOfficeSawing
|
||||||
|
CurrentMachine.sCurrSawing = m_SelCurrSawing
|
||||||
|
NotifyPropertyChanged("SelCurrSawing")
|
||||||
|
End Sub
|
||||||
|
|
||||||
Public ReadOnly Property CurrSawing_Visibility As Visibility
|
Public ReadOnly Property CurrSawing_Visibility As Visibility
|
||||||
Get
|
Get
|
||||||
If EgtGetHeadId("H1") = GDB_ID.NULL Then
|
If EgtGetHeadId("H1") = GDB_ID.NULL Then
|
||||||
@@ -149,10 +157,18 @@ Public Class CurrMachWindowVM
|
|||||||
If value <> m_SelCurrDrilling Then
|
If value <> m_SelCurrDrilling Then
|
||||||
m_SelCurrDrilling = value
|
m_SelCurrDrilling = value
|
||||||
CurrentMachine.sCurrDrilling = m_SelCurrDrilling
|
CurrentMachine.sCurrDrilling = m_SelCurrDrilling
|
||||||
|
' salvo la lvorazione corrente
|
||||||
|
WritePrivateProfileString(S_MACH_MACH, K_CURRDRILLING_OFFICE, m_SelCurrDrilling, sMachIniFile)
|
||||||
End If
|
End If
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public Sub SetCurrDrilling(sCurrOfficeDrilling As String)
|
||||||
|
m_SelCurrDrilling = sCurrOfficeDrilling
|
||||||
|
CurrentMachine.sCurrDrilling = m_SelCurrDrilling
|
||||||
|
NotifyPropertyChanged("SelCurrDrilling")
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private m_CurrDrilling_Visibility As Visibility
|
Private m_CurrDrilling_Visibility As Visibility
|
||||||
Public Property CurrDrilling_Visibility As Visibility
|
Public Property CurrDrilling_Visibility As Visibility
|
||||||
Get
|
Get
|
||||||
@@ -187,10 +203,18 @@ Public Class CurrMachWindowVM
|
|||||||
If value <> m_SelCurrMilling Then
|
If value <> m_SelCurrMilling Then
|
||||||
m_SelCurrMilling = value
|
m_SelCurrMilling = value
|
||||||
CurrentMachine.sCurrMilling = m_SelCurrMilling
|
CurrentMachine.sCurrMilling = m_SelCurrMilling
|
||||||
|
' salvo la lvorazione corrente
|
||||||
|
WritePrivateProfileString(S_MACH_MACH, K_CURRMILLING_OFFICE, m_SelCurrMilling, sMachIniFile)
|
||||||
End If
|
End If
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public Sub SetCurrMilling(sCurrOfficeMilling As String)
|
||||||
|
m_SelCurrMilling = sCurrOfficeMilling
|
||||||
|
CurrentMachine.sCurrMilling = m_SelCurrMilling
|
||||||
|
NotifyPropertyChanged("SelCurrMilling")
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private m_CurrMilling_Visibility As Visibility
|
Private m_CurrMilling_Visibility As Visibility
|
||||||
Public Property CurrMilling_Visibility As Visibility
|
Public Property CurrMilling_Visibility As Visibility
|
||||||
Get
|
Get
|
||||||
@@ -225,10 +249,18 @@ Public Class CurrMachWindowVM
|
|||||||
If value <> m_SelCurrPocketing Then
|
If value <> m_SelCurrPocketing Then
|
||||||
m_SelCurrPocketing = value
|
m_SelCurrPocketing = value
|
||||||
CurrentMachine.sCurrPocketing = m_SelCurrPocketing
|
CurrentMachine.sCurrPocketing = m_SelCurrPocketing
|
||||||
|
' salvo la lvorazione corrente
|
||||||
|
WritePrivateProfileString(S_MACH_MACH, K_CURRPOCKETING_OFFICE, m_SelCurrPocketing, sMachIniFile)
|
||||||
End If
|
End If
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public Sub SetCurrPocketing(sCurrOfficePocketing As String)
|
||||||
|
m_SelCurrPocketing = sCurrOfficePocketing
|
||||||
|
CurrentMachine.sCurrPocketing = m_SelCurrPocketing
|
||||||
|
NotifyPropertyChanged("SelCurrPocketing")
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private m_CurrPocketing_Visibility As Visibility
|
Private m_CurrPocketing_Visibility As Visibility
|
||||||
Public Property CurrPocketing_Visibility As Visibility
|
Public Property CurrPocketing_Visibility As Visibility
|
||||||
Get
|
Get
|
||||||
@@ -263,10 +295,18 @@ Public Class CurrMachWindowVM
|
|||||||
If value <> m_SelCurrWaterjetting Then
|
If value <> m_SelCurrWaterjetting Then
|
||||||
m_SelCurrWaterjetting = value
|
m_SelCurrWaterjetting = value
|
||||||
CurrentMachine.sCurrWaterJetting = m_SelCurrWaterjetting
|
CurrentMachine.sCurrWaterJetting = m_SelCurrWaterjetting
|
||||||
|
' salvo la lvorazione corrente
|
||||||
|
WritePrivateProfileString(S_MACH_MACH, K_CURRWATERJETTING_OFFICE, m_SelCurrWaterjetting, sMachIniFile)
|
||||||
End If
|
End If
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public Sub SetCurrWaterjetting(sCurrOfficeWaterjetting As String)
|
||||||
|
m_SelCurrWaterjetting = sCurrOfficeWaterjetting
|
||||||
|
CurrentMachine.sCurrWaterJetting = m_SelCurrWaterjetting
|
||||||
|
NotifyPropertyChanged("SelCurrWaterjetting")
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private m_CurrWaterjettingQualityList As New List(Of String)
|
Private m_CurrWaterjettingQualityList As New List(Of String)
|
||||||
Public Property CurrWaterjettingQualityList As List(Of String)
|
Public Property CurrWaterjettingQualityList As List(Of String)
|
||||||
Get
|
Get
|
||||||
@@ -286,10 +326,18 @@ Public Class CurrMachWindowVM
|
|||||||
If value <> m_SelCurrWaterjettingQuality Then
|
If value <> m_SelCurrWaterjettingQuality Then
|
||||||
m_SelCurrWaterjettingQuality = value
|
m_SelCurrWaterjettingQuality = value
|
||||||
CurrentMachine.sCurrWaterJettingQuality = m_SelCurrWaterjettingQuality
|
CurrentMachine.sCurrWaterJettingQuality = m_SelCurrWaterjettingQuality
|
||||||
|
' salvo la lvorazione corrente
|
||||||
|
WritePrivateProfileString(S_MACH_MACH, K_CURRWATERJETTINGQUALITY_OFFICE, m_SelCurrWaterjettingQuality, sMachIniFile)
|
||||||
End If
|
End If
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public Sub SetCurrWaterjettingQuality(sCurrOfficeWaterjettingQuality As String)
|
||||||
|
m_SelCurrWaterjettingQuality = sCurrOfficeWaterjettingQuality
|
||||||
|
CurrentMachine.sCurrWaterJettingQuality = m_SelCurrWaterjettingQuality
|
||||||
|
NotifyPropertyChanged("SelCurrWaterjetting")
|
||||||
|
End Sub
|
||||||
|
|
||||||
Private m_CurrWaterjetting_Visibility As Visibility = Visibility.Collapsed
|
Private m_CurrWaterjetting_Visibility As Visibility = Visibility.Collapsed
|
||||||
Public Property CurrWaterjetting_Visibility As Visibility
|
Public Property CurrWaterjetting_Visibility As Visibility
|
||||||
Get
|
Get
|
||||||
@@ -472,11 +520,13 @@ Public Class CurrMachWindowVM
|
|||||||
|
|
||||||
If m_CurrSawingList.Count > 0 Then
|
If m_CurrSawingList.Count > 0 Then
|
||||||
If CurrentMachine.sCurrSawing <> String.Empty Then
|
If CurrentMachine.sCurrSawing <> String.Empty Then
|
||||||
SelCurrSawing = CurrentMachine.sCurrSawing
|
SetCurrSawing(CurrentMachine.sCurrSawing)
|
||||||
Else
|
Else
|
||||||
Dim sCurrSawing As String = ""
|
Dim sCurrSawing As String = ""
|
||||||
GetPrivateProfileString(S_MACH_MACH, K_CURRSAWING, Nothing, sCurrSawing, sMachIniFile)
|
' GetPrivateProfileString(S_MACH_MACH, K_CURRSAWING, Nothing, sCurrSawing, sMachIniFile)
|
||||||
SelCurrSawing = sCurrSawing
|
GetPrivateProfileString(S_MACH_MACH, K_CURRSAWING_OFFICE, Nothing, sCurrSawing, sMachIniFile)
|
||||||
|
'SelCurrSawing = sCurrSawing
|
||||||
|
SetCurrSawing(sCurrSawing)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
CurrentMachine.sCurrSawing = String.Empty
|
CurrentMachine.sCurrSawing = String.Empty
|
||||||
@@ -486,7 +536,11 @@ Public Class CurrMachWindowVM
|
|||||||
If CurrentMachine.bDrilling And m_CurrDrillingList.Count > 1 Then
|
If CurrentMachine.bDrilling And m_CurrDrillingList.Count > 1 Then
|
||||||
CurrDrilling_Visibility = Visibility.Visible
|
CurrDrilling_Visibility = Visibility.Visible
|
||||||
If CurrentMachine.sCurrDrilling <> String.Empty Then
|
If CurrentMachine.sCurrDrilling <> String.Empty Then
|
||||||
SelCurrDrilling = CurrentMachine.sCurrDrilling
|
SetCurrDrilling(CurrentMachine.sCurrDrilling)
|
||||||
|
Else
|
||||||
|
Dim sCurrMachining As String = ""
|
||||||
|
GetPrivateProfileString(S_MACH_MACH, K_CURRDRILLING_OFFICE, Nothing, sCurrMachining, sMachIniFile)
|
||||||
|
SetCurrDrilling(sCurrMachining)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
CurrDrilling_Visibility = Visibility.Collapsed
|
CurrDrilling_Visibility = Visibility.Collapsed
|
||||||
@@ -495,7 +549,11 @@ Public Class CurrMachWindowVM
|
|||||||
If CurrentMachine.bMilling And m_CurrMillingList.Count > 1 Then
|
If CurrentMachine.bMilling And m_CurrMillingList.Count > 1 Then
|
||||||
CurrMilling_Visibility = Visibility.Visible
|
CurrMilling_Visibility = Visibility.Visible
|
||||||
If CurrentMachine.sCurrMilling <> String.Empty Then
|
If CurrentMachine.sCurrMilling <> String.Empty Then
|
||||||
SelCurrMilling = CurrentMachine.sCurrMilling
|
SetCurrMilling(CurrentMachine.sCurrMilling)
|
||||||
|
Else
|
||||||
|
Dim sCurrMachining As String = ""
|
||||||
|
GetPrivateProfileString(S_MACH_MACH, K_CURRMILLING_OFFICE, Nothing, sCurrMachining, sMachIniFile)
|
||||||
|
SetCurrMilling(sCurrMachining)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
CurrMilling_Visibility = Visibility.Collapsed
|
CurrMilling_Visibility = Visibility.Collapsed
|
||||||
@@ -504,7 +562,11 @@ Public Class CurrMachWindowVM
|
|||||||
If CurrentMachine.bPocketing And CurrPocketingList.Count > 1 Then
|
If CurrentMachine.bPocketing And CurrPocketingList.Count > 1 Then
|
||||||
CurrPocketing_Visibility = Visibility.Visible
|
CurrPocketing_Visibility = Visibility.Visible
|
||||||
If CurrentMachine.sCurrPocketing <> String.Empty Then
|
If CurrentMachine.sCurrPocketing <> String.Empty Then
|
||||||
SelCurrPocketing = CurrentMachine.sCurrPocketing
|
SetCurrPocketing(CurrentMachine.sCurrPocketing)
|
||||||
|
Else
|
||||||
|
Dim sCurrMachining As String = ""
|
||||||
|
GetPrivateProfileString(S_MACH_MACH, K_CURRPOCKETING_OFFICE, Nothing, sCurrMachining, sMachIniFile)
|
||||||
|
SetCurrPocketing(sCurrMachining)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
CurrPocketing_Visibility = Visibility.Collapsed
|
CurrPocketing_Visibility = Visibility.Collapsed
|
||||||
@@ -515,10 +577,18 @@ Public Class CurrMachWindowVM
|
|||||||
' se DB WaterJet abilitato avrò anche la CmBx della Quality solo la CmBx del Waterjetting corrente
|
' se DB WaterJet abilitato avrò anche la CmBx della Quality solo la CmBx del Waterjetting corrente
|
||||||
If CurrentMachine.bFromDBWaterJet Then
|
If CurrentMachine.bFromDBWaterJet Then
|
||||||
If CurrentMachine.sCurrWaterJetting <> String.Empty Then
|
If CurrentMachine.sCurrWaterJetting <> String.Empty Then
|
||||||
SelCurrWaterjetting = CurrentMachine.sCurrWaterJetting
|
SetCurrWaterjetting(CurrentMachine.sCurrWaterJetting)
|
||||||
|
Else
|
||||||
|
Dim sCurrMachining As String = ""
|
||||||
|
GetPrivateProfileString(S_MACH_MACH, K_CURRWATERJETTING_OFFICE, Nothing, sCurrMachining, sMachIniFile)
|
||||||
|
SetCurrWaterjetting(sCurrMachining)
|
||||||
End If
|
End If
|
||||||
If CurrentMachine.sCurrWaterJettingQuality <> String.Empty Then
|
If CurrentMachine.sCurrWaterJettingQuality <> String.Empty Then
|
||||||
SelCurrWaterjettingQuality = CurrentMachine.sCurrWaterJettingQuality
|
SetCurrWaterjettingQuality(CurrentMachine.sCurrWaterJettingQuality)
|
||||||
|
Else
|
||||||
|
Dim sCurrMachining As String = ""
|
||||||
|
GetPrivateProfileString(S_MACH_MACH, K_CURRWATERJETTINGQUALITY_OFFICE, Nothing, sCurrMachining, sMachIniFile)
|
||||||
|
SetCurrWaterjettingQuality(sCurrMachining)
|
||||||
End If
|
End If
|
||||||
CurrWaterjettingQuality_Visibility = Visibility.Visible
|
CurrWaterjettingQuality_Visibility = Visibility.Visible
|
||||||
Else
|
Else
|
||||||
|
|||||||
@@ -247,9 +247,13 @@
|
|||||||
Public Const K_CURRDRIPDRILL As String = "CurrDripDrill"
|
Public Const K_CURRDRIPDRILL As String = "CurrDripDrill"
|
||||||
Public Const K_CURRWATERJET As String = "CurrWaterJet"
|
Public Const K_CURRWATERJET As String = "CurrWaterJet"
|
||||||
Public Const K_CURRSAWING As String = "CurrSawing"
|
Public Const K_CURRSAWING As String = "CurrSawing"
|
||||||
|
Public Const K_CURRSAWING_OFFICE As String = "CurrOfficeSawing"
|
||||||
Public Const K_CURRDRILLING As String = "CurrDrilling"
|
Public Const K_CURRDRILLING As String = "CurrDrilling"
|
||||||
|
Public Const K_CURRDRILLING_OFFICE As String = "CurrOfficeDrilling"
|
||||||
Public Const K_CURRMILLING As String = "CurrMilling"
|
Public Const K_CURRMILLING As String = "CurrMilling"
|
||||||
|
Public Const K_CURRMILLING_OFFICE As String = "CurrOfficeMilling"
|
||||||
Public Const K_CURRPOCKETING As String = "CurrPocketing"
|
Public Const K_CURRPOCKETING As String = "CurrPocketing"
|
||||||
|
Public Const K_CURRPOCKETING_OFFICE As String = "CurrOfficePocketing"
|
||||||
Public Const K_CURRSAWROUGHING As String = "CurrSawRoughing"
|
Public Const K_CURRSAWROUGHING As String = "CurrSawRoughing"
|
||||||
Public Const K_CURRSAWFINISHING As String = "CurrSawFinishing"
|
Public Const K_CURRSAWFINISHING As String = "CurrSawFinishing"
|
||||||
Public Const K_CURRSAWSIDEFINISHING As String = "CurrSawSideFinishing"
|
Public Const K_CURRSAWSIDEFINISHING As String = "CurrSawSideFinishing"
|
||||||
@@ -257,7 +261,9 @@
|
|||||||
Public Const K_CURRDRIPSAWING As String = "CurrDripSawing"
|
Public Const K_CURRDRIPSAWING As String = "CurrDripSawing"
|
||||||
Public Const K_CURRDRIPDRILLING As String = "CurrDripDrilling"
|
Public Const K_CURRDRIPDRILLING As String = "CurrDripDrilling"
|
||||||
Public Const K_CURRWATERJETTING As String = "CurrWaterJetting"
|
Public Const K_CURRWATERJETTING As String = "CurrWaterJetting"
|
||||||
|
Public Const K_CURRWATERJETTING_OFFICE As String = "CurrOfficeWaterJetting"
|
||||||
Public Const K_CURRWATERJETTINGQUALITY As String = "CurrWaterJettingQuality"
|
Public Const K_CURRWATERJETTINGQUALITY As String = "CurrWaterJettingQuality"
|
||||||
|
Public Const K_CURRWATERJETTINGQUALITY_OFFICE As String = "CurrWaterJettingQuality"
|
||||||
|
|
||||||
Public Const S_MATERIALS As String = "Materials"
|
Public Const S_MATERIALS As String = "Materials"
|
||||||
Public Const K_CURRMATERIAL As String = "CurrMaterial"
|
Public Const K_CURRMATERIAL As String = "CurrMaterial"
|
||||||
|
|||||||
@@ -539,14 +539,25 @@ Module VacuumCups
|
|||||||
|
|
||||||
' assegante le posizioni del centro delle ventose e l'angolo di posizionamento orizzontale verifica che la posizione sia raggiungibile
|
' assegante le posizioni del centro delle ventose e l'angolo di posizionamento orizzontale verifica che la posizione sia raggiungibile
|
||||||
Public Function VerifyOutOfStrokes(ptRef As Point3d, dRotAngDeg As Double) As Integer
|
Public Function VerifyOutOfStrokes(ptRef As Point3d, dRotAngDeg As Double) As Integer
|
||||||
Dim dX, dY, dZ As Double
|
' Posizione Home dell'asse rotante
|
||||||
Dim nStat As Integer
|
|
||||||
Dim dCHome As Double
|
Dim dCHome As Double
|
||||||
EgtGetAxisHomePos("C", dCHome)
|
EgtGetAxisHomePos("C", dCHome)
|
||||||
' imposto la l'uscita della ventosa come fosse l'uscita di un utensile
|
' Corse dell'asse
|
||||||
|
Dim dCMin As Double
|
||||||
|
EgtGetAxisMin("C", dCMin)
|
||||||
|
Dim dCMax As Double
|
||||||
|
EgtGetAxisMax("C", dCMax)
|
||||||
|
' Porto l'angolo nel range
|
||||||
|
Dim dRotAngMachDeg As Double = dRotAngDeg + dCHome
|
||||||
|
AdjustAngleInRange(dRotAngMachDeg, dCMin, dCMax)
|
||||||
|
' Imposto la ventosa come fosse un utensile
|
||||||
EgtSetCalcTool("", "H4", 1)
|
EgtSetCalcTool("", "H4", 1)
|
||||||
EgtGetCalcPositions(ptRef, dRotAngDeg + dCHome, 0, nStat, dX, dY, dZ)
|
' Calcolo gli assi macchina
|
||||||
EgtVerifyOutstroke(dX, dY, dZ, dRotAngDeg + dCHome, 0, nStat)
|
Dim dX, dY, dZ As Double
|
||||||
|
Dim nStat As Integer
|
||||||
|
EgtGetCalcPositions(ptRef, dRotAngMachDeg, 0, nStat, dX, dY, dZ)
|
||||||
|
' Verifico le corse
|
||||||
|
EgtVerifyOutstroke(dX, dY, dZ, dRotAngMachDeg, 0, nStat)
|
||||||
Return nStat
|
Return nStat
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
Margin="0,5,0,0"
|
Margin="0,5,0,0"
|
||||||
Content="Verify"/>
|
Content="Verify"/>
|
||||||
<ToggleButton Name="MagneticBtn" Height="40" Width="80"
|
<ToggleButton Name="MagneticBtn" Height="40" Width="80"
|
||||||
|
Visibility="Collapsed"
|
||||||
Margin="0,5,0,0"
|
Margin="0,5,0,0"
|
||||||
Content="Magnetic"/>
|
Content="Magnetic"/>
|
||||||
<Button Name="ExportBtn" Height="40" Width="80"
|
<Button Name="ExportBtn" Height="40" Width="80"
|
||||||
|
|||||||
@@ -7,7 +7,8 @@ Public Class PrintPanelVM
|
|||||||
|
|
||||||
Public ReadOnly Property PrintToolTip As String
|
Public ReadOnly Property PrintToolTip As String
|
||||||
Get
|
Get
|
||||||
Return "Print shading" & vbCrLf & "Print hidden line (Shift)"
|
' "Print shading" & vbCrLf & "Print hidden line (Shift)"
|
||||||
|
Return "Print"
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -24,10 +25,22 @@ Public Class PrintPanelVM
|
|||||||
|
|
||||||
Public Sub Print(ByVal param As Object)
|
Public Sub Print(ByVal param As Object)
|
||||||
Dim SM_Select As SM = SM.SHADING
|
Dim SM_Select As SM = SM.SHADING
|
||||||
If (Keyboard.Modifiers And ModifierKeys.Shift) > 0 Then
|
|
||||||
|
' Imposto la stampa HiddenLine (non è gestita la stampa WireFrame)
|
||||||
|
'If (Keyboard.Modifiers And ModifierKeys.Shift) > 0 Then
|
||||||
|
' SM_Select = SM.HIDDENLINE
|
||||||
|
' EgtSetLineAttribs(3)
|
||||||
|
'End If
|
||||||
|
|
||||||
|
' Gestione stampa in funzione del della visualizzazione corrente
|
||||||
|
If OmagOFFICEMap.refShowPanelVM.WireframeIsChecked Then
|
||||||
|
SM_Select = SM.WIREFRAME
|
||||||
|
EgtSetLineAttribs(3)
|
||||||
|
ElseIf OmagOFFICEMap.refShowPanelVM.HiddenLineIsChecked Then
|
||||||
SM_Select = SM.HIDDENLINE
|
SM_Select = SM.HIDDENLINE
|
||||||
EgtSetLineAttribs(3)
|
EgtSetLineAttribs(3)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim printDlg As New PrintDialog
|
Dim printDlg As New PrintDialog
|
||||||
Dim sPath = OmagOFFICEMap.refMainWindowVM.MainWindowM.sTempDir & "\Image.png"
|
Dim sPath = OmagOFFICEMap.refMainWindowVM.MainWindowM.sTempDir & "\Image.png"
|
||||||
If printDlg.ShowDialog() Then
|
If printDlg.ShowDialog() Then
|
||||||
@@ -35,10 +48,9 @@ Public Class PrintPanelVM
|
|||||||
Dim dW As Double = printDlg.PrintableAreaWidth
|
Dim dW As Double = printDlg.PrintableAreaWidth
|
||||||
Dim dH As Double = printDlg.PrintableAreaHeight
|
Dim dH As Double = printDlg.PrintableAreaHeight
|
||||||
Try
|
Try
|
||||||
' Creo l'immagine da allegare
|
' Prendo l'immagine corrente per la stampa
|
||||||
' EgtZoom(ZM.ALL, True)
|
|
||||||
' Prendo l'immagine per la stampa
|
|
||||||
Dim colWhite As New Color3d(255, 255, 255)
|
Dim colWhite As New Color3d(255, 255, 255)
|
||||||
|
' Recupero le dimensioni correnti della pagina di disegno
|
||||||
Dim nImgW As Integer = GetWidthDimProjectV()
|
Dim nImgW As Integer = GetWidthDimProjectV()
|
||||||
Dim nImgH As Integer = GetHeightDimProjectV()
|
Dim nImgH As Integer = GetHeightDimProjectV()
|
||||||
If Not EgtGetImage(SM_Select, colWhite, colWhite, nImgW, nImgH, sPath) Then
|
If Not EgtGetImage(SM_Select, colWhite, colWhite, nImgW, nImgH, sPath) Then
|
||||||
@@ -63,12 +75,7 @@ Public Class PrintPanelVM
|
|||||||
Dim tmpImg As New Image
|
Dim tmpImg As New Image
|
||||||
tmpImg.BeginInit()
|
tmpImg.BeginInit()
|
||||||
tmpImg.Source = bitImage
|
tmpImg.Source = bitImage
|
||||||
'tmpImg.Margin = New Thickness(-100)
|
|
||||||
tmpImg.Stretch = Stretch.Uniform
|
tmpImg.Stretch = Stretch.Uniform
|
||||||
' ruoto a seconda dell'aspetto della pagina
|
|
||||||
'If (dH > dW And nImgH < nImgW) Or (dH < dW And nImgH > nImgW) Then
|
|
||||||
' tmpImg.LayoutTransform = New RotateTransform(-90)
|
|
||||||
'End If
|
|
||||||
tmpImg.EndInit()
|
tmpImg.EndInit()
|
||||||
' eseguo la stampa
|
' eseguo la stampa
|
||||||
printDlg.PrintVisual(tmpImg, "Parts Layout")
|
printDlg.PrintVisual(tmpImg, "Parts Layout")
|
||||||
|
|||||||
@@ -189,6 +189,10 @@ Public Class MyMachGroupPanelVM
|
|||||||
End If
|
End If
|
||||||
' Verifico che gli utensili delle lavorazioni correnti siano attrezzati (necessario perchè potrei aver cambiato gli utensili delle lavorazioni)
|
' Verifico che gli utensili delle lavorazioni correnti siano attrezzati (necessario perchè potrei aver cambiato gli utensili delle lavorazioni)
|
||||||
' e che le lavorazioni correnti siano compatibili con materiale e spessore
|
' e che le lavorazioni correnti siano compatibili con materiale e spessore
|
||||||
|
|
||||||
|
' Inizializzo l'elenco delle lavorazioni correnti
|
||||||
|
Dim CurrMachining As New CurrMachWindowVM
|
||||||
|
|
||||||
' Lama
|
' Lama
|
||||||
Dim bOkCurrSawing As Boolean = True
|
Dim bOkCurrSawing As Boolean = True
|
||||||
Dim bOkCurrWaterjetting As Boolean = True
|
Dim bOkCurrWaterjetting As Boolean = True
|
||||||
@@ -229,12 +233,13 @@ Public Class MyMachGroupPanelVM
|
|||||||
Else
|
Else
|
||||||
bOkCurrWaterjetting = False
|
bOkCurrWaterjetting = False
|
||||||
End If
|
End If
|
||||||
|
' Imposto il colore del pulsante SetUp
|
||||||
If Not bOkSetUp Then
|
If Not bOkSetUp Then
|
||||||
OmagOFFICEMap.refMachinePanelVM.SetUp_Background = Brushes.Red
|
OmagOFFICEMap.refMachinePanelVM.SetUp_Background = Brushes.Red
|
||||||
Else
|
Else
|
||||||
OmagOFFICEMap.refMachinePanelVM.SetUp_Background = DirectCast(New BrushConverter().ConvertFrom("#FFDDDDDD"), SolidColorBrush)
|
OmagOFFICEMap.refMachinePanelVM.SetUp_Background = DirectCast(New BrushConverter().ConvertFrom("#FFDDDDDD"), SolidColorBrush)
|
||||||
End If
|
End If
|
||||||
|
' Imposto il colore di sfondo del pulsante SettingMachinig
|
||||||
If Not bOkMatThick Or Not bOkCurrSawing Then
|
If Not bOkMatThick Or Not bOkCurrSawing Then
|
||||||
If Not bOkMatThick Or Not bOkCurrWaterjetting Then
|
If Not bOkMatThick Or Not bOkCurrWaterjetting Then
|
||||||
OmagOFFICEMap.refOptionPanelVM.RawPart_Background = Brushes.Red
|
OmagOFFICEMap.refOptionPanelVM.RawPart_Background = Brushes.Red
|
||||||
|
|||||||
@@ -2428,6 +2428,7 @@ Public Class NestingTabVM
|
|||||||
VeinMatching.OnDeselectPart(m_nIdToDesel)
|
VeinMatching.OnDeselectPart(m_nIdToDesel)
|
||||||
End If
|
End If
|
||||||
' Reset
|
' Reset
|
||||||
|
GetFamilyGroupInPark()
|
||||||
m_bDrag = False
|
m_bDrag = False
|
||||||
m_nIdToSel = GDB_ID.NULL
|
m_nIdToSel = GDB_ID.NULL
|
||||||
m_nIdToDesel = GDB_ID.NULL
|
m_nIdToDesel = GDB_ID.NULL
|
||||||
|
|||||||
@@ -137,10 +137,10 @@ Public Class SimulTabVM
|
|||||||
MyEstim.Estimation_IsEnabled = False
|
MyEstim.Estimation_IsEnabled = False
|
||||||
End If
|
End If
|
||||||
' Impostazioni box stime
|
' Impostazioni box stime
|
||||||
NotifyPropertyChanged("Time")
|
MyEstim.NotifyPropertyChanged("Time")
|
||||||
NotifyPropertyChanged("CutLen")
|
MyEstim.NotifyPropertyChanged("CutLen")
|
||||||
NotifyPropertyChanged("NetArea")
|
MyEstim.NotifyPropertyChanged("NetArea")
|
||||||
NotifyPropertyChanged("Usage")
|
MyEstim.NotifyPropertyChanged("Usage")
|
||||||
' Nascondo eventuali pezzi in parcheggio
|
' Nascondo eventuali pezzi in parcheggio
|
||||||
HideParkedParts()
|
HideParkedParts()
|
||||||
' Nascondo eventuale contorno da foto
|
' Nascondo eventuale contorno da foto
|
||||||
|
|||||||
Reference in New Issue
Block a user