Compare commits
31 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 12081cec28 | |||
| 27a54b0034 | |||
| c1aee47e53 | |||
| e59d50923b | |||
| e5fca60809 | |||
| f7631e5201 | |||
| 4604ae3558 | |||
| 624eb0566f | |||
| f45efb2310 | |||
| c32bfd55d0 | |||
| db65ef9e15 | |||
| d2a6a27200 | |||
| 6bad0e177f | |||
| 667b8fde7c | |||
| 48d0063167 | |||
| 13d89a3857 | |||
| df7bb978b8 | |||
| 088be26abf | |||
| 2e81f09a85 | |||
| 21692af684 | |||
| 6c36f856e6 | |||
| 33b90967c6 | |||
| 47ea4e3646 | |||
| cc41ca8d82 | |||
| 554b1a662e | |||
| 10a0745449 | |||
| 1a0eb0cb31 | |||
| 33176f40fa | |||
| bbb6d16483 | |||
| 57baab72d5 | |||
| 91d8e8aa1f |
@@ -3,6 +3,7 @@
|
|||||||
Public Const TABLE = "Table"
|
Public Const TABLE = "Table"
|
||||||
Public Const TABLE_OUTLINE = "TableOutline"
|
Public Const TABLE_OUTLINE = "TableOutline"
|
||||||
Public Const EXTRUSION_AREA = "ExtrusionArea"
|
Public Const EXTRUSION_AREA = "ExtrusionArea"
|
||||||
|
Public Const EXTRUSION_RECT = "ExtrusionRect"
|
||||||
Public Const PART = "Part"
|
Public Const PART = "Part"
|
||||||
Public Const PRINT_SOLID = "PrintSolid"
|
Public Const PRINT_SOLID = "PrintSolid"
|
||||||
Public Const LAY_MACH_START = "MachStart"
|
Public Const LAY_MACH_START = "MachStart"
|
||||||
@@ -108,6 +109,7 @@
|
|||||||
Public Const MAC_PREFLOWDELAY = "PreFlowDelay"
|
Public Const MAC_PREFLOWDELAY = "PreFlowDelay"
|
||||||
Public Const MAC_POSTFLOWDELAY = "PostFlowDelay"
|
Public Const MAC_POSTFLOWDELAY = "PostFlowDelay"
|
||||||
Public Const MAC_SCREWBACK = "ScrewBack"
|
Public Const MAC_SCREWBACK = "ScrewBack"
|
||||||
|
Public Const MAC_SLICINGHEIGHT = "SlicingHeight"
|
||||||
Public Const MAC_RIBSTYPE = "RibsType"
|
Public Const MAC_RIBSTYPE = "RibsType"
|
||||||
Public Const MAC_RIBSOVERLAP = "RibsOverlap"
|
Public Const MAC_RIBSOVERLAP = "RibsOverlap"
|
||||||
Public Const MAC_RIBSSTRANDCOUNT = "RibsStrandCount"
|
Public Const MAC_RIBSSTRANDCOUNT = "RibsStrandCount"
|
||||||
@@ -129,13 +131,35 @@
|
|||||||
Public Const MAC_SHELLNBRWIPEDIR = "ShellNbrWipeDir"
|
Public Const MAC_SHELLNBRWIPEDIR = "ShellNbrWipeDir"
|
||||||
Public Const MAC_AUXSOLIDSOVERLAP = "AuxSolidsOverlap"
|
Public Const MAC_AUXSOLIDSOVERLAP = "AuxSolidsOverlap"
|
||||||
Public Const MAC_AUXSOLIDSINFILL = "AuxSolidsInfill"
|
Public Const MAC_AUXSOLIDSINFILL = "AuxSolidsInfill"
|
||||||
|
Public Const MAC_AUXSOLIDSINFILLLINK = "AuxSolidsInfillLink"
|
||||||
|
Public Const MAC_AUXSOLIDSSTRANDCOUNT = "AuxSolidsStrandCount"
|
||||||
Public Const MAC_AUXSOLIDSSTRANDORDER = "AuxSolidsStrandOrder"
|
Public Const MAC_AUXSOLIDSSTRANDORDER = "AuxSolidsStrandOrder"
|
||||||
Public Const MAC_AUXSOLIDSLINKTYPE = "AuxSolidsLinkType"
|
Public Const MAC_AUXSOLIDSLINKTYPE = "AuxSolidsLinkType"
|
||||||
Public Const MAC_AUXSOLIDSLINKPARAM = "AuxSolidsLinkParam"
|
Public Const MAC_AUXSOLIDSLINKPARAM = "AuxSolidsLinkParam"
|
||||||
Public Const MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE = "AuxSolidsStartPointOffsetOnSlice"
|
Public Const MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE = "AuxSolidsStartPointOffsetOnSlice"
|
||||||
|
Public Const MAC_AUXSOLIDSOFFSETLEADPOINT = "AuxSolidsOffsetLeadPoint"
|
||||||
|
Public Const MAC_AUXSOLIDSDENSITY = "AuxSolidsDensity"
|
||||||
|
Public Const MAC_AUXSOLIDSGRIDOVERLAP = "AuxSolidsGridOverlap"
|
||||||
|
Public Const MAC_AUXSOLIDSDIRECTION = "AuxSolidsDirection"
|
||||||
|
Public Const MAC_AUXSOLIDSOFFSETX = "AuxSolidsOffsetX"
|
||||||
|
Public Const MAC_AUXSOLIDSOFFSETY = "AuxSolidsOffsetY"
|
||||||
Public Const MAC_AUXSOLIDSCOASTINGLEN = "AuxSolidsCoastingLen"
|
Public Const MAC_AUXSOLIDSCOASTINGLEN = "AuxSolidsCoastingLen"
|
||||||
Public Const MAC_AUXSOLIDSWIPELEN = "AuxSolidsWipeLen"
|
Public Const MAC_AUXSOLIDSWIPELEN = "AuxSolidsWipeLen"
|
||||||
Public Const MAC_AUXSOLIDSWIPEDIR = "AuxSolidsWipeDir"
|
Public Const MAC_AUXSOLIDSWIPEDIR = "AuxSolidsWipeDir"
|
||||||
|
Public Const MAC_FLOORTYPE = "FloorType"
|
||||||
|
Public Const MAC_CEILCOUNT = "CeilCount"
|
||||||
|
Public Const MAC_CEILTYPE = "CeilType"
|
||||||
|
Public Const MAC_INFILLTYPE = "InfillType"
|
||||||
|
Public Const MAC_INFILLLINK = "InfillLink"
|
||||||
|
Public Const MAC_INFILLDENSITY = "InfillDensity"
|
||||||
|
Public Const MAC_INFILLOVERLAP = "InfillOverlap"
|
||||||
|
Public Const MAC_INFILLGRIDOVERLAP = "InfillGridOverlap"
|
||||||
|
Public Const MAC_INFILLDIRECTION = "InfillDirection"
|
||||||
|
Public Const MAC_INFILLOFFSETX = "InfillOffsetX"
|
||||||
|
Public Const MAC_INFILLOFFSETY = "InfillOffsetY"
|
||||||
|
Public Const MAC_INFILLCOASTING = "InfillCoasting"
|
||||||
|
Public Const MAC_INFILLWIPE = "InfillWipe"
|
||||||
|
Public Const MAC_INFILLWIPEDIR = "InfillWipeDir"
|
||||||
Public Const MAC_DYNAMICMODE = "DynamicMode"
|
Public Const MAC_DYNAMICMODE = "DynamicMode"
|
||||||
Public Const MAC_PRINTORDER = "PrintOrder"
|
Public Const MAC_PRINTORDER = "PrintOrder"
|
||||||
Public Const MAC_CONSTANT = "Constant"
|
Public Const MAC_CONSTANT = "Constant"
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ Public Module ConstGen
|
|||||||
' File con dati di licenza
|
' File con dati di licenza
|
||||||
Public Const LIC_FILE_NAME As String = "Icarus.lic"
|
Public Const LIC_FILE_NAME As String = "Icarus.lic"
|
||||||
Public Const S_LICENCE As String = "Licence"
|
Public Const S_LICENCE As String = "Licence"
|
||||||
|
Public Const K_LOCKID As String = "LockId"
|
||||||
Public Const K_KEY As String = "Key"
|
Public Const K_KEY As String = "Key"
|
||||||
Public Const K_NESTKEY As String = "NestKey"
|
Public Const K_NESTKEY As String = "NestKey"
|
||||||
|
|
||||||
@@ -52,6 +53,7 @@ Public Module ConstGen
|
|||||||
' Abilitazioni licenza
|
' Abilitazioni licenza
|
||||||
Friend Enum KEY_OPT As UInteger
|
Friend Enum KEY_OPT As UInteger
|
||||||
BASE = 1 ' Prodotto Icarus
|
BASE = 1 ' Prodotto Icarus
|
||||||
|
MACHINE_EXPORT = 2 ' opzione per esportare file icrx per macchina
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
' File di log generale
|
' File di log generale
|
||||||
|
|||||||
@@ -26,6 +26,7 @@ Public Module ConstIni
|
|||||||
'Public Const K_MESSAGES As String = "Messages"
|
'Public Const K_MESSAGES As String = "Messages"
|
||||||
'Public Const K_WINPLACE As String = "WinPlace"
|
'Public Const K_WINPLACE As String = "WinPlace"
|
||||||
'Public Const K_LASTPROJ As String = "LastProj"
|
'Public Const K_LASTPROJ As String = "LastProj"
|
||||||
|
Public Const K_NETKEY As String = "NetKey"
|
||||||
Public Const K_LASTNGEDIR As String = "LastNgeDir"
|
Public Const K_LASTNGEDIR As String = "LastNgeDir"
|
||||||
Public Const K_LASTIMPDIR As String = "LastImpDir"
|
Public Const K_LASTIMPDIR As String = "LastImpDir"
|
||||||
'Public Const K_SUPPORT As String = "Support"
|
'Public Const K_SUPPORT As String = "Support"
|
||||||
@@ -122,8 +123,6 @@ Public Module ConstIni
|
|||||||
Public Const K_CLR_MACHSTART As String = "MachStart"
|
Public Const K_CLR_MACHSTART As String = "MachStart"
|
||||||
Public Const K_CLR_OTHERS As String = "Others"
|
Public Const K_CLR_OTHERS As String = "Others"
|
||||||
|
|
||||||
Public Const S_MINMAX As String = "MinMax"
|
|
||||||
|
|
||||||
Public Const S_MRUFILES As String = "MruFiles"
|
Public Const S_MRUFILES As String = "MruFiles"
|
||||||
Public Const S_MRUIMPORTFILES As String = "MruImportFiles"
|
Public Const S_MRUIMPORTFILES As String = "MruImportFiles"
|
||||||
|
|
||||||
|
|||||||
@@ -1,31 +1,6 @@
|
|||||||
Public Module ConstMachIni
|
Public Module ConstMachIni
|
||||||
|
|
||||||
Public Const MACH_INI_FILE_NAME As String = "MachData.ini"
|
Public Const MACH_INI_FILE_NAME As String = "MachData.ini"
|
||||||
Public Const GETWALLDATA_FILE_NAME As String = "GetWallData.lua"
|
|
||||||
Public Const GETTS3DATA_FILE_NAME As String = "GetTs3Data.lua"
|
|
||||||
|
|
||||||
Public Const K_NCTYPE As String = "NCType"
|
|
||||||
Public Const K_CONNECTIONSTRING As String = "ConnectionString"
|
|
||||||
|
|
||||||
Public Const S_CHANNELS As String = "Channels"
|
|
||||||
|
|
||||||
Public Const S_PARTPROGRAM As String = "PartProgram"
|
|
||||||
Public Const S_EXTENSION As String = "Extension"
|
|
||||||
|
|
||||||
' Variables della macchina corrente
|
|
||||||
Public Const S_MAINVARIABLES As String = "MainVariables"
|
|
||||||
Public Const S_VARIABLES As String = "Variables"
|
|
||||||
Public Const S_INPUTVARIABLES As String = "InputVariables"
|
|
||||||
Public Const S_OUTPUTVARIABLES As String = "OutputVariables"
|
|
||||||
Public Const S_MDI As String = "MDI"
|
|
||||||
|
|
||||||
Public Const K_BEAM As String = "Beam"
|
|
||||||
Public Const K_WALL As String = "Wall"
|
|
||||||
Public Const K_SCRIPT As String = "Scripts"
|
|
||||||
Public Const K_SETUP As String = "Setup"
|
|
||||||
Public Const K_FLOW As String = "Flow"
|
|
||||||
|
|
||||||
Public Const TS3DATA_FILE As String = "Ts3Data.lua"
|
|
||||||
|
|
||||||
Public Const S_MACHINING As String = "Machining"
|
Public Const S_MACHINING As String = "Machining"
|
||||||
Public Const K_MACH_INITSCRIPT As String = "InitScript"
|
Public Const K_MACH_INITSCRIPT As String = "InitScript"
|
||||||
@@ -35,5 +10,8 @@
|
|||||||
Public Const K_SLICINGTYPE As String = "SlicingType"
|
Public Const K_SLICINGTYPE As String = "SlicingType"
|
||||||
Public Const K_SPEED_MIN As String = "SpeedMin"
|
Public Const K_SPEED_MIN As String = "SpeedMin"
|
||||||
Public Const K_SPEED_MAX As String = "SpeedMax"
|
Public Const K_SPEED_MAX As String = "SpeedMax"
|
||||||
|
Public Const K_MAX_HEIGHT As String = "HMax"
|
||||||
|
|
||||||
|
Public Const S_MINMAX As String = "MinMax"
|
||||||
|
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -111,6 +111,7 @@ Public Class CurrMachining
|
|||||||
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.RIBS, nPartId, m_nIndex, False))
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.RIBS, nPartId, m_nIndex, False))
|
||||||
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.SHELL_NUMBER, nPartId, m_nIndex, False))
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.SHELL_NUMBER, nPartId, m_nIndex, False))
|
||||||
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.AUX_SOLID, nPartId, m_nIndex, False))
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.AUX_SOLID, nPartId, m_nIndex, False))
|
||||||
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.INFILL, nPartId, m_nIndex, False))
|
||||||
For Each Cathegory In m_CathegoryList
|
For Each Cathegory In m_CathegoryList
|
||||||
For Each MachiningParam In Cathegory.MachiningParamList
|
For Each MachiningParam In Cathegory.MachiningParamList
|
||||||
AddHandler MachiningParam.PropertyChanged, AddressOf OnMachiningParamPropertyChanged
|
AddHandler MachiningParam.PropertyChanged, AddressOf OnMachiningParamPropertyChanged
|
||||||
@@ -128,6 +129,7 @@ Public Class CurrMachining
|
|||||||
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.RIBS, nPartId, m_nIndex, True))
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.RIBS, nPartId, m_nIndex, True))
|
||||||
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.SHELL_NUMBER, nPartId, m_nIndex, True))
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.SHELL_NUMBER, nPartId, m_nIndex, True))
|
||||||
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.AUX_SOLID, nPartId, m_nIndex, True))
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.AUX_SOLID, nPartId, m_nIndex, True))
|
||||||
|
m_CathegoryList.Add(New CurrMachiningCathegory(MachiningCathegory.Cathegories.INFILL, nPartId, m_nIndex, True))
|
||||||
For Each Cathegory In m_CathegoryList
|
For Each Cathegory In m_CathegoryList
|
||||||
For Each MachiningParam In Cathegory.MachiningParamList
|
For Each MachiningParam In Cathegory.MachiningParamList
|
||||||
AddHandler MachiningParam.PropertyChanged, AddressOf OnMachiningParamPropertyChanged
|
AddHandler MachiningParam.PropertyChanged, AddressOf OnMachiningParamPropertyChanged
|
||||||
@@ -209,7 +211,6 @@ Public Class CurrMachiningCathegory
|
|||||||
New CurrNumericMachiningParam(MachiningParam.Params.STARTPOINTOFFSETONSLICE, nPartId, nIndex, bForceFromDb, Me),
|
New CurrNumericMachiningParam(MachiningParam.Params.STARTPOINTOFFSETONSLICE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrComboMachiningParam(MachiningParam.Params.STRANDORDER, nPartId, nIndex, bForceFromDb, Me),
|
New CurrComboMachiningParam(MachiningParam.Params.STRANDORDER, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrComboMachiningParam(MachiningParam.Params.DIRECTION, nPartId, nIndex, bForceFromDb, Me),
|
New CurrComboMachiningParam(MachiningParam.Params.DIRECTION, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.FLOORCOUNT, nPartId, nIndex, bForceFromDb, Me),
|
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.G0FEED, nPartId, nIndex, bForceFromDb, Me),
|
New CurrNumericMachiningParam(MachiningParam.Params.G0FEED, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.G0FEEDZ, nPartId, nIndex, bForceFromDb, Me),
|
New CurrNumericMachiningParam(MachiningParam.Params.G0FEEDZ, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.LINKZUP, nPartId, nIndex, bForceFromDb, Me),
|
New CurrNumericMachiningParam(MachiningParam.Params.LINKZUP, nPartId, nIndex, bForceFromDb, Me),
|
||||||
@@ -219,7 +220,8 @@ Public Class CurrMachiningCathegory
|
|||||||
New CurrOrderedMachiningParam(MachiningParam.Params.PRINT_ORDER, nPartId, nIndex, bForceFromDb, Me),
|
New CurrOrderedMachiningParam(MachiningParam.Params.PRINT_ORDER, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.PREFLOWDELAY, nPartId, nIndex, bForceFromDb, Me),
|
New CurrNumericMachiningParam(MachiningParam.Params.PREFLOWDELAY, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.POSTFLOWDELAY, nPartId, nIndex, bForceFromDb, Me),
|
New CurrNumericMachiningParam(MachiningParam.Params.POSTFLOWDELAY, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.SCREWBACK, nPartId, nIndex, bForceFromDb, Me)})
|
New CurrNumericMachiningParam(MachiningParam.Params.SCREWBACK, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.SLICINGHEIGHT, nPartId, nIndex, bForceFromDb, Me)})
|
||||||
Case Cathegories.LINK
|
Case Cathegories.LINK
|
||||||
m_sName = "Shell"
|
m_sName = "Shell"
|
||||||
m_MachiningParamList = New List(Of MachiningParam)({New CurrComboMachiningParam(MachiningParam.Params.LINKTYPE, nPartId, nIndex, bForceFromDb, Me),
|
m_MachiningParamList = New List(Of MachiningParam)({New CurrComboMachiningParam(MachiningParam.Params.LINKTYPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
@@ -261,20 +263,45 @@ Public Class CurrMachiningCathegory
|
|||||||
New CurrNumericMachiningParam(MachiningParam.Params.SHELLNBRWIPEDIR, nPartId, nIndex, bForceFromDb, Me)})
|
New CurrNumericMachiningParam(MachiningParam.Params.SHELLNBRWIPEDIR, nPartId, nIndex, bForceFromDb, Me)})
|
||||||
Case Cathegories.AUX_SOLID
|
Case Cathegories.AUX_SOLID
|
||||||
m_sName = "Filled Solid"
|
m_sName = "Filled Solid"
|
||||||
m_MachiningParamList = New List(Of MachiningParam)({New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOVERLAP, nPartId, nIndex, bForceFromDb, Me),
|
m_MachiningParamList = New List(Of MachiningParam)({New CurrComboMachiningParam(MachiningParam.Params.AUXSOLIDSINFILL, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrComboMachiningParam(MachiningParam.Params.AUXSOLIDSINFILL, nPartId, nIndex, bForceFromDb, Me),
|
New CurrCheckMachiningParam(MachiningParam.Params.AUXSOLIDSINFILLLINK, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDCOUNT, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrComboMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDORDER, nPartId, nIndex, bForceFromDb, Me),
|
New CurrComboMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDORDER, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrComboMachiningParam(MachiningParam.Params.AUXSOLIDSLINKTYPE, nPartId, nIndex, bForceFromDb, Me),
|
New CurrComboMachiningParam(MachiningParam.Params.AUXSOLIDSLINKTYPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSLINKPARAM, nPartId, nIndex, bForceFromDb, Me),
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSLINKPARAM, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE, nPartId, nIndex, bForceFromDb, Me),
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETLEADPOINT, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSDENSITY, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSGRIDOVERLAP, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSDIRECTION, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETX, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETY, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOVERLAP, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSCOASTINGLEN, nPartId, nIndex, bForceFromDb, Me),
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSCOASTINGLEN, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPELEN, nPartId, nIndex, bForceFromDb, Me),
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPELEN, nPartId, nIndex, bForceFromDb, Me),
|
||||||
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPEDIR, nPartId, nIndex, bForceFromDb, Me)})
|
New CurrNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPEDIR, nPartId, nIndex, bForceFromDb, Me)})
|
||||||
|
Case Cathegories.INFILL
|
||||||
|
m_sName = "Infill"
|
||||||
|
m_MachiningParamList = New List(Of MachiningParam)({New CurrNumericMachiningParam(MachiningParam.Params.FLOORCOUNT, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrComboMachiningParam(MachiningParam.Params.FLOORTYPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.CEILCOUNT, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrComboMachiningParam(MachiningParam.Params.CEILTYPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrComboMachiningParam(MachiningParam.Params.INFILLTYPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrCheckMachiningParam(MachiningParam.Params.INFILLLINK, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLDENSITY, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLGRIDOVERLAP, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLDIRECTION, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLOFFSETX, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLOFFSETY, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLOVERLAP, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLCOASTING, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLWIPE, nPartId, nIndex, bForceFromDb, Me),
|
||||||
|
New CurrNumericMachiningParam(MachiningParam.Params.INFILLWIPEDIR, nPartId, nIndex, bForceFromDb, Me)})
|
||||||
End Select
|
End Select
|
||||||
' verifico dipendenze tra parametri
|
' verifico dipendenze tra parametri
|
||||||
Select Case m_Type
|
Select Case m_Type
|
||||||
Case Cathegories.LINK
|
Case Cathegories.LINK
|
||||||
For Each Param In {MachiningParam.Params.LINKTYPE, MachiningParam.Params.LEADIN}
|
For Each Param In {MachiningParam.Params.LINKTYPE, MachiningParam.Params.LEADIN, MachiningParam.Params.LEADOUT}
|
||||||
Dim MachiningParam As ComboMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
Dim MachiningParam As ComboMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
MachiningParam.ManageDependencyParam()
|
MachiningParam.ManageDependencyParam()
|
||||||
Next
|
Next
|
||||||
@@ -288,6 +315,19 @@ Public Class CurrMachiningCathegory
|
|||||||
Dim MachiningParam As ComboMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
Dim MachiningParam As ComboMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
MachiningParam.ManageDependencyParam()
|
MachiningParam.ManageDependencyParam()
|
||||||
Next
|
Next
|
||||||
|
For Each Param In {MachiningParam.Params.AUXSOLIDSSTRANDCOUNT}
|
||||||
|
Dim MachiningParam As NumericMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
|
MachiningParam.ManageDependencyParam()
|
||||||
|
Next
|
||||||
|
Case Cathegories.INFILL
|
||||||
|
For Each Param In {MachiningParam.Params.FLOORCOUNT, MachiningParam.Params.CEILCOUNT}
|
||||||
|
Dim MachiningParam As NumericMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
|
MachiningParam.ManageDependencyParam()
|
||||||
|
Next
|
||||||
|
For Each Param In {MachiningParam.Params.INFILLTYPE}
|
||||||
|
Dim MachiningParam As ComboMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
|
MachiningParam.ManageDependencyParam()
|
||||||
|
Next
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -328,6 +368,7 @@ Public Class CurrNumericMachiningParam
|
|||||||
End If
|
End If
|
||||||
NotifyPropertyChanged(NameOf(sValue))
|
NotifyPropertyChanged(NameOf(sValue))
|
||||||
NotifyPropertyChanged(NameOf(bIsModifiedFromDb))
|
NotifyPropertyChanged(NameOf(bIsModifiedFromDb))
|
||||||
|
ManageDependencyParam()
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -426,6 +467,9 @@ Public Class CurrNumericMachiningParam
|
|||||||
Case Params.SCREWBACK
|
Case Params.SCREWBACK
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_SCREWBACK, m_dValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_SCREWBACK, m_dValue)
|
||||||
m_bIsLen = True
|
m_bIsLen = True
|
||||||
|
Case Params.SLICINGHEIGHT
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_SLICINGHEIGHT, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
Case Params.RIBSOVERLAP
|
Case Params.RIBSOVERLAP
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSOVERLAP, m_dValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSOVERLAP, m_dValue)
|
||||||
m_bIsLen = False
|
m_bIsLen = False
|
||||||
@@ -465,9 +509,30 @@ Public Class CurrNumericMachiningParam
|
|||||||
Case Params.AUXSOLIDSLINKPARAM
|
Case Params.AUXSOLIDSLINKPARAM
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSLINKPARAM, m_dValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSLINKPARAM, m_dValue)
|
||||||
m_bIsLen = True
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSSTRANDCOUNT
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSSTRANDCOUNT, m_dValue)
|
||||||
|
m_bIsLen = False
|
||||||
Case Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE
|
Case Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, m_dValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, m_dValue)
|
||||||
m_bIsLen = True
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSOFFSETLEADPOINT
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSOFFSETLEADPOINT, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSDENSITY
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSDENSITY, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSGRIDOVERLAP
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSGRIDOVERLAP, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSDIRECTION
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSDIRECTION, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSOFFSETX
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSOFFSETX, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSOFFSETY
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSOFFSETY, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
Case Params.AUXSOLIDSCOASTINGLEN
|
Case Params.AUXSOLIDSCOASTINGLEN
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSCOASTINGLEN, m_dValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSCOASTINGLEN, m_dValue)
|
||||||
m_bIsLen = True
|
m_bIsLen = True
|
||||||
@@ -480,13 +545,43 @@ Public Class CurrNumericMachiningParam
|
|||||||
Case Params.FLOWRATE_PC
|
Case Params.FLOWRATE_PC
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_CONSTANT, m_dValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_CONSTANT, m_dValue)
|
||||||
m_bIsLen = False
|
m_bIsLen = False
|
||||||
|
Case Params.CEILCOUNT
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_CEILCOUNT, m_dValue)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLDENSITY
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLDENSITY, m_dValue)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLOVERLAP
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLOVERLAP, m_dValue)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLGRIDOVERLAP
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLGRIDOVERLAP, m_dValue)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLDIRECTION
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLDIRECTION, m_dValue)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLOFFSETX
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLOFFSETX, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.INFILLOFFSETY
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLOFFSETY, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.INFILLCOASTING
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLCOASTING, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.INFILLWIPE
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLWIPE, m_dValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.INFILLWIPEDIR
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLWIPEDIR, m_dValue)
|
||||||
|
m_bIsLen = False
|
||||||
End Select
|
End Select
|
||||||
m_dOrigValue = m_dValue
|
m_dOrigValue = m_dValue
|
||||||
If nIndex > 0 Then
|
If nIndex > 0 Then
|
||||||
Dim DbMachining As Machining = Map.refMachiningDbVM.MachiningList.FirstOrDefault(Function(x) x.nIndex = nIndex)
|
Dim DbMachining As Machining = Map.refMachiningDbVM.MachiningList.FirstOrDefault(Function(x) x.nIndex = nIndex)
|
||||||
Select Case Type
|
Select Case Type
|
||||||
Case Params.STRANDH, Params.STRANDW, Params.STRANDCOUNT, Params.OFFSET, Params.STRANDOVERLAP, Params.STARTPOINTOFFSETONSLICE,
|
Case Params.STRANDH, Params.STRANDW, Params.STRANDCOUNT, Params.OFFSET, Params.STRANDOVERLAP, Params.STARTPOINTOFFSETONSLICE,
|
||||||
Params.FLOORCOUNT, Params.G0FEED, Params.G0FEEDZ, Params.LINKZUP, Params.TOOLDIAM, Params.FLOWRATE_PC, Params.PREFLOWDELAY, Params.POSTFLOWDELAY, Params.SCREWBACK
|
Params.G0FEED, Params.G0FEEDZ, Params.LINKZUP, Params.TOOLDIAM, Params.FLOWRATE_PC, Params.PREFLOWDELAY, Params.POSTFLOWDELAY, Params.SCREWBACK, Params.SLICINGHEIGHT
|
||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.GENERAL).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.GENERAL).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
Case Params.LINKPARAM, Params.OFFSETLEADPOINT, Params.LEADINTANGDIST, Params.LEADINORTHODIST,
|
Case Params.LINKPARAM, Params.OFFSETLEADPOINT, Params.LEADINTANGDIST, Params.LEADINORTHODIST,
|
||||||
Params.LEADOUTTANGDIST, Params.LEADOUTORTHODIST, Params.COASTINGLEN, Params.COASTINGFEED_PC,
|
Params.LEADOUTTANGDIST, Params.LEADOUTORTHODIST, Params.COASTINGLEN, Params.COASTINGFEED_PC,
|
||||||
@@ -499,8 +594,14 @@ Public Class CurrNumericMachiningParam
|
|||||||
Case Params.SHELLNBRDIFFERENCE, Params.SHELLNBRCOASTING, Params.SHELLNBRWIPE, Params.SHELLNBRWIPEDIR
|
Case Params.SHELLNBRDIFFERENCE, Params.SHELLNBRCOASTING, Params.SHELLNBRWIPE, Params.SHELLNBRWIPEDIR
|
||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.SHELL_NUMBER).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.SHELL_NUMBER).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
Case Params.AUXSOLIDSOVERLAP, Params.AUXSOLIDSLINKPARAM, Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE,
|
Case Params.AUXSOLIDSOVERLAP, Params.AUXSOLIDSLINKPARAM, Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE,
|
||||||
Params.AUXSOLIDSCOASTINGLEN, Params.AUXSOLIDSWIPELEN, Params.AUXSOLIDSWIPEDIR
|
Params.AUXSOLIDSOFFSETLEADPOINT, Params.AUXSOLIDSDENSITY, Params.AUXSOLIDSGRIDOVERLAP,
|
||||||
|
Params.AUXSOLIDSDIRECTION, Params.AUXSOLIDSOFFSETX, Params.AUXSOLIDSOFFSETY,
|
||||||
|
Params.AUXSOLIDSCOASTINGLEN, Params.AUXSOLIDSWIPELEN, Params.AUXSOLIDSWIPEDIR, Params.AUXSOLIDSSTRANDCOUNT
|
||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.AUX_SOLID).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.AUX_SOLID).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
|
Case Params.FLOORCOUNT, Params.CEILCOUNT, Params.INFILLDENSITY, Params.INFILLOVERLAP,
|
||||||
|
Params.INFILLGRIDOVERLAP, Params.INFILLDIRECTION, Params.INFILLOFFSETX,
|
||||||
|
Params.INFILLOFFSETY, Params.INFILLCOASTING, Params.INFILLWIPE, Params.INFILLWIPEDIR
|
||||||
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.INFILL).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
End Select
|
End Select
|
||||||
If bForceFromDb OrElse Not bReadFromPart Then
|
If bForceFromDb OrElse Not bReadFromPart Then
|
||||||
m_dValue = m_DbParam.dOrigValue
|
m_dValue = m_DbParam.dOrigValue
|
||||||
@@ -573,6 +674,8 @@ Public Class CurrNumericMachiningParam
|
|||||||
EgtSetInfo(nPartId, MAC_POSTFLOWDELAY, sWriteValue)
|
EgtSetInfo(nPartId, MAC_POSTFLOWDELAY, sWriteValue)
|
||||||
Case Params.SCREWBACK
|
Case Params.SCREWBACK
|
||||||
EgtSetInfo(nPartId, MAC_SCREWBACK, sWriteValue)
|
EgtSetInfo(nPartId, MAC_SCREWBACK, sWriteValue)
|
||||||
|
Case Params.SLICINGHEIGHT
|
||||||
|
EgtSetInfo(nPartId, MAC_SLICINGHEIGHT, sWriteValue)
|
||||||
Case Params.RIBSOVERLAP
|
Case Params.RIBSOVERLAP
|
||||||
EgtSetInfo(nPartId, MAC_RIBSOVERLAP, sWriteValue)
|
EgtSetInfo(nPartId, MAC_RIBSOVERLAP, sWriteValue)
|
||||||
Case Params.RIBSSTRANDCOUNT
|
Case Params.RIBSSTRANDCOUNT
|
||||||
@@ -595,12 +698,26 @@ Public Class CurrNumericMachiningParam
|
|||||||
EgtSetInfo(nPartId, MAC_SHELLNBRWIPE, sWriteValue)
|
EgtSetInfo(nPartId, MAC_SHELLNBRWIPE, sWriteValue)
|
||||||
Case Params.SHELLNBRWIPEDIR
|
Case Params.SHELLNBRWIPEDIR
|
||||||
EgtSetInfo(nPartId, MAC_SHELLNBRWIPEDIR, sWriteValue)
|
EgtSetInfo(nPartId, MAC_SHELLNBRWIPEDIR, sWriteValue)
|
||||||
|
Case Params.AUXSOLIDSSTRANDCOUNT
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSSTRANDCOUNT, sWriteValue)
|
||||||
Case Params.AUXSOLIDSOVERLAP
|
Case Params.AUXSOLIDSOVERLAP
|
||||||
EgtSetInfo(nPartId, MAC_AUXSOLIDSOVERLAP, sWriteValue)
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSOVERLAP, sWriteValue)
|
||||||
Case Params.AUXSOLIDSLINKPARAM
|
Case Params.AUXSOLIDSLINKPARAM
|
||||||
EgtSetInfo(nPartId, MAC_AUXSOLIDSLINKPARAM, sWriteValue)
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSLINKPARAM, sWriteValue)
|
||||||
Case Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE
|
Case Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE
|
||||||
EgtSetInfo(nPartId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, sWriteValue)
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, sWriteValue)
|
||||||
|
Case Params.AUXSOLIDSOFFSETLEADPOINT
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSOFFSETLEADPOINT, sWriteValue)
|
||||||
|
Case Params.AUXSOLIDSDENSITY
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSDENSITY, sWriteValue)
|
||||||
|
Case Params.AUXSOLIDSGRIDOVERLAP
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSGRIDOVERLAP, sWriteValue)
|
||||||
|
Case Params.AUXSOLIDSDIRECTION
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSDIRECTION, sWriteValue)
|
||||||
|
Case Params.AUXSOLIDSOFFSETX
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSOFFSETX, sWriteValue)
|
||||||
|
Case Params.AUXSOLIDSOFFSETY
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSOFFSETY, sWriteValue)
|
||||||
Case Params.AUXSOLIDSCOASTINGLEN
|
Case Params.AUXSOLIDSCOASTINGLEN
|
||||||
EgtSetInfo(nPartId, MAC_AUXSOLIDSCOASTINGLEN, sWriteValue)
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSCOASTINGLEN, sWriteValue)
|
||||||
Case Params.AUXSOLIDSWIPELEN
|
Case Params.AUXSOLIDSWIPELEN
|
||||||
@@ -609,6 +726,26 @@ Public Class CurrNumericMachiningParam
|
|||||||
EgtSetInfo(nPartId, MAC_AUXSOLIDSWIPEDIR, sWriteValue)
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSWIPEDIR, sWriteValue)
|
||||||
Case Params.FLOWRATE_PC
|
Case Params.FLOWRATE_PC
|
||||||
EgtSetInfo(nPartId, MAC_CONSTANT, sWriteValue)
|
EgtSetInfo(nPartId, MAC_CONSTANT, sWriteValue)
|
||||||
|
Case Params.CEILCOUNT
|
||||||
|
EgtSetInfo(nPartId, MAC_CEILCOUNT, sWriteValue)
|
||||||
|
Case Params.INFILLDENSITY
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLDENSITY, sWriteValue)
|
||||||
|
Case Params.INFILLOVERLAP
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLOVERLAP, sWriteValue)
|
||||||
|
Case Params.INFILLGRIDOVERLAP
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLGRIDOVERLAP, sWriteValue)
|
||||||
|
Case Params.INFILLDIRECTION
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLDIRECTION, sWriteValue)
|
||||||
|
Case Params.INFILLOFFSETX
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLOFFSETX, sWriteValue)
|
||||||
|
Case Params.INFILLOFFSETY
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLOFFSETY, sWriteValue)
|
||||||
|
Case Params.INFILLCOASTING
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLCOASTING, sWriteValue)
|
||||||
|
Case Params.INFILLWIPE
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLWIPE, sWriteValue)
|
||||||
|
Case Params.INFILLWIPEDIR
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLWIPEDIR, sWriteValue)
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -811,9 +948,14 @@ Public Class CurrComboMachiningParam
|
|||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSTYPE, nSelValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSTYPE, nSelValue)
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
||||||
Case Params.AUXSOLIDSINFILL
|
Case Params.AUXSOLIDSINFILL
|
||||||
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL.NONE, "None"),
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL_TYPE.NONE, "None"),
|
||||||
New IdNameStruct(Machining.MPAR_INFILL.OFFSET, "Offset"),
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.OFFSET, "Offset"),
|
||||||
New IdNameStruct(Machining.MPAR_INFILL.ZIGZAG, "ZigZag")})
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG, "ZigZag"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.LINES, "Lines"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.GRID, "Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG_GRID, "Zigzag Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB, "Honeycomb"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB_GRID, "Honeycomb Grid")})
|
||||||
Dim nSelValue As Integer = 0
|
Dim nSelValue As Integer = 0
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSINFILL, nSelValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSINFILL, nSelValue)
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
||||||
@@ -836,6 +978,28 @@ Public Class CurrComboMachiningParam
|
|||||||
Dim nSelValue As Integer = 0
|
Dim nSelValue As Integer = 0
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_DYNAMICMODE, nSelValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_DYNAMICMODE, nSelValue)
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
||||||
|
Case Params.FLOORTYPE
|
||||||
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL_TYPE.OFFSET, "Offset"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG, "ZigZag")})
|
||||||
|
Dim nSelValue As Integer = 0
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_FLOORTYPE, nSelValue)
|
||||||
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
||||||
|
Case Params.CEILTYPE
|
||||||
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL_TYPE.OFFSET, "Offset"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG, "ZigZag")})
|
||||||
|
Dim nSelValue As Integer = 0
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_CEILTYPE, nSelValue)
|
||||||
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
||||||
|
Case Params.INFILLTYPE
|
||||||
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL_TYPE.NONE, "None"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.LINES, "Lines"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.GRID, "Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG_GRID, "Zigzag Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB, "Honeycomb"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB_GRID, "Honeycomb Grid")})
|
||||||
|
Dim nSelValue As Integer = 0
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLTYPE, nSelValue)
|
||||||
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = nSelValue)
|
||||||
End Select
|
End Select
|
||||||
m_OrigSelValue = m_SelValue
|
m_OrigSelValue = m_SelValue
|
||||||
If nIndex > 0 Then
|
If nIndex > 0 Then
|
||||||
@@ -849,6 +1013,8 @@ Public Class CurrComboMachiningParam
|
|||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.RIBS).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.RIBS).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
Case Params.AUXSOLIDSINFILL, Params.AUXSOLIDSSTRANDORDER, Params.AUXSOLIDSLINKTYPE
|
Case Params.AUXSOLIDSINFILL, Params.AUXSOLIDSSTRANDORDER, Params.AUXSOLIDSLINKTYPE
|
||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.AUX_SOLID).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.AUX_SOLID).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
|
Case Params.FLOORTYPE, Params.CEILTYPE, Params.INFILLTYPE
|
||||||
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.INFILL).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
End Select
|
End Select
|
||||||
If bForceFromDb OrElse Not bReadFromPart Then
|
If bForceFromDb OrElse Not bReadFromPart Then
|
||||||
m_SelValue = m_DbParam.OrigSelValue
|
m_SelValue = m_DbParam.OrigSelValue
|
||||||
@@ -887,6 +1053,12 @@ Public Class CurrComboMachiningParam
|
|||||||
EgtSetInfo(nPartId, MAC_AUXSOLIDSLINKTYPE, m_SelValue.Id)
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSLINKTYPE, m_SelValue.Id)
|
||||||
Case Params.DYNAMIC_MODE
|
Case Params.DYNAMIC_MODE
|
||||||
EgtSetInfo(nPartId, MAC_DYNAMICMODE, m_SelValue.Id)
|
EgtSetInfo(nPartId, MAC_DYNAMICMODE, m_SelValue.Id)
|
||||||
|
Case Params.FLOORTYPE
|
||||||
|
EgtSetInfo(nPartId, MAC_FLOORTYPE, m_SelValue.Id)
|
||||||
|
Case Params.CEILTYPE
|
||||||
|
EgtSetInfo(nPartId, MAC_CEILTYPE, m_SelValue.Id)
|
||||||
|
Case Params.INFILLTYPE
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLTYPE, m_SelValue.Id)
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -976,6 +1148,10 @@ Public Class CurrCheckMachiningParam
|
|||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSLEADOUTINVERT, m_bValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSLEADOUTINVERT, m_bValue)
|
||||||
Case Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
Case Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
||||||
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSLIMITUNBOUNDEDWITHSOLID, m_bValue)
|
bReadFromPart = EgtGetInfo(nPartId, MAC_RIBSLIMITUNBOUNDEDWITHSOLID, m_bValue)
|
||||||
|
Case Params.AUXSOLIDSINFILLLINK
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_AUXSOLIDSINFILLLINK, m_bValue)
|
||||||
|
Case Params.INFILLLINK
|
||||||
|
bReadFromPart = EgtGetInfo(nPartId, MAC_INFILLLINK, m_bValue)
|
||||||
End Select
|
End Select
|
||||||
m_bOrigValue = m_bValue
|
m_bOrigValue = m_bValue
|
||||||
If nIndex > 0 Then
|
If nIndex > 0 Then
|
||||||
@@ -985,6 +1161,10 @@ Public Class CurrCheckMachiningParam
|
|||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.GENERAL).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.GENERAL).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
Case Params.RIBSLINK, Params.RIBSINVERTORDER, Params.RIBSINVERTDIRECTION, Params.RIBSINVERTSTRANDORDER, Params.RIBSLEADININVERT, Params.RIBSLEADOUTINVERT, Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
Case Params.RIBSLINK, Params.RIBSINVERTORDER, Params.RIBSINVERTDIRECTION, Params.RIBSINVERTSTRANDORDER, Params.RIBSLEADININVERT, Params.RIBSLEADOUTINVERT, Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
||||||
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.RIBS).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.RIBS).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
|
Case Params.AUXSOLIDSINFILLLINK
|
||||||
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.AUX_SOLID).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
|
Case Params.INFILLLINK
|
||||||
|
m_DbParam = DbMachining.CathegoryList.FirstOrDefault(Function(y) y.Type = MachiningCathegory.Cathegories.INFILL).MachiningParamList.FirstOrDefault(Function(z) z.Type = m_Type)
|
||||||
End Select
|
End Select
|
||||||
If bForceFromDb OrElse Not bReadFromPart Then
|
If bForceFromDb OrElse Not bReadFromPart Then
|
||||||
m_bValue = m_DbParam.bOrigValue
|
m_bValue = m_DbParam.bOrigValue
|
||||||
@@ -1011,6 +1191,10 @@ Public Class CurrCheckMachiningParam
|
|||||||
EgtSetInfo(nPartId, MAC_RIBSLEADOUTINVERT, If(m_bValue, 1, 0))
|
EgtSetInfo(nPartId, MAC_RIBSLEADOUTINVERT, If(m_bValue, 1, 0))
|
||||||
Case Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
Case Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
||||||
EgtSetInfo(nPartId, MAC_RIBSLIMITUNBOUNDEDWITHSOLID, If(m_bValue, 1, 0))
|
EgtSetInfo(nPartId, MAC_RIBSLIMITUNBOUNDEDWITHSOLID, If(m_bValue, 1, 0))
|
||||||
|
Case Params.AUXSOLIDSINFILLLINK
|
||||||
|
EgtSetInfo(nPartId, MAC_AUXSOLIDSINFILLLINK, If(m_bValue, 1, 0))
|
||||||
|
Case Params.INFILLLINK
|
||||||
|
EgtSetInfo(nPartId, MAC_INFILLLINK, If(m_bValue, 1, 0))
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -54,9 +54,16 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding sName}"
|
<StackPanel Orientation="Horizontal">
|
||||||
Margin="0,0,2.5,0"
|
<TextBlock Text="{Binding sName, Mode=OneWay}"
|
||||||
Style="{StaticResource ParameterList_TextBlock}"/>
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
<TextBlock Text=" (BETA)"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Foreground="Red"
|
||||||
|
Visibility="{Binding IsBeta_Visibility}"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
</StackPanel>
|
||||||
<EgtWPFLib5:EgtTextBox2 Grid.Column="1"
|
<EgtWPFLib5:EgtTextBox2 Grid.Column="1"
|
||||||
Text="{Binding sValue, UpdateSourceTrigger=Explicit}"
|
Text="{Binding sValue, UpdateSourceTrigger=Explicit}"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="2.5,0,2.5,0"
|
||||||
@@ -79,9 +86,16 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding sName}"
|
<StackPanel Orientation="Horizontal">
|
||||||
Margin="0,0,2.5,0"
|
<TextBlock Text="{Binding sName, Mode=OneWay}"
|
||||||
Style="{StaticResource ParameterList_TextBlock}"/>
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
<TextBlock Text=" (BETA)"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Foreground="Red"
|
||||||
|
Visibility="{Binding IsBeta_Visibility}"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
</StackPanel>
|
||||||
<ComboBox Grid.Column="1"
|
<ComboBox Grid.Column="1"
|
||||||
ItemsSource="{Binding ValueList}"
|
ItemsSource="{Binding ValueList}"
|
||||||
SelectedItem="{Binding SelValue}"
|
SelectedItem="{Binding SelValue}"
|
||||||
@@ -107,9 +121,16 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding sName}"
|
<StackPanel Orientation="Horizontal">
|
||||||
Margin="0,0,2.5,0"
|
<TextBlock Text="{Binding sName, Mode=OneWay}"
|
||||||
Style="{StaticResource ParameterList_TextBlock}"/>
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
<TextBlock Text=" (BETA)"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Foreground="Red"
|
||||||
|
Visibility="{Binding IsBeta_Visibility}"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
</StackPanel>
|
||||||
<CheckBox Grid.Column="1"
|
<CheckBox Grid.Column="1"
|
||||||
IsChecked="{Binding bValue}"
|
IsChecked="{Binding bValue}"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
|
|||||||
@@ -35,6 +35,10 @@ Public Class FilledSolidPanelVM
|
|||||||
Return m_SelFilledSolid
|
Return m_SelFilledSolid
|
||||||
End Get
|
End Get
|
||||||
Set(value As FilledSolidEntity)
|
Set(value As FilledSolidEntity)
|
||||||
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse Map.refFilledSolidPanelVM.bCPlaneObj_IsActive Then
|
||||||
|
NotifyPropertyChanged(NameOf(SelFilledSolid))
|
||||||
|
Return
|
||||||
|
End If
|
||||||
m_SelFilledSolid = value
|
m_SelFilledSolid = value
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
If Not IsNothing(value) Then
|
If Not IsNothing(value) Then
|
||||||
@@ -349,6 +353,8 @@ Public Class FilledSolidPanelVM
|
|||||||
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
||||||
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.AUXSOLIDPARAM)
|
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.AUXSOLIDPARAM)
|
||||||
NotifyPropertyChanged(NameOf(FilledSolidList_IsEnabled))
|
NotifyPropertyChanged(NameOf(FilledSolidList_IsEnabled))
|
||||||
|
' disattivo interfaccia
|
||||||
|
ManageInterface(False)
|
||||||
Else
|
Else
|
||||||
NotifyPropertyChanged(NameOf(m_bMachParam_IsChecked))
|
NotifyPropertyChanged(NameOf(m_bMachParam_IsChecked))
|
||||||
End If
|
End If
|
||||||
@@ -358,6 +364,8 @@ Public Class FilledSolidPanelVM
|
|||||||
m_bMachParam_IsChecked = False
|
m_bMachParam_IsChecked = False
|
||||||
NotifyPropertyChanged(NameOf(bMachParam_IsChecked))
|
NotifyPropertyChanged(NameOf(bMachParam_IsChecked))
|
||||||
NotifyPropertyChanged(NameOf(FilledSolidList_IsEnabled))
|
NotifyPropertyChanged(NameOf(FilledSolidList_IsEnabled))
|
||||||
|
' riattivo interfaccia
|
||||||
|
ManageInterface(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public ReadOnly Property Compo_Visibility As Visibility
|
Public ReadOnly Property Compo_Visibility As Visibility
|
||||||
@@ -366,11 +374,17 @@ Public Class FilledSolidPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_FilledSolidList_IsEnabled As Boolean = False
|
||||||
Public ReadOnly Property FilledSolidList_IsEnabled As Boolean
|
Public ReadOnly Property FilledSolidList_IsEnabled As Boolean
|
||||||
Get
|
Get
|
||||||
Return Not m_bMachParam_IsChecked
|
Return If(m_FilledSolidList.Count > 0, m_FilledSolidList_IsEnabled, False)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
Friend Sub SetFilledSolidListIsEnabled(bValue As Boolean)
|
||||||
|
m_FilledSolidList_IsEnabled = bValue
|
||||||
|
NotifyPropertyChanged(NameOf(FilledSolidList_IsEnabled))
|
||||||
|
End Sub
|
||||||
|
|
||||||
' riferimento griglia all'ingresso in questa pagina
|
' riferimento griglia all'ingresso in questa pagina
|
||||||
Private m_OriginalGridFrame As New Frame3d
|
Private m_OriginalGridFrame As New Frame3d
|
||||||
|
|
||||||
@@ -388,6 +402,8 @@ Public Class FilledSolidPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_bEscOnLine2P As Boolean = False
|
||||||
|
|
||||||
#Region "Tooltip"
|
#Region "Tooltip"
|
||||||
|
|
||||||
Public ReadOnly Property Import_ToolTip As String
|
Public ReadOnly Property Import_ToolTip As String
|
||||||
@@ -571,6 +587,8 @@ Public Class FilledSolidPanelVM
|
|||||||
SelFilledSolid = m_FilledSolidList(0)
|
SelFilledSolid = m_FilledSolidList(0)
|
||||||
NotifyPropertyChanged(NameOf(SelFilledSolid))
|
NotifyPropertyChanged(NameOf(SelFilledSolid))
|
||||||
End If
|
End If
|
||||||
|
' attivo lista filled solid
|
||||||
|
SetFilledSolidListIsEnabled(True)
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -606,8 +624,13 @@ Public Class FilledSolidPanelVM
|
|||||||
EgtSelectObj(m_SelFilledSolid.nCurveId)
|
EgtSelectObj(m_SelFilledSolid.nCurveId)
|
||||||
Case FilledSolidSelectionTypes.EXTRUSION
|
Case FilledSolidSelectionTypes.EXTRUSION
|
||||||
' creo layer per estrusione
|
' creo layer per estrusione
|
||||||
Dim nNewExtrusionLayerId As Integer = EgtCreateGroup(m_nPartId)
|
Dim nNewExtrusionLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWEXTRUSION)
|
||||||
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
If nNewExtrusionLayerId = GDB_ID.NULL Then
|
||||||
|
nNewExtrusionLayerId = EgtCreateGroup(m_nPartId)
|
||||||
|
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
||||||
|
Else
|
||||||
|
EgtEmptyGroup(nNewExtrusionLayerId)
|
||||||
|
End If
|
||||||
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
||||||
EgtSelectObj(m_SelFilledSolid.nCurveId)
|
EgtSelectObj(m_SelFilledSolid.nCurveId)
|
||||||
Case FilledSolidSelectionTypes.BOTH
|
Case FilledSolidSelectionTypes.BOTH
|
||||||
@@ -615,6 +638,8 @@ Public Class FilledSolidPanelVM
|
|||||||
EgtSelectObj(m_SelFilledSolid.nExtrusionId)
|
EgtSelectObj(m_SelFilledSolid.nExtrusionId)
|
||||||
End Select
|
End Select
|
||||||
EgtDraw()
|
EgtDraw()
|
||||||
|
' disattivo il resto dell'interfaccia
|
||||||
|
ManageInterface(False)
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -624,6 +649,7 @@ Public Class FilledSolidPanelVM
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
||||||
|
m_bEscOnLine2P = False
|
||||||
Select Case command
|
Select Case command
|
||||||
Case Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE
|
Case Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE
|
||||||
' leggo altezza estrusione
|
' leggo altezza estrusione
|
||||||
@@ -663,6 +689,10 @@ Public Class FilledSolidPanelVM
|
|||||||
' Imposto flag di ricalcolo slice
|
' Imposto flag di ricalcolo slice
|
||||||
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
||||||
End Select
|
End Select
|
||||||
|
' se non ho creato percorso riabilito interfaccia
|
||||||
|
If Not m_bIsCreatingPath Then
|
||||||
|
ManageInterface(True)
|
||||||
|
End If
|
||||||
If command <> Controller.CMD.LINE2P AndAlso command <> Controller.CMD.EXTRUDE Then Return
|
If command <> Controller.CMD.LINE2P AndAlso command <> Controller.CMD.EXTRUDE Then Return
|
||||||
' se finita creazione estrusione
|
' se finita creazione estrusione
|
||||||
If m_bIsCreatingExtrusion Then
|
If m_bIsCreatingExtrusion Then
|
||||||
@@ -705,6 +735,7 @@ Public Class FilledSolidPanelVM
|
|||||||
If NewGeomType = GDB_TY.CRV_COMPO Then
|
If NewGeomType = GDB_TY.CRV_COMPO Then
|
||||||
If Not EgtCurveIsClosed(nNewEntityId) Then
|
If Not EgtCurveIsClosed(nNewEntityId) Then
|
||||||
EgtCloseCurveCompo(nNewEntityId)
|
EgtCloseCurveCompo(nNewEntityId)
|
||||||
|
m_bEscOnLine2P = True
|
||||||
End If
|
End If
|
||||||
EgtSetName(nNewEntityId, RIB_CURVE)
|
EgtSetName(nNewEntityId, RIB_CURVE)
|
||||||
' resetto colore entita'
|
' resetto colore entita'
|
||||||
@@ -757,6 +788,13 @@ Public Class FilledSolidPanelVM
|
|||||||
' rimetto la selezione scena a null
|
' rimetto la selezione scena a null
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End If
|
End If
|
||||||
|
' se esc su creazione percorso, lo annullo, altrimenti riabilito interfaccia
|
||||||
|
If m_bEscOnLine2P Then
|
||||||
|
m_bEscOnLine2P = False
|
||||||
|
Else
|
||||||
|
If m_bIsCreatingExtrusion Then m_bIsCreatingExtrusion = False
|
||||||
|
ManageInterface(True)
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -792,6 +830,18 @@ Public Class FilledSolidPanelVM
|
|||||||
Return nFilledSolidIndex + 1
|
Return nFilledSolidIndex + 1
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Friend Sub ManageInterface(bValue As Boolean)
|
||||||
|
' disabilito ProjManager, TopPanel, TFS, Slider, bottoni e uscita dal programma
|
||||||
|
Map.refProjManagerVM.SetProjCmdIsEnabled(bValue)
|
||||||
|
Map.refTopPanelVM.SetTopPanelIsEnabled(bValue)
|
||||||
|
Map.refViewLayerManagerVM.SetViewLayerManagerIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerIndexIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(bValue)
|
||||||
|
Map.refSliceManagerVM.SetButtonsIsEnabled(bValue)
|
||||||
|
Map.refInstrumentPanelVM.SetInstrumentPanelIsEnabled(bValue)
|
||||||
|
SetFilledSolidListIsEnabled(bValue)
|
||||||
|
End Sub
|
||||||
|
|
||||||
#End Region ' METHODS
|
#End Region ' METHODS
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
@@ -815,7 +865,9 @@ Public Class FilledSolidPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Import(ByVal param As Object)
|
Public Sub Import(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.InsertFilledSolid()
|
Map.refSceneHostVM.InsertFilledSolid()
|
||||||
|
ManageInterface(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Import
|
#End Region ' Import
|
||||||
@@ -839,6 +891,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Line2P(ByVal param As Object)
|
Public Sub Line2P(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Dim nNewShellNumberLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWRIB)
|
Dim nNewShellNumberLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWRIB)
|
||||||
If nNewShellNumberLayerId = GDB_ID.NULL Then nNewShellNumberLayerId = EgtCreateGroup(m_nPartId)
|
If nNewShellNumberLayerId = GDB_ID.NULL Then nNewShellNumberLayerId = EgtCreateGroup(m_nPartId)
|
||||||
EgtSetName(nNewShellNumberLayerId, LAY_NEWRIB)
|
EgtSetName(nNewShellNumberLayerId, LAY_NEWRIB)
|
||||||
@@ -887,6 +940,7 @@ Public Class FilledSolidPanelVM
|
|||||||
End If
|
End If
|
||||||
NotifyPropertyChanged(NameOf(SelFilledSolid))
|
NotifyPropertyChanged(NameOf(SelFilledSolid))
|
||||||
End If
|
End If
|
||||||
|
SetFilledSolidListIsEnabled(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Delete
|
#End Region ' Delete
|
||||||
@@ -1171,6 +1225,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneElevation(ByVal param As Object)
|
Public Sub CPlaneElevation(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1195,6 +1250,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneOrigin(ByVal param As Object)
|
Public Sub CPlaneOrigin(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1311,6 +1367,7 @@ Public Class FilledSolidPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneObj(ByVal param As Object)
|
Public Sub CPlaneObj(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
' salvo selezione precedente e deseleziono altri oggetti
|
' salvo selezione precedente e deseleziono altri oggetti
|
||||||
m_PrevSelObjs.Clear()
|
m_PrevSelObjs.Clear()
|
||||||
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
||||||
|
|||||||
@@ -84,6 +84,32 @@
|
|||||||
Style="{StaticResource ToolBar_SmallButton}"/>
|
Style="{StaticResource ToolBar_SmallButton}"/>
|
||||||
</Grid>
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
|
<DataTemplate DataType="{x:Type PrintApp:CheckMachiningParam}">
|
||||||
|
<Grid Margin="0,1,2.5,1"
|
||||||
|
IsEnabled="{Binding bIsActive}">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="2*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<TextBlock Text="{Binding sName}"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
<CheckBox Grid.Column="1"
|
||||||
|
IsChecked="{Binding bValue}"
|
||||||
|
HorizontalAlignment="Center"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Margin="2.5,0,0,0"/>
|
||||||
|
<Button Grid.Column="2"
|
||||||
|
Content="R"
|
||||||
|
Command="{Binding ResetParam_Command}"
|
||||||
|
IsEnabled="{Binding bIsModifiedFromPart}"
|
||||||
|
VerticalContentAlignment="Center"
|
||||||
|
HorizontalContentAlignment="Center"
|
||||||
|
Margin="2.5,0,0,0"
|
||||||
|
Style="{StaticResource ToolBar_SmallButton}"/>
|
||||||
|
</Grid>
|
||||||
|
</DataTemplate>
|
||||||
</ItemsControl.Resources>
|
</ItemsControl.Resources>
|
||||||
</ItemsControl>
|
</ItemsControl>
|
||||||
</ScrollViewer>
|
</ScrollViewer>
|
||||||
|
|||||||
@@ -42,12 +42,20 @@ Public Class FilledSolidParamPanelVM
|
|||||||
|
|
||||||
m_Type = Cathegories.AUX_SOLID
|
m_Type = Cathegories.AUX_SOLID
|
||||||
m_sName = "Filled Solid"
|
m_sName = "Filled Solid"
|
||||||
m_MachiningParamList = New List(Of MachiningParam)({New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOVERLAP, nFilledSolidId, nPartId, Me),
|
m_MachiningParamList = New List(Of MachiningParam)({New FilledSolidComboMachiningParam(MachiningParam.Params.AUXSOLIDSINFILL, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidComboMachiningParam(MachiningParam.Params.AUXSOLIDSINFILL, nFilledSolidId, nPartId, Me),
|
New FilledSolidcheckMachiningParam(MachiningParam.Params.AUXSOLIDSINFILLLINK, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDCOUNT, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidComboMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDORDER, nFilledSolidId, nPartId, Me),
|
New FilledSolidComboMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDORDER, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidComboMachiningParam(MachiningParam.Params.AUXSOLIDSLINKTYPE, nFilledSolidId, nPartId, Me),
|
New FilledSolidComboMachiningParam(MachiningParam.Params.AUXSOLIDSLINKTYPE, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSLINKPARAM, nFilledSolidId, nPartId, Me),
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSLINKPARAM, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE, nFilledSolidId, nPartId, Me),
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETLEADPOINT, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSDENSITY, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSGRIDOVERLAP, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSDIRECTION, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETX, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETY, nFilledSolidId, nPartId, Me),
|
||||||
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSOVERLAP, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSCOASTINGLEN, nFilledSolidId, nPartId, Me),
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSCOASTINGLEN, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPELEN, nFilledSolidId, nPartId, Me),
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPELEN, nFilledSolidId, nPartId, Me),
|
||||||
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPEDIR, nFilledSolidId, nPartId, Me)})
|
New FilledSolidNumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPEDIR, nFilledSolidId, nPartId, Me)})
|
||||||
@@ -190,6 +198,10 @@ Public Class FilledSolidNumericMachiningParam
|
|||||||
MyBase.New(Type, Cathegory)
|
MyBase.New(Type, Cathegory)
|
||||||
Dim bReadFromPart As Boolean = False
|
Dim bReadFromPart As Boolean = False
|
||||||
Select Case Type
|
Select Case Type
|
||||||
|
Case Params.AUXSOLIDSSTRANDCOUNT
|
||||||
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSSTRANDCOUNT, m_dValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSSTRANDCOUNT, m_dPartValue)
|
||||||
|
m_bIsLen = True
|
||||||
Case Params.AUXSOLIDSOVERLAP
|
Case Params.AUXSOLIDSOVERLAP
|
||||||
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSOVERLAP, m_dValue)
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSOVERLAP, m_dValue)
|
||||||
EgtGetInfo(nPartId, MAC_AUXSOLIDSOVERLAP, m_dPartValue)
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSOVERLAP, m_dPartValue)
|
||||||
@@ -202,6 +214,30 @@ Public Class FilledSolidNumericMachiningParam
|
|||||||
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, m_dValue)
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, m_dValue)
|
||||||
EgtGetInfo(nPartId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, m_dPartValue)
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, m_dPartValue)
|
||||||
m_bIsLen = True
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSOFFSETLEADPOINT
|
||||||
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETLEADPOINT, m_dValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSOFFSETLEADPOINT, m_dPartValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSDENSITY
|
||||||
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSDENSITY, m_dValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSDENSITY, m_dPartValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSGRIDOVERLAP
|
||||||
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSGRIDOVERLAP, m_dValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSGRIDOVERLAP, m_dPartValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSDIRECTION
|
||||||
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSDIRECTION, m_dValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSDIRECTION, m_dPartValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSOFFSETX
|
||||||
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETX, m_dValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSOFFSETX, m_dPartValue)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSOFFSETY
|
||||||
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETY, m_dValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSOFFSETY, m_dPartValue)
|
||||||
|
m_bIsLen = True
|
||||||
Case Params.AUXSOLIDSCOASTINGLEN
|
Case Params.AUXSOLIDSCOASTINGLEN
|
||||||
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSCOASTINGLEN, m_dValue)
|
bReadFromPart = EgtGetInfo(nFilledSolidId, MAC_AUXSOLIDSCOASTINGLEN, m_dValue)
|
||||||
EgtGetInfo(nPartId, MAC_AUXSOLIDSCOASTINGLEN, m_dPartValue)
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSCOASTINGLEN, m_dPartValue)
|
||||||
@@ -230,6 +266,12 @@ Public Class FilledSolidNumericMachiningParam
|
|||||||
sWriteValue = DoubleToString(m_dValue, 2)
|
sWriteValue = DoubleToString(m_dValue, 2)
|
||||||
End If
|
End If
|
||||||
Select Case Type
|
Select Case Type
|
||||||
|
Case Params.AUXSOLIDSSTRANDCOUNT
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSSTRANDCOUNT, sWriteValue)
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSSTRANDCOUNT)
|
||||||
|
End If
|
||||||
Case Params.AUXSOLIDSOVERLAP
|
Case Params.AUXSOLIDSOVERLAP
|
||||||
If bIsModifiedFromPart Then
|
If bIsModifiedFromPart Then
|
||||||
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSOVERLAP, sWriteValue)
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSOVERLAP, sWriteValue)
|
||||||
@@ -248,6 +290,42 @@ Public Class FilledSolidNumericMachiningParam
|
|||||||
Else
|
Else
|
||||||
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE)
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE)
|
||||||
End If
|
End If
|
||||||
|
Case Params.AUXSOLIDSOFFSETLEADPOINT
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETLEADPOINT, sWriteValue)
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETLEADPOINT)
|
||||||
|
End If
|
||||||
|
Case Params.AUXSOLIDSDENSITY
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSDENSITY, sWriteValue)
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSDENSITY)
|
||||||
|
End If
|
||||||
|
Case Params.AUXSOLIDSGRIDOVERLAP
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSGRIDOVERLAP, sWriteValue)
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSGRIDOVERLAP)
|
||||||
|
End If
|
||||||
|
Case Params.AUXSOLIDSDIRECTION
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSDIRECTION, sWriteValue)
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSDIRECTION)
|
||||||
|
End If
|
||||||
|
Case Params.AUXSOLIDSOFFSETX
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETX, sWriteValue)
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETX)
|
||||||
|
End If
|
||||||
|
Case Params.AUXSOLIDSOFFSETY
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETY, sWriteValue)
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nFilledSolidId, MAC_AUXSOLIDSOFFSETY)
|
||||||
|
End If
|
||||||
Case Params.AUXSOLIDSCOASTINGLEN
|
Case Params.AUXSOLIDSCOASTINGLEN
|
||||||
If bIsModifiedFromPart Then
|
If bIsModifiedFromPart Then
|
||||||
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSCOASTINGLEN, sWriteValue)
|
EgtSetInfo(nFilledSolidId, MAC_AUXSOLIDSCOASTINGLEN, sWriteValue)
|
||||||
@@ -339,9 +417,14 @@ Public Class FilledSolidComboMachiningParam
|
|||||||
Dim bReadFromPart As Boolean = False
|
Dim bReadFromPart As Boolean = False
|
||||||
Select Case Type
|
Select Case Type
|
||||||
Case Params.AUXSOLIDSINFILL
|
Case Params.AUXSOLIDSINFILL
|
||||||
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL.NONE, "None"),
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL_TYPE.NONE, "None"),
|
||||||
New IdNameStruct(Machining.MPAR_INFILL.OFFSET, "Offset"),
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.OFFSET, "Offset"),
|
||||||
New IdNameStruct(Machining.MPAR_INFILL.ZIGZAG, "ZigZag")})
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG, "ZigZag"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.LINES, "Lines"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.GRID, "Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG_GRID, "Zigzag Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB, "Honeycomb"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB_GRID, "Honeycomb Grid")})
|
||||||
Dim nSelValue As Integer = 1
|
Dim nSelValue As Integer = 1
|
||||||
bReadFromRib = EgtGetInfo(nRibId, MAC_AUXSOLIDSINFILL, nSelValue)
|
bReadFromRib = EgtGetInfo(nRibId, MAC_AUXSOLIDSINFILL, nSelValue)
|
||||||
If bReadFromRib Then
|
If bReadFromRib Then
|
||||||
@@ -379,7 +462,7 @@ Public Class FilledSolidComboMachiningParam
|
|||||||
Else
|
Else
|
||||||
Select Case Type
|
Select Case Type
|
||||||
Case Params.AUXSOLIDSINFILL
|
Case Params.AUXSOLIDSINFILL
|
||||||
m_OrigSelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = Machining.MPAR_INFILL.NONE)
|
m_OrigSelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = Machining.MPAR_INFILL_TYPE.NONE)
|
||||||
m_SelValue = m_OrigSelValue
|
m_SelValue = m_OrigSelValue
|
||||||
Case Params.AUXSOLIDSSTRANDORDER
|
Case Params.AUXSOLIDSSTRANDORDER
|
||||||
m_OrigSelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = Machining.MPAR_STRANDORDERS.OUTTOIN)
|
m_OrigSelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = Machining.MPAR_STRANDORDERS.OUTTOIN)
|
||||||
@@ -447,4 +530,95 @@ Public Class FilledSolidComboMachiningParam
|
|||||||
#End Region ' COMMANDS
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
|
|
||||||
|
End Class
|
||||||
|
|
||||||
|
Public Class FilledSolidCheckMachiningParam
|
||||||
|
Inherits CheckMachiningParam
|
||||||
|
|
||||||
|
Public Overrides Property bValue As Boolean
|
||||||
|
Get
|
||||||
|
Return m_bValue
|
||||||
|
End Get
|
||||||
|
Set(value As Boolean)
|
||||||
|
m_bValue = value
|
||||||
|
NotifyPropertyChanged(NameOf(bValue))
|
||||||
|
NotifyPropertyChanged(NameOf(bIsModifiedFromPart))
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Protected m_bPartValue As Boolean
|
||||||
|
Public ReadOnly Property bPartValue As Boolean
|
||||||
|
Get
|
||||||
|
Return m_bPartValue
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property bIsModifiedFromPart As Boolean
|
||||||
|
Get
|
||||||
|
Return m_bValue <> m_bPartValue
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
' Definizione comandi
|
||||||
|
Private m_cmdResetParam As ICommand
|
||||||
|
|
||||||
|
Sub New(Type As Params, nAuxSolidId As Integer, nPartId As Integer, Cathegory As MachiningCathegory)
|
||||||
|
MyBase.New(Type, Cathegory)
|
||||||
|
Dim bReadFromPart As Boolean = False
|
||||||
|
Select Case Type
|
||||||
|
Case Params.AUXSOLIDSINFILLLINK
|
||||||
|
bReadFromPart = EgtGetInfo(nAuxSolidId, MAC_AUXSOLIDSINFILLLINK, m_bValue)
|
||||||
|
EgtGetInfo(nPartId, MAC_AUXSOLIDSINFILLLINK, m_bPartValue)
|
||||||
|
End Select
|
||||||
|
m_bOrigValue = m_bValue
|
||||||
|
If Not bReadFromPart Then
|
||||||
|
m_bValue = m_bPartValue
|
||||||
|
m_bOrigValue = m_bPartValue
|
||||||
|
End If
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend Sub WriteParamInRib(nAuxSolidId As Integer)
|
||||||
|
Select Case Type
|
||||||
|
Case Params.AUXSOLIDSINFILLLINK
|
||||||
|
If bIsModifiedFromPart Then
|
||||||
|
EgtSetInfo(nAuxSolidId, MAC_AUXSOLIDSINFILLLINK, If(m_bValue, 1, 0))
|
||||||
|
Else
|
||||||
|
EgtRemoveInfo(nAuxSolidId, MAC_AUXSOLIDSINFILLLINK)
|
||||||
|
End If
|
||||||
|
End Select
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend Overrides Sub SaveParam()
|
||||||
|
m_bOrigValue = m_bValue
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
Friend Overrides Sub ResetParam()
|
||||||
|
m_bValue = m_bOrigValue
|
||||||
|
NotifyPropertyChanged(NameOf(bValue))
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#Region "COMMANDS"
|
||||||
|
|
||||||
|
#Region "ResetParam"
|
||||||
|
|
||||||
|
Public ReadOnly Property ResetParam_Command As ICommand
|
||||||
|
Get
|
||||||
|
If m_cmdResetParam Is Nothing Then
|
||||||
|
m_cmdResetParam = New Command(AddressOf ResetParamCmd)
|
||||||
|
End If
|
||||||
|
Return m_cmdResetParam
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public Sub ResetParamCmd()
|
||||||
|
m_bValue = m_bPartValue
|
||||||
|
NotifyPropertyChanged(NameOf(bValue))
|
||||||
|
NotifyPropertyChanged(NameOf(bIsModifiedFromPart))
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
#End Region ' ResetParam
|
||||||
|
|
||||||
|
#End Region ' COMMANDS
|
||||||
|
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -1,118 +0,0 @@
|
|||||||
<Grid x:Class="HelpPanelV"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:PrintApp="clr-namespace:Icarus"
|
|
||||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
||||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
||||||
xmlns:local="clr-namespace:Icarus"
|
|
||||||
mc:Ignorable="d"
|
|
||||||
d:DesignHeight="450" d:DesignWidth="800">
|
|
||||||
<Grid.Resources>
|
|
||||||
<SolidColorBrush x:Key="HighlightBorder_Color" Color="Red"/>
|
|
||||||
<Thickness x:Key="HighlightBorder_Thickness">5</Thickness>
|
|
||||||
<CornerRadius x:Key="HighlightBorder_CornerRadius">2</CornerRadius>
|
|
||||||
<Thickness x:Key="HighlightBorder_Margin">-2</Thickness>
|
|
||||||
<Style x:Key="Highlight_HelpBorder" TargetType="{x:Type Border}">
|
|
||||||
<Setter Property="BorderBrush" Value="{StaticResource HighlightBorder_Color}"/>
|
|
||||||
<Setter Property="BorderThickness" Value="{StaticResource HighlightBorder_Thickness}"/>
|
|
||||||
<Setter Property="CornerRadius" Value="{StaticResource HighlightBorder_CornerRadius}"/>
|
|
||||||
<Setter Property="Margin" Value="{StaticResource HighlightBorder_Margin}"/>
|
|
||||||
</Style>
|
|
||||||
<Style x:Key="Popup_HelpBorder" TargetType="{x:Type Border}">
|
|
||||||
<Setter Property="BorderBrush" Value="{StaticResource Icarus_Gray}"/>
|
|
||||||
<Setter Property="BorderThickness" Value="1"/>
|
|
||||||
<Setter Property="CornerRadius" Value="5"/>
|
|
||||||
<Setter Property="Background" Value="White"/>
|
|
||||||
</Style>
|
|
||||||
<Style TargetType="{x:Type Popup}">
|
|
||||||
<Setter Property="AllowsTransparency" Value="True"/>
|
|
||||||
<Setter Property="StaysOpen" Value="True"/>
|
|
||||||
<Setter Property="Placement" Value="Bottom"/>
|
|
||||||
</Style>
|
|
||||||
</Grid.Resources>
|
|
||||||
<Border BorderThickness="{StaticResource WindowBorder_Thickness}">
|
|
||||||
<Grid>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="{StaticResource TitleBarHeight}"/>
|
|
||||||
<RowDefinition Height="Auto"/>
|
|
||||||
<RowDefinition Height="*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Grid Style="{StaticResource TopBar_HelpButton}">
|
|
||||||
<Border Visibility="{Binding Icon_Visibility}"
|
|
||||||
Style="{StaticResource Highlight_HelpBorder}">
|
|
||||||
</Border>
|
|
||||||
</Grid>
|
|
||||||
<Grid Grid.Column="1">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<Grid Style="{StaticResource TopBar_HelpButton}"/>
|
|
||||||
<Grid Grid.Column="1"
|
|
||||||
Style="{StaticResource TopBar_HelpButton}"/>
|
|
||||||
<Grid Grid.Column="2"
|
|
||||||
Style="{StaticResource TopBar_HelpButton}"/>
|
|
||||||
<Grid Grid.Column="3"
|
|
||||||
Style="{StaticResource TopBar_HelpButton}"/>
|
|
||||||
<Grid Grid.Column="4"
|
|
||||||
Style="{StaticResource TopBar_HelpButton}"/>
|
|
||||||
<Grid Grid.Column="5"
|
|
||||||
Style="{StaticResource TopBar_HelpButton}"/>
|
|
||||||
<Grid Grid.Column="6"
|
|
||||||
Style="{StaticResource TopBar_HelpButton}"/>
|
|
||||||
<Grid Grid.Column="7"
|
|
||||||
Style="{StaticResource TopBar_HelpButton}"/>
|
|
||||||
<Grid Grid.Column="8"
|
|
||||||
Style="{StaticResource TopBar_HelpButton}"/>
|
|
||||||
<Border Grid.ColumnSpan="9"
|
|
||||||
Visibility="{Binding ProjectManager_Visibility}"
|
|
||||||
Style="{StaticResource Highlight_HelpBorder}">
|
|
||||||
</Border>
|
|
||||||
</Grid>
|
|
||||||
<Grid Grid.Column="2" Width="70"/>
|
|
||||||
<Grid Grid.Column="3"/>
|
|
||||||
<Grid Grid.Column="4">
|
|
||||||
<UniformGrid Rows="1">
|
|
||||||
<Grid Style="{StaticResource TopBar_HelpButton}"/>
|
|
||||||
<Grid Style="{StaticResource TopBar_HelpButton}"/>
|
|
||||||
<Grid Style="{StaticResource TopBar_HelpButton}"/>
|
|
||||||
</UniformGrid>
|
|
||||||
</Grid>
|
|
||||||
<Border Grid.Row="1"
|
|
||||||
Grid.ColumnSpan="5"
|
|
||||||
HorizontalAlignment="Left"
|
|
||||||
VerticalAlignment="Top"
|
|
||||||
Margin="-2,7,0,0"
|
|
||||||
Visibility="{Binding Icon_Visibility}"
|
|
||||||
Style="{StaticResource Popup_HelpBorder}">
|
|
||||||
<PrintApp:Icon_Tooltip/>
|
|
||||||
</Border>
|
|
||||||
<Border Grid.Row="1"
|
|
||||||
Grid.Column="1"
|
|
||||||
Grid.ColumnSpan="5"
|
|
||||||
HorizontalAlignment="Left"
|
|
||||||
VerticalAlignment="Top"
|
|
||||||
Margin="-2,7,0,0"
|
|
||||||
Visibility="{Binding ProjectManager_Visibility}"
|
|
||||||
Style="{StaticResource Popup_HelpBorder}">
|
|
||||||
<PrintApp:ProjectManager_Tooltip/>
|
|
||||||
</Border>
|
|
||||||
|
|
||||||
</Grid>
|
|
||||||
</Border>
|
|
||||||
</Grid>
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
Public Class HelpPanelV
|
|
||||||
|
|
||||||
End Class
|
|
||||||
@@ -1,81 +0,0 @@
|
|||||||
Imports EgtWPFLib5
|
|
||||||
|
|
||||||
Public Class HelpPanelVM
|
|
||||||
Inherits VMBase
|
|
||||||
|
|
||||||
Public Enum HelpPages As Integer
|
|
||||||
NULL = 0
|
|
||||||
ICON = 1
|
|
||||||
PROJECTMANAGER = 2
|
|
||||||
End Enum
|
|
||||||
|
|
||||||
Private m_CurrHelpPage As HelpPages
|
|
||||||
Public ReadOnly Property CurrHelpPage As HelpPages
|
|
||||||
Get
|
|
||||||
Return m_CurrHelpPage
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Private m_Icon_Visibility As Boolean = False
|
|
||||||
Public ReadOnly Property Icon_Visibility As Visibility
|
|
||||||
Get
|
|
||||||
Return If(m_Icon_Visibility, Visibility.Visible, Visibility.Collapsed)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
Public Property Icon_IsOpen As Boolean
|
|
||||||
Get
|
|
||||||
Return m_Icon_Visibility
|
|
||||||
End Get
|
|
||||||
Set(value As Boolean)
|
|
||||||
m_Icon_Visibility = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
Friend Sub SetIconVisibility(bValue As Boolean)
|
|
||||||
m_Icon_Visibility = bValue
|
|
||||||
NotifyPropertyChanged(NameOf(Icon_Visibility))
|
|
||||||
NotifyPropertyChanged(NameOf(Icon_IsOpen))
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private m_ProjectManager_Visibility As Boolean = False
|
|
||||||
Public ReadOnly Property ProjectManager_Visibility As Visibility
|
|
||||||
Get
|
|
||||||
Return If(m_ProjectManager_Visibility, Visibility.Visible, Visibility.Collapsed)
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
Public Property ProjectManager_IsOpen As Boolean
|
|
||||||
Get
|
|
||||||
Return m_ProjectManager_Visibility
|
|
||||||
End Get
|
|
||||||
Set(value As Boolean)
|
|
||||||
m_ProjectManager_Visibility = value
|
|
||||||
End Set
|
|
||||||
End Property
|
|
||||||
Friend Sub SetProjectManagerVisibility(bValue As Boolean)
|
|
||||||
m_ProjectManager_Visibility = bValue
|
|
||||||
NotifyPropertyChanged(NameOf(ProjectManager_Visibility))
|
|
||||||
NotifyPropertyChanged(NameOf(ProjectManager_IsOpen))
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Sub New()
|
|
||||||
Map.SetRefHelpPanelVM(Me)
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Friend Sub SelHelpPage(SelHelpPage As HelpPages)
|
|
||||||
Select Case m_CurrHelpPage
|
|
||||||
Case HelpPages.ICON
|
|
||||||
SetIconVisibility(False)
|
|
||||||
Case HelpPages.PROJECTMANAGER
|
|
||||||
SetProjectManagerVisibility(False)
|
|
||||||
End Select
|
|
||||||
m_CurrHelpPage = SelHelpPage
|
|
||||||
Select Case m_CurrHelpPage
|
|
||||||
Case HelpPages.NULL
|
|
||||||
SetProjectManagerVisibility(False)
|
|
||||||
Case HelpPages.ICON
|
|
||||||
SetIconVisibility(True)
|
|
||||||
Case HelpPages.PROJECTMANAGER
|
|
||||||
SetProjectManagerVisibility(True)
|
|
||||||
End Select
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
End Class
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
<RichTextBox x:Class="Icon_Tooltip"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
BorderThickness="0"
|
|
||||||
Width="200"
|
|
||||||
Margin="5">
|
|
||||||
<FlowDocument>
|
|
||||||
<Paragraph FontSize="20">Icon</Paragraph>
|
|
||||||
<Paragraph FontSize="14">The software logo icon.
|
|
||||||
If clicked opens the AboutBox.</Paragraph>
|
|
||||||
</FlowDocument>
|
|
||||||
</RichTextBox>
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
Public Class Icon_Tooltip
|
|
||||||
|
|
||||||
End Class
|
|
||||||
@@ -1,29 +0,0 @@
|
|||||||
<RichTextBox x:Class="ProjectManager_Tooltip"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
BorderThickness="0"
|
|
||||||
Width="300"
|
|
||||||
Margin="10">
|
|
||||||
<FlowDocument>
|
|
||||||
<Paragraph FontSize="20">Project Manager</Paragraph>
|
|
||||||
<Paragraph FontSize="14">This space permit to manage the project.
|
|
||||||
The commands available are :</Paragraph>
|
|
||||||
<List>
|
|
||||||
<ListItem>
|
|
||||||
<Paragraph>New</Paragraph>
|
|
||||||
</ListItem>
|
|
||||||
<ListItem>
|
|
||||||
<Paragraph>Open</Paragraph>
|
|
||||||
</ListItem>
|
|
||||||
<ListItem>
|
|
||||||
<Paragraph>Save</Paragraph>
|
|
||||||
</ListItem>
|
|
||||||
<ListItem>
|
|
||||||
<Paragraph>Save As</Paragraph>
|
|
||||||
</ListItem>
|
|
||||||
<ListItem>
|
|
||||||
<Paragraph>Import</Paragraph>
|
|
||||||
</ListItem>
|
|
||||||
</List>
|
|
||||||
</FlowDocument>
|
|
||||||
</RichTextBox>
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
Public Class ProjectManager_Tooltip
|
|
||||||
|
|
||||||
End Class
|
|
||||||
@@ -1,71 +0,0 @@
|
|||||||
<EgtWPFLib5:EgtMainWindow x:Class="HelpWndV"
|
|
||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
||||||
xmlns:EgtWPFLib5="clr-namespace:EgtWPFLib5;assembly=EgtWPFLib5"
|
|
||||||
Title="{Binding Title_Msg}"
|
|
||||||
Icon="/Resources/Icarus.ico"
|
|
||||||
Height="600"
|
|
||||||
Width="800"
|
|
||||||
CloseCommand="{Binding Close_Command, Mode=OneWay, UpdateSourceTrigger=PropertyChanged}"
|
|
||||||
Style="{StaticResource Help_Window}">
|
|
||||||
<RichTextBox IsReadOnly="True"
|
|
||||||
IsDocumentEnabled="True">
|
|
||||||
|
|
||||||
<!--<FlowDocumentReader ViewingMode="Page"
|
|
||||||
IsTwoPageViewEnabled="False"
|
|
||||||
IsScrollViewEnabled="False">-->
|
|
||||||
<FlowDocument>
|
|
||||||
<Paragraph FontSize="50"
|
|
||||||
FontWeight="Bold"
|
|
||||||
TextAlignment="Center">
|
|
||||||
Icarus Manual
|
|
||||||
</Paragraph>
|
|
||||||
<List FontSize="14">
|
|
||||||
<ListItem>
|
|
||||||
<Paragraph>
|
|
||||||
<Hyperlink Command="{Binding SoftwareStructure_Command}">
|
|
||||||
Software Structure
|
|
||||||
</Hyperlink>
|
|
||||||
</Paragraph>
|
|
||||||
<List FontSize="14">
|
|
||||||
<ListItem>
|
|
||||||
<Paragraph>
|
|
||||||
<Hyperlink Command="{Binding Icon_Command}">
|
|
||||||
Icon
|
|
||||||
</Hyperlink>
|
|
||||||
</Paragraph>
|
|
||||||
</ListItem>
|
|
||||||
<ListItem>
|
|
||||||
<Paragraph>
|
|
||||||
<Hyperlink Command="{Binding ProjectManagerBar_Command}">
|
|
||||||
Project Manager Bar
|
|
||||||
</Hyperlink>
|
|
||||||
</Paragraph>
|
|
||||||
</ListItem>
|
|
||||||
<ListItem>
|
|
||||||
<Paragraph>View Bar</Paragraph>
|
|
||||||
</ListItem>
|
|
||||||
<ListItem>
|
|
||||||
<Paragraph>Status Bar</Paragraph>
|
|
||||||
</ListItem>
|
|
||||||
<ListItem>
|
|
||||||
<Paragraph>Top Panel</Paragraph>
|
|
||||||
</ListItem>
|
|
||||||
<ListItem>
|
|
||||||
<Paragraph>Slice Manager</Paragraph>
|
|
||||||
</ListItem>
|
|
||||||
</List>
|
|
||||||
</ListItem>
|
|
||||||
<ListItem>
|
|
||||||
<Paragraph>ListItem 2</Paragraph>
|
|
||||||
</ListItem>
|
|
||||||
<ListItem>
|
|
||||||
<Paragraph>ListItem 3</Paragraph>
|
|
||||||
</ListItem>
|
|
||||||
</List>
|
|
||||||
|
|
||||||
</FlowDocument>
|
|
||||||
</RichTextBox>
|
|
||||||
<!--</FlowDocumentReader>-->
|
|
||||||
|
|
||||||
</EgtWPFLib5:EgtMainWindow>
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
Public Class HelpWndV
|
|
||||||
|
|
||||||
Private WithEvents m_HelpWndVM As HelpWndVM
|
|
||||||
|
|
||||||
Sub New(Owner As Window, HelpWndVM As HelpWndVM)
|
|
||||||
MyBase.New(Owner)
|
|
||||||
' This call is required by the designer.
|
|
||||||
InitializeComponent()
|
|
||||||
Me.DataContext = HelpWndVM
|
|
||||||
' Assegno al riferimento locale al VM il VM preso dal DataContext
|
|
||||||
m_HelpWndVM = HelpWndVM
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Private Sub CloseWindow(bDialogResult As Boolean) Handles m_HelpWndVM.m_CloseWindow
|
|
||||||
Me.Close()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
End Class
|
|
||||||
@@ -1,108 +0,0 @@
|
|||||||
Imports System.Collections.ObjectModel
|
|
||||||
Imports System.Drawing
|
|
||||||
Imports System.Windows.Forms.VisualStyles.VisualStyleElement.ToolTip
|
|
||||||
Imports EgtWPFLib5
|
|
||||||
|
|
||||||
Public Class HelpWndVM
|
|
||||||
|
|
||||||
#Region "FIELDS & PROPERTIES"
|
|
||||||
|
|
||||||
Friend Event m_CloseWindow(bDialogResult As Boolean)
|
|
||||||
|
|
||||||
#Region "Messages"
|
|
||||||
|
|
||||||
Public ReadOnly Property Title_Msg As String
|
|
||||||
Get
|
|
||||||
Return "Help"
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
#End Region ' Messages
|
|
||||||
|
|
||||||
' Definizione comandi
|
|
||||||
Private m_cmdSoftwareStructure As ICommand
|
|
||||||
Private m_cmdIcon As ICommand
|
|
||||||
Private m_cmdProjectManagerBar As ICommand
|
|
||||||
Private m_cmdClose As ICommand
|
|
||||||
|
|
||||||
#End Region ' FIELDS & PROPERTIES
|
|
||||||
|
|
||||||
Sub New()
|
|
||||||
Map.SetRefHelpWndVM(Me)
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
#Region "COMMANDS"
|
|
||||||
|
|
||||||
#Region "SoftwareStructure"
|
|
||||||
|
|
||||||
Public ReadOnly Property SoftwareStructure_Command As ICommand
|
|
||||||
Get
|
|
||||||
If m_cmdSoftwareStructure Is Nothing Then
|
|
||||||
m_cmdSoftwareStructure = New Command(AddressOf SoftwareStructure)
|
|
||||||
End If
|
|
||||||
Return m_cmdSoftwareStructure
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public Sub SoftwareStructure()
|
|
||||||
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
#End Region ' SoftwareStructure
|
|
||||||
|
|
||||||
#Region "Icon"
|
|
||||||
|
|
||||||
Public ReadOnly Property Icon_Command As ICommand
|
|
||||||
Get
|
|
||||||
If m_cmdIcon Is Nothing Then
|
|
||||||
m_cmdIcon = New Command(AddressOf Icon)
|
|
||||||
End If
|
|
||||||
Return m_cmdIcon
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public Sub Icon()
|
|
||||||
Map.refHelpPanelVM.SelHelpPage(HelpPanelVM.HelpPages.ICON)
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
#End Region ' Icon
|
|
||||||
|
|
||||||
#Region "ProjectManagerBar"
|
|
||||||
|
|
||||||
Public ReadOnly Property ProjectManagerBar_Command As ICommand
|
|
||||||
Get
|
|
||||||
If m_cmdProjectManagerBar Is Nothing Then
|
|
||||||
m_cmdProjectManagerBar = New Command(AddressOf ProjectManagerBar)
|
|
||||||
End If
|
|
||||||
Return m_cmdProjectManagerBar
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public Sub ProjectManagerBar()
|
|
||||||
Map.refHelpPanelVM.SelHelpPage(HelpPanelVM.HelpPages.PROJECTMANAGER)
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
#End Region ' ProjectManagerBar
|
|
||||||
|
|
||||||
#Region "Close"
|
|
||||||
|
|
||||||
Public ReadOnly Property Close_Command As ICommand
|
|
||||||
Get
|
|
||||||
If m_cmdClose Is Nothing Then
|
|
||||||
m_cmdClose = New Command(AddressOf Close)
|
|
||||||
End If
|
|
||||||
Return m_cmdClose
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public Sub Close()
|
|
||||||
Map.refHelpPanelVM.SelHelpPage(HelpPanelVM.HelpPages.NULL)
|
|
||||||
Map.SetRefHelpWndVM(Nothing)
|
|
||||||
RaiseEvent m_CloseWindow(True)
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
#End Region ' Close
|
|
||||||
|
|
||||||
#End Region ' COMMANDS
|
|
||||||
|
|
||||||
End Class
|
|
||||||
+4
-30
@@ -87,6 +87,9 @@
|
|||||||
<Reference Include="Ionic.Zip, Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c, processorArchitecture=MSIL">
|
<Reference Include="Ionic.Zip, Version=1.9.1.8, Culture=neutral, PublicKeyToken=edbe51ad942a3f5c, processorArchitecture=MSIL">
|
||||||
<HintPath>..\packages\Ionic.Zip.1.9.1.8\lib\Ionic.Zip.dll</HintPath>
|
<HintPath>..\packages\Ionic.Zip.1.9.1.8\lib\Ionic.Zip.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
|
||||||
|
<HintPath>..\packages\Newtonsoft.Json.13.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="PresentationFramework.Aero2" />
|
<Reference Include="PresentationFramework.Aero2" />
|
||||||
<Reference Include="System.Core" />
|
<Reference Include="System.Core" />
|
||||||
<Reference Include="System.Drawing" />
|
<Reference Include="System.Drawing" />
|
||||||
@@ -158,20 +161,6 @@
|
|||||||
<DependentUpon>FilledSolidParamPanelV.xaml</DependentUpon>
|
<DependentUpon>FilledSolidParamPanelV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
<Compile Include="FilledSolidParamPanel\FilledSolidParamPanelVM.vb" />
|
<Compile Include="FilledSolidParamPanel\FilledSolidParamPanelVM.vb" />
|
||||||
<Compile Include="HelpPanel\HelpPanelV.xaml.vb">
|
|
||||||
<DependentUpon>HelpPanelV.xaml</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="HelpPanel\HelpPanelVM.vb" />
|
|
||||||
<Compile Include="HelpPanel\Icon_Tooltip.xaml.vb">
|
|
||||||
<DependentUpon>Icon_Tooltip.xaml</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="HelpPanel\ProjectManager_Tooltip.xaml.vb">
|
|
||||||
<DependentUpon>ProjectManager_Tooltip.xaml</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="HelpWnd\HelpWndV.xaml.vb">
|
|
||||||
<DependentUpon>HelpWndV.xaml</DependentUpon>
|
|
||||||
</Compile>
|
|
||||||
<Compile Include="HelpWnd\HelpWndVM.vb" />
|
|
||||||
<Compile Include="ImportExportMachiningPanel\ImportExportMachiningPanelV.xaml.vb">
|
<Compile Include="ImportExportMachiningPanel\ImportExportMachiningPanelV.xaml.vb">
|
||||||
<DependentUpon>ImportExportMachiningPanelV.xaml</DependentUpon>
|
<DependentUpon>ImportExportMachiningPanelV.xaml</DependentUpon>
|
||||||
</Compile>
|
</Compile>
|
||||||
@@ -334,6 +323,7 @@
|
|||||||
<Compile Include="Utility\DisableModifiedMgr.vb" />
|
<Compile Include="Utility\DisableModifiedMgr.vb" />
|
||||||
<Compile Include="Utility\EgwCrypto.vb" />
|
<Compile Include="Utility\EgwCrypto.vb" />
|
||||||
<Compile Include="Utility\GeomEntityColors.vb" />
|
<Compile Include="Utility\GeomEntityColors.vb" />
|
||||||
|
<Compile Include="Utility\JsonUtility.vb" />
|
||||||
<Compile Include="Utility\LuaExec.vb" />
|
<Compile Include="Utility\LuaExec.vb" />
|
||||||
<Compile Include="Utility\Map.vb" />
|
<Compile Include="Utility\Map.vb" />
|
||||||
<Compile Include="Utility\MyMachine.vb" />
|
<Compile Include="Utility\MyMachine.vb" />
|
||||||
@@ -384,22 +374,6 @@
|
|||||||
<Generator>MSBuild:Compile</Generator>
|
<Generator>MSBuild:Compile</Generator>
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
</Page>
|
</Page>
|
||||||
<Page Include="HelpPanel\HelpPanelV.xaml">
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
</Page>
|
|
||||||
<Page Include="HelpPanel\Icon_Tooltip.xaml">
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
</Page>
|
|
||||||
<Page Include="HelpPanel\ProjectManager_Tooltip.xaml">
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
</Page>
|
|
||||||
<Page Include="HelpWnd\HelpWndV.xaml">
|
|
||||||
<SubType>Designer</SubType>
|
|
||||||
<Generator>MSBuild:Compile</Generator>
|
|
||||||
</Page>
|
|
||||||
<Page Include="ImportExportMachiningPanel\ImportExportMachiningPanelV.xaml">
|
<Page Include="ImportExportMachiningPanel\ImportExportMachiningPanelV.xaml">
|
||||||
<SubType>Designer</SubType>
|
<SubType>Designer</SubType>
|
||||||
<Generator>XamlIntelliSenseFileGenerator</Generator>
|
<Generator>XamlIntelliSenseFileGenerator</Generator>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
xmlns:sys="clr-namespace:System;assembly=mscorlib"
|
||||||
xmlns:local="clr-namespace:Icarus"
|
xmlns:local="clr-namespace:Icarus"
|
||||||
|
IsEnabled="{Binding InstrumentPanel_IsEnabled}"
|
||||||
Orientation="Horizontal">
|
Orientation="Horizontal">
|
||||||
|
|
||||||
<local:CheckedImageToggleButton ToolTip="{Binding GetDist_ToolTip}"
|
<local:CheckedImageToggleButton ToolTip="{Binding GetDist_ToolTip}"
|
||||||
|
|||||||
+353
-36
@@ -45,12 +45,6 @@ Public Class Machining
|
|||||||
SUPPORT = 4
|
SUPPORT = 4
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
Public Enum MPAR_INFILL As Integer
|
|
||||||
NONE = 1
|
|
||||||
OFFSET = 2
|
|
||||||
ZIGZAG = 3
|
|
||||||
End Enum
|
|
||||||
|
|
||||||
Public Enum MPAR_DYNAMIC_MODE As Integer
|
Public Enum MPAR_DYNAMIC_MODE As Integer
|
||||||
STANDARD = 1
|
STANDARD = 1
|
||||||
FAST = 2
|
FAST = 2
|
||||||
@@ -67,6 +61,17 @@ Public Class Machining
|
|||||||
RIB_SUPPORT = 8
|
RIB_SUPPORT = 8
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
|
Public Enum MPAR_INFILL_TYPE As Integer
|
||||||
|
NONE = 0
|
||||||
|
OFFSET = 16
|
||||||
|
ZIGZAG = 17
|
||||||
|
LINES = 32
|
||||||
|
GRID = 33
|
||||||
|
ZIGZAG_GRID = 34
|
||||||
|
HONEYCOMB = 35
|
||||||
|
HONEYCOMB_GRID = 36
|
||||||
|
End Enum
|
||||||
|
|
||||||
Protected m_CathegoryList As New ObservableCollection(Of MachiningCathegory)
|
Protected m_CathegoryList As New ObservableCollection(Of MachiningCathegory)
|
||||||
Public ReadOnly Property CathegoryList As ObservableCollection(Of MachiningCathegory)
|
Public ReadOnly Property CathegoryList As ObservableCollection(Of MachiningCathegory)
|
||||||
Get
|
Get
|
||||||
@@ -147,6 +152,7 @@ Public Class Machining
|
|||||||
m_CathegoryList.Add(New MachiningCathegory(MachiningCathegory.Cathegories.RIBS, nIndex))
|
m_CathegoryList.Add(New MachiningCathegory(MachiningCathegory.Cathegories.RIBS, nIndex))
|
||||||
m_CathegoryList.Add(New MachiningCathegory(MachiningCathegory.Cathegories.SHELL_NUMBER, nIndex))
|
m_CathegoryList.Add(New MachiningCathegory(MachiningCathegory.Cathegories.SHELL_NUMBER, nIndex))
|
||||||
m_CathegoryList.Add(New MachiningCathegory(MachiningCathegory.Cathegories.AUX_SOLID, nIndex))
|
m_CathegoryList.Add(New MachiningCathegory(MachiningCathegory.Cathegories.AUX_SOLID, nIndex))
|
||||||
|
m_CathegoryList.Add(New MachiningCathegory(MachiningCathegory.Cathegories.INFILL, nIndex))
|
||||||
m_CathegoryList.Add(New MachiningCathegory(MachiningCathegory.Cathegories.MATERIALS, nIndex))
|
m_CathegoryList.Add(New MachiningCathegory(MachiningCathegory.Cathegories.MATERIALS, nIndex))
|
||||||
For Each Cathegory In m_CathegoryList
|
For Each Cathegory In m_CathegoryList
|
||||||
For Each MachiningParam In Cathegory.MachiningParamList
|
For Each MachiningParam In Cathegory.MachiningParamList
|
||||||
@@ -273,7 +279,8 @@ Public Class MachiningCathegory
|
|||||||
RIBS = 8
|
RIBS = 8
|
||||||
SHELL_NUMBER = 9
|
SHELL_NUMBER = 9
|
||||||
AUX_SOLID = 10
|
AUX_SOLID = 10
|
||||||
MATERIALS = 11
|
INFILL = 11
|
||||||
|
MATERIALS = 12
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
Protected m_Type As Cathegories
|
Protected m_Type As Cathegories
|
||||||
@@ -326,7 +333,6 @@ Public Class MachiningCathegory
|
|||||||
New NumericMachiningParam(MachiningParam.Params.STARTPOINTOFFSETONSLICE, nIndex, Me),
|
New NumericMachiningParam(MachiningParam.Params.STARTPOINTOFFSETONSLICE, nIndex, Me),
|
||||||
New ComboMachiningParam(MachiningParam.Params.STRANDORDER, nIndex, Me),
|
New ComboMachiningParam(MachiningParam.Params.STRANDORDER, nIndex, Me),
|
||||||
New ComboMachiningParam(MachiningParam.Params.DIRECTION, nIndex, Me),
|
New ComboMachiningParam(MachiningParam.Params.DIRECTION, nIndex, Me),
|
||||||
New NumericMachiningParam(MachiningParam.Params.FLOORCOUNT, nIndex, Me),
|
|
||||||
New NumericMachiningParam(MachiningParam.Params.G0FEED, nIndex, Me),
|
New NumericMachiningParam(MachiningParam.Params.G0FEED, nIndex, Me),
|
||||||
New NumericMachiningParam(MachiningParam.Params.G0FEEDZ, nIndex, Me),
|
New NumericMachiningParam(MachiningParam.Params.G0FEEDZ, nIndex, Me),
|
||||||
New NumericMachiningParam(MachiningParam.Params.LINKZUP, nIndex, Me),
|
New NumericMachiningParam(MachiningParam.Params.LINKZUP, nIndex, Me),
|
||||||
@@ -336,7 +342,8 @@ Public Class MachiningCathegory
|
|||||||
New OrderedMachiningParam(MachiningParam.Params.PRINT_ORDER, nIndex, Me),
|
New OrderedMachiningParam(MachiningParam.Params.PRINT_ORDER, nIndex, Me),
|
||||||
New NumericMachiningParam(MachiningParam.Params.PREFLOWDELAY, nIndex, Me),
|
New NumericMachiningParam(MachiningParam.Params.PREFLOWDELAY, nIndex, Me),
|
||||||
New NumericMachiningParam(MachiningParam.Params.POSTFLOWDELAY, nIndex, Me),
|
New NumericMachiningParam(MachiningParam.Params.POSTFLOWDELAY, nIndex, Me),
|
||||||
New NumericMachiningParam(MachiningParam.Params.SCREWBACK, nIndex, Me)})
|
New NumericMachiningParam(MachiningParam.Params.SCREWBACK, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.SLICINGHEIGHT, nIndex, Me)})
|
||||||
Case Cathegories.LINK
|
Case Cathegories.LINK
|
||||||
m_sName = "Shell"
|
m_sName = "Shell"
|
||||||
m_MachiningParamList = New List(Of MachiningParam)({New NumericMachiningParam(MachiningParam.Params.OFFSETLEADPOINT, nIndex, Me),
|
m_MachiningParamList = New List(Of MachiningParam)({New NumericMachiningParam(MachiningParam.Params.OFFSETLEADPOINT, nIndex, Me),
|
||||||
@@ -378,15 +385,40 @@ Public Class MachiningCathegory
|
|||||||
New NumericMachiningParam(MachiningParam.Params.SHELLNBRWIPEDIR, nIndex, Me)})
|
New NumericMachiningParam(MachiningParam.Params.SHELLNBRWIPEDIR, nIndex, Me)})
|
||||||
Case Cathegories.AUX_SOLID
|
Case Cathegories.AUX_SOLID
|
||||||
m_sName = "Filled Solid"
|
m_sName = "Filled Solid"
|
||||||
m_MachiningParamList = New List(Of MachiningParam)({New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSOVERLAP, nIndex, Me),
|
m_MachiningParamList = New List(Of MachiningParam)({New ComboMachiningParam(MachiningParam.Params.AUXSOLIDSINFILL, nIndex, Me),
|
||||||
New ComboMachiningParam(MachiningParam.Params.AUXSOLIDSINFILL, nIndex, Me),
|
New CheckMachiningParam(MachiningParam.Params.AUXSOLIDSINFILLLINK, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDCOUNT, nIndex, Me),
|
||||||
New ComboMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDORDER, nIndex, Me),
|
New ComboMachiningParam(MachiningParam.Params.AUXSOLIDSSTRANDORDER, nIndex, Me),
|
||||||
New ComboMachiningParam(MachiningParam.Params.AUXSOLIDSLINKTYPE, nIndex, Me),
|
New ComboMachiningParam(MachiningParam.Params.AUXSOLIDSLINKTYPE, nIndex, Me),
|
||||||
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSLINKPARAM, nIndex, Me),
|
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSLINKPARAM, nIndex, Me),
|
||||||
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE, nIndex, Me),
|
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETLEADPOINT, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSDENSITY, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSGRIDOVERLAP, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSDIRECTION, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETX, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSOFFSETY, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSOVERLAP, nIndex, Me),
|
||||||
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSCOASTINGLEN, nIndex, Me),
|
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSCOASTINGLEN, nIndex, Me),
|
||||||
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPELEN, nIndex, Me),
|
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPELEN, nIndex, Me),
|
||||||
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPEDIR, nIndex, Me)})
|
New NumericMachiningParam(MachiningParam.Params.AUXSOLIDSWIPEDIR, nIndex, Me)})
|
||||||
|
Case Cathegories.INFILL
|
||||||
|
m_sName = "Infill"
|
||||||
|
m_MachiningParamList = New List(Of MachiningParam)({New NumericMachiningParam(MachiningParam.Params.FLOORCOUNT, nIndex, Me),
|
||||||
|
New ComboMachiningParam(MachiningParam.Params.FLOORTYPE, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.CEILCOUNT, nIndex, Me),
|
||||||
|
New ComboMachiningParam(MachiningParam.Params.CEILTYPE, nIndex, Me),
|
||||||
|
New ComboMachiningParam(MachiningParam.Params.INFILLTYPE, nIndex, Me),
|
||||||
|
New CheckMachiningParam(MachiningParam.Params.INFILLLINK, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.INFILLDENSITY, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.INFILLGRIDOVERLAP, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.INFILLDIRECTION, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.INFILLOFFSETX, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.INFILLOFFSETY, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.INFILLOVERLAP, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.INFILLCOASTING, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.INFILLWIPE, nIndex, Me),
|
||||||
|
New NumericMachiningParam(MachiningParam.Params.INFILLWIPEDIR, nIndex, Me)})
|
||||||
Case Cathegories.MATERIALS
|
Case Cathegories.MATERIALS
|
||||||
m_sName = "Materials"
|
m_sName = "Materials"
|
||||||
Dim sMaterials As String = ""
|
Dim sMaterials As String = ""
|
||||||
@@ -414,6 +446,19 @@ Public Class MachiningCathegory
|
|||||||
Dim MachiningParam As ComboMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
Dim MachiningParam As ComboMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
MachiningParam.ManageDependencyParam()
|
MachiningParam.ManageDependencyParam()
|
||||||
Next
|
Next
|
||||||
|
For Each Param In {MachiningParam.Params.AUXSOLIDSSTRANDCOUNT}
|
||||||
|
Dim MachiningParam As NumericMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
|
MachiningParam.ManageDependencyParam()
|
||||||
|
Next
|
||||||
|
Case Cathegories.INFILL
|
||||||
|
For Each Param In {MachiningParam.Params.FLOORCOUNT, MachiningParam.Params.CEILCOUNT}
|
||||||
|
Dim MachiningParam As NumericMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
|
MachiningParam.ManageDependencyParam()
|
||||||
|
Next
|
||||||
|
For Each Param In {MachiningParam.Params.INFILLTYPE}
|
||||||
|
Dim MachiningParam As ComboMachiningParam = MachiningParamList.FirstOrDefault(Function(z) z.Type = Param)
|
||||||
|
MachiningParam.ManageDependencyParam()
|
||||||
|
Next
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -454,7 +499,6 @@ Public MustInherit Class MachiningParam
|
|||||||
STARTPOINTOFFSETONSLICE = 8
|
STARTPOINTOFFSETONSLICE = 8
|
||||||
STRANDORDER = 9
|
STRANDORDER = 9
|
||||||
DIRECTION = 10
|
DIRECTION = 10
|
||||||
FLOORCOUNT = 11
|
|
||||||
G0FEED = 12
|
G0FEED = 12
|
||||||
LINKZUP = 13
|
LINKZUP = 13
|
||||||
G0FEEDZ = 14
|
G0FEEDZ = 14
|
||||||
@@ -465,6 +509,7 @@ Public MustInherit Class MachiningParam
|
|||||||
PREFLOWDELAY = 19
|
PREFLOWDELAY = 19
|
||||||
POSTFLOWDELAY = 20
|
POSTFLOWDELAY = 20
|
||||||
SCREWBACK = 21
|
SCREWBACK = 21
|
||||||
|
SLICINGHEIGHT = 22
|
||||||
LINKTYPE = 51
|
LINKTYPE = 51
|
||||||
LINKPARAM = 52
|
LINKPARAM = 52
|
||||||
LEADIN = 53
|
LEADIN = 53
|
||||||
@@ -504,10 +549,33 @@ Public MustInherit Class MachiningParam
|
|||||||
AUXSOLIDSLINKTYPE = 204
|
AUXSOLIDSLINKTYPE = 204
|
||||||
AUXSOLIDSLINKPARAM = 205
|
AUXSOLIDSLINKPARAM = 205
|
||||||
AUXSOLIDSSTARTPOINTOFFSETONSLICE = 206
|
AUXSOLIDSSTARTPOINTOFFSETONSLICE = 206
|
||||||
AUXSOLIDSCOASTINGLEN = 207
|
AUXSOLIDSOFFSETLEADPOINT = 207
|
||||||
AUXSOLIDSWIPELEN = 208
|
AUXSOLIDSDENSITY = 208
|
||||||
AUXSOLIDSWIPEDIR = 209
|
AUXSOLIDSGRIDOVERLAP = 209
|
||||||
MATERIALS = 250
|
AUXSOLIDSDIRECTION = 210
|
||||||
|
AUXSOLIDSOFFSETX = 211
|
||||||
|
AUXSOLIDSOFFSETY = 212
|
||||||
|
AUXSOLIDSCOASTINGLEN = 213
|
||||||
|
AUXSOLIDSWIPELEN = 214
|
||||||
|
AUXSOLIDSWIPEDIR = 215
|
||||||
|
AUXSOLIDSSTRANDCOUNT = 216
|
||||||
|
AUXSOLIDSINFILLLINK = 217
|
||||||
|
FLOORCOUNT = 250
|
||||||
|
FLOORTYPE = 251
|
||||||
|
CEILCOUNT = 252
|
||||||
|
CEILTYPE = 253
|
||||||
|
INFILLTYPE = 254
|
||||||
|
INFILLLINK = 255
|
||||||
|
INFILLDENSITY = 256
|
||||||
|
INFILLOVERLAP = 257
|
||||||
|
INFILLGRIDOVERLAP = 258
|
||||||
|
INFILLDIRECTION = 259
|
||||||
|
INFILLOFFSETX = 260
|
||||||
|
INFILLOFFSETY = 261
|
||||||
|
INFILLCOASTING = 262
|
||||||
|
INFILLWIPE = 263
|
||||||
|
INFILLWIPEDIR = 264
|
||||||
|
MATERIALS = 500
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
Protected m_Type As Params
|
Protected m_Type As Params
|
||||||
@@ -533,12 +601,29 @@ Public MustInherit Class MachiningParam
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property bIsBeta As Boolean
|
||||||
|
Get
|
||||||
|
Select Case m_Type
|
||||||
|
Case Params.FLOORCOUNT, Params.FLOORTYPE, Params.CEILCOUNT, Params.CEILTYPE, Params.INFILLTYPE
|
||||||
|
Return True
|
||||||
|
Case Else
|
||||||
|
Return False
|
||||||
|
End Select
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Public ReadOnly Property IsBeta_Visibility As Visibility
|
||||||
|
Get
|
||||||
|
Return If(bIsBeta, Visibility.Visible, Visibility.Collapsed)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Sub New(Type As Params, Cathegory As MachiningCathegory)
|
Sub New(Type As Params, Cathegory As MachiningCathegory)
|
||||||
m_Type = Type
|
m_Type = Type
|
||||||
m_Cathegory = Cathegory
|
m_Cathegory = Cathegory
|
||||||
Select Case m_Type
|
Select Case m_Type
|
||||||
Case Params.SLICINGTYPE
|
Case Params.SLICINGTYPE
|
||||||
m_sName = "Slicing direction"
|
m_sName = "Slicing Direction"
|
||||||
Case Params.STRANDH
|
Case Params.STRANDH
|
||||||
m_sName = "Strand Height"
|
m_sName = "Strand Height"
|
||||||
Case Params.STRANDW
|
Case Params.STRANDW
|
||||||
@@ -595,6 +680,8 @@ Public MustInherit Class MachiningParam
|
|||||||
m_sName = "Post Flow Delay"
|
m_sName = "Post Flow Delay"
|
||||||
Case Params.SCREWBACK
|
Case Params.SCREWBACK
|
||||||
m_sName = "Screw Back"
|
m_sName = "Screw Back"
|
||||||
|
Case Params.SLICINGHEIGHT
|
||||||
|
m_sName = "Slicing Height"
|
||||||
Case Params.RIBSTYPE
|
Case Params.RIBSTYPE
|
||||||
m_sName = "Type"
|
m_sName = "Type"
|
||||||
Case Params.RIBSOVERLAP
|
Case Params.RIBSOVERLAP
|
||||||
@@ -637,6 +724,10 @@ Public MustInherit Class MachiningParam
|
|||||||
m_sName = "Overlap [%]"
|
m_sName = "Overlap [%]"
|
||||||
Case Params.AUXSOLIDSINFILL
|
Case Params.AUXSOLIDSINFILL
|
||||||
m_sName = "Infill"
|
m_sName = "Infill"
|
||||||
|
Case Params.AUXSOLIDSINFILLLINK
|
||||||
|
m_sName = "Infill Link"
|
||||||
|
Case Params.AUXSOLIDSSTRANDCOUNT
|
||||||
|
m_sName = "Strand Count"
|
||||||
Case Params.AUXSOLIDSSTRANDORDER
|
Case Params.AUXSOLIDSSTRANDORDER
|
||||||
m_sName = "Strand Order"
|
m_sName = "Strand Order"
|
||||||
Case Params.AUXSOLIDSLINKTYPE
|
Case Params.AUXSOLIDSLINKTYPE
|
||||||
@@ -645,6 +736,18 @@ Public MustInherit Class MachiningParam
|
|||||||
m_sName = "Link Parameter"
|
m_sName = "Link Parameter"
|
||||||
Case Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE
|
Case Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE
|
||||||
m_sName = "Start Point Offset On Slice"
|
m_sName = "Start Point Offset On Slice"
|
||||||
|
Case Params.AUXSOLIDSOFFSETLEADPOINT
|
||||||
|
m_sName = "Offset Lead Point"
|
||||||
|
Case Params.AUXSOLIDSDENSITY
|
||||||
|
m_sName = "Density [%]"
|
||||||
|
Case Params.AUXSOLIDSGRIDOVERLAP
|
||||||
|
m_sName = "Grid Overlap [%]"
|
||||||
|
Case Params.AUXSOLIDSDIRECTION
|
||||||
|
m_sName = "Direction"
|
||||||
|
Case Params.AUXSOLIDSOFFSETX
|
||||||
|
m_sName = "Offset X"
|
||||||
|
Case Params.AUXSOLIDSOFFSETY
|
||||||
|
m_sName = "Offset Y"
|
||||||
Case Params.AUXSOLIDSCOASTINGLEN
|
Case Params.AUXSOLIDSCOASTINGLEN
|
||||||
m_sName = "Coasting Length"
|
m_sName = "Coasting Length"
|
||||||
Case Params.AUXSOLIDSWIPELEN
|
Case Params.AUXSOLIDSWIPELEN
|
||||||
@@ -658,11 +761,39 @@ Public MustInherit Class MachiningParam
|
|||||||
Case Params.STRANDOVERLAP
|
Case Params.STRANDOVERLAP
|
||||||
m_sName = "Strand Overlap [%]"
|
m_sName = "Strand Overlap [%]"
|
||||||
Case Params.FLOWRATE_PC
|
Case Params.FLOWRATE_PC
|
||||||
m_sName = "Flow rate [%]"
|
m_sName = "Flow Rate [%]"
|
||||||
Case Params.DYNAMIC_MODE
|
Case Params.DYNAMIC_MODE
|
||||||
m_sName = "Dynamic Mode"
|
m_sName = "Dynamic Mode"
|
||||||
Case Params.PRINT_ORDER
|
Case Params.PRINT_ORDER
|
||||||
m_sName = "Print Order"
|
m_sName = "Print Order"
|
||||||
|
Case Params.FLOORTYPE
|
||||||
|
m_sName = "Floor Type"
|
||||||
|
Case Params.CEILCOUNT
|
||||||
|
m_sName = "Ceil Count"
|
||||||
|
Case Params.CEILTYPE
|
||||||
|
m_sName = "Ceil Type"
|
||||||
|
Case Params.INFILLTYPE
|
||||||
|
m_sName = "Infill Type"
|
||||||
|
Case Params.INFILLLINK
|
||||||
|
m_sName = "Link"
|
||||||
|
Case Params.INFILLDENSITY
|
||||||
|
m_sName = "Density [%]"
|
||||||
|
Case Params.INFILLOVERLAP
|
||||||
|
m_sName = "Overlap [%]"
|
||||||
|
Case Params.INFILLGRIDOVERLAP
|
||||||
|
m_sName = "Grid Overlap [%]"
|
||||||
|
Case Params.INFILLDIRECTION
|
||||||
|
m_sName = "Direction"
|
||||||
|
Case Params.INFILLOFFSETX
|
||||||
|
m_sName = "Offset X"
|
||||||
|
Case Params.INFILLOFFSETY
|
||||||
|
m_sName = "Offset Y"
|
||||||
|
Case Params.INFILLCOASTING
|
||||||
|
m_sName = "Coasting"
|
||||||
|
Case Params.INFILLWIPE
|
||||||
|
m_sName = "Wipe"
|
||||||
|
Case Params.INFILLWIPEDIR
|
||||||
|
m_sName = "Wipe Direction"
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -714,6 +845,7 @@ Public Class NumericMachiningParam
|
|||||||
m_dValue = dTempValue
|
m_dValue = dTempValue
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged(NameOf(sValue))
|
NotifyPropertyChanged(NameOf(sValue))
|
||||||
|
ManageDependencyParam()
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -749,7 +881,7 @@ Public Class NumericMachiningParam
|
|||||||
MyBase.New(Type, Cathegory)
|
MyBase.New(Type, Cathegory)
|
||||||
' leggo ed imposto eventuali min e max
|
' leggo ed imposto eventuali min e max
|
||||||
Dim sMinMax As String = ""
|
Dim sMinMax As String = ""
|
||||||
If GetMainPrivateProfileString(S_MINMAX, Type, "", sMinMax) > 0 Then
|
If GetPrivateProfileString(S_MINMAX, Type, "", sMinMax, CurrentMachine.sMachIniFile) > 0 Then
|
||||||
Dim sMinMaxValues() As String = sMinMax.Split(","c)
|
Dim sMinMaxValues() As String = sMinMax.Split(","c)
|
||||||
Dim dMin As Double = 0
|
Dim dMin As Double = 0
|
||||||
Dim dMax As Double = 0
|
Dim dMax As Double = 0
|
||||||
@@ -759,6 +891,11 @@ Public Class NumericMachiningParam
|
|||||||
m_bIsActiveMinMax = True
|
m_bIsActiveMinMax = True
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
If Type = Params.SLICINGHEIGHT Then
|
||||||
|
m_dMinValue = 0
|
||||||
|
m_dMaxValue = CurrentMachine.dSlicingMaxHeight
|
||||||
|
m_bIsActiveMinMax = True
|
||||||
|
End If
|
||||||
' leggo parametri da Db
|
' leggo parametri da Db
|
||||||
If nIndex = 0 Then
|
If nIndex = 0 Then
|
||||||
m_dValue = 0
|
m_dValue = 0
|
||||||
@@ -838,7 +975,10 @@ Public Class NumericMachiningParam
|
|||||||
m_dValue = ReadMachiningParamDouble(nIndex, MAC_POSTFLOWDELAY, 0)
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_POSTFLOWDELAY, 0)
|
||||||
m_bIsLen = False
|
m_bIsLen = False
|
||||||
Case Params.SCREWBACK
|
Case Params.SCREWBACK
|
||||||
m_dValue = ReadMachiningParamDouble(nIndex, MAC_SCREWBACK, 0)
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_SCREWBACK, 45)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.SLICINGHEIGHT
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_SLICINGHEIGHT, CurrentMachine.dSlicingMaxHeight)
|
||||||
m_bIsLen = False
|
m_bIsLen = False
|
||||||
Case Params.RIBSOVERLAP
|
Case Params.RIBSOVERLAP
|
||||||
m_dValue = ReadMachiningParamDouble(nIndex, MAC_RIBSOVERLAP, 0)
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_RIBSOVERLAP, 0)
|
||||||
@@ -873,6 +1013,9 @@ Public Class NumericMachiningParam
|
|||||||
Case Params.SHELLNBRWIPEDIR
|
Case Params.SHELLNBRWIPEDIR
|
||||||
m_dValue = ReadMachiningParamDouble(nIndex, MAC_SHELLNBRWIPEDIR, 0)
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_SHELLNBRWIPEDIR, 0)
|
||||||
m_bIsLen = False
|
m_bIsLen = False
|
||||||
|
Case Params.AUXSOLIDSSTRANDCOUNT
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSSTRANDCOUNT, 0)
|
||||||
|
m_bIsLen = False
|
||||||
Case Params.AUXSOLIDSOVERLAP
|
Case Params.AUXSOLIDSOVERLAP
|
||||||
m_dValue = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSOVERLAP, 0)
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSOVERLAP, 0)
|
||||||
m_bIsLen = False
|
m_bIsLen = False
|
||||||
@@ -882,6 +1025,24 @@ Public Class NumericMachiningParam
|
|||||||
Case Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE
|
Case Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE
|
||||||
m_dValue = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, 0)
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, 0)
|
||||||
m_bIsLen = True
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSOFFSETLEADPOINT
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSOFFSETLEADPOINT, 0)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSDENSITY
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSDENSITY, 0)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.AUXSOLIDSGRIDOVERLAP
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSGRIDOVERLAP, 0)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSDIRECTION
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSDIRECTION, 0)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.AUXSOLIDSOFFSETX
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSOFFSETX, 0)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.AUXSOLIDSOFFSETY
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSOFFSETY, 0)
|
||||||
|
m_bIsLen = True
|
||||||
Case Params.AUXSOLIDSCOASTINGLEN
|
Case Params.AUXSOLIDSCOASTINGLEN
|
||||||
m_dValue = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSCOASTINGLEN, 0)
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSCOASTINGLEN, 0)
|
||||||
m_bIsLen = True
|
m_bIsLen = True
|
||||||
@@ -894,11 +1055,65 @@ Public Class NumericMachiningParam
|
|||||||
Case Params.FLOWRATE_PC
|
Case Params.FLOWRATE_PC
|
||||||
m_dValue = ReadMachiningParamDouble(nIndex, MAC_CONSTANT, 100)
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_CONSTANT, 100)
|
||||||
m_bIsLen = False
|
m_bIsLen = False
|
||||||
|
Case Params.CEILCOUNT
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_CEILCOUNT, 0)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLDENSITY
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_INFILLDENSITY, 0)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLOVERLAP
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_INFILLOVERLAP, 0)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLGRIDOVERLAP
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_INFILLGRIDOVERLAP, 0)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLDIRECTION
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_INFILLDIRECTION, 0)
|
||||||
|
m_bIsLen = False
|
||||||
|
Case Params.INFILLOFFSETX
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_INFILLOFFSETX, 0)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.INFILLOFFSETY
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_INFILLOFFSETY, 0)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.INFILLCOASTING
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_INFILLCOASTING, 0)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.INFILLWIPE
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_INFILLWIPE, 0)
|
||||||
|
m_bIsLen = True
|
||||||
|
Case Params.INFILLWIPEDIR
|
||||||
|
m_dValue = ReadMachiningParamDouble(nIndex, MAC_INFILLWIPEDIR, 0)
|
||||||
|
m_bIsLen = False
|
||||||
End Select
|
End Select
|
||||||
End If
|
End If
|
||||||
m_dOrigValue = m_dValue
|
m_dOrigValue = m_dValue
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Friend Sub ManageDependencyParam()
|
||||||
|
' gestisco dis/attivazione parametri dipendenti
|
||||||
|
Select Case m_Type
|
||||||
|
Case Params.FLOORCOUNT
|
||||||
|
Dim ComboMachiningParam As ComboMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.FLOORTYPE)
|
||||||
|
ComboMachiningParam.SetIsActive(m_dValue <> 0)
|
||||||
|
Case Params.CEILCOUNT
|
||||||
|
Dim ComboMachiningParam As ComboMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.CEILTYPE)
|
||||||
|
ComboMachiningParam.SetIsActive(m_dValue <> 0)
|
||||||
|
Case Params.AUXSOLIDSSTRANDCOUNT
|
||||||
|
Dim AuxSolidsInfillParam As ComboMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSINFILL)
|
||||||
|
Dim ComboMachiningParam As ComboMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSSTRANDORDER)
|
||||||
|
ComboMachiningParam.SetIsActive(m_dValue > 0 OrElse AuxSolidsInfillParam.SelValue.Id = Machining.MPAR_INFILL_TYPE.OFFSET)
|
||||||
|
ComboMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSLINKTYPE)
|
||||||
|
ComboMachiningParam.SetIsActive(m_dValue > 0 OrElse AuxSolidsInfillParam.SelValue.Id = Machining.MPAR_INFILL_TYPE.OFFSET)
|
||||||
|
Dim NumericMachiningParam As NumericMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSLINKPARAM)
|
||||||
|
NumericMachiningParam.SetIsActive(m_dValue > 0 OrElse AuxSolidsInfillParam.SelValue.Id = Machining.MPAR_INFILL_TYPE.OFFSET)
|
||||||
|
NumericMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE)
|
||||||
|
NumericMachiningParam.SetIsActive(m_dValue > 0 OrElse AuxSolidsInfillParam.SelValue.Id = Machining.MPAR_INFILL_TYPE.OFFSET)
|
||||||
|
NumericMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSOFFSETLEADPOINT)
|
||||||
|
NumericMachiningParam.SetIsActive(m_dValue > 0 OrElse AuxSolidsInfillParam.SelValue.Id = Machining.MPAR_INFILL_TYPE.OFFSET)
|
||||||
|
End Select
|
||||||
|
End Sub
|
||||||
|
|
||||||
Friend Overrides Sub WriteParamOnDb(nIndex As Integer, Optional sFilePath As String = "")
|
Friend Overrides Sub WriteParamOnDb(nIndex As Integer, Optional sFilePath As String = "")
|
||||||
Dim sWriteValue As String = ""
|
Dim sWriteValue As String = ""
|
||||||
If m_bIsLen Then
|
If m_bIsLen Then
|
||||||
@@ -957,6 +1172,8 @@ Public Class NumericMachiningParam
|
|||||||
WriteMachiningParam(nIndex, MAC_POSTFLOWDELAY, sWriteValue, sFilePath)
|
WriteMachiningParam(nIndex, MAC_POSTFLOWDELAY, sWriteValue, sFilePath)
|
||||||
Case Params.SCREWBACK
|
Case Params.SCREWBACK
|
||||||
WriteMachiningParam(nIndex, MAC_SCREWBACK, sWriteValue, sFilePath)
|
WriteMachiningParam(nIndex, MAC_SCREWBACK, sWriteValue, sFilePath)
|
||||||
|
Case Params.SLICINGHEIGHT
|
||||||
|
WriteMachiningParam(nIndex, MAC_SLICINGHEIGHT, sWriteValue, sFilePath)
|
||||||
Case Params.RIBSOVERLAP
|
Case Params.RIBSOVERLAP
|
||||||
WriteMachiningParam(nIndex, MAC_RIBSOVERLAP, sWriteValue, sFilePath)
|
WriteMachiningParam(nIndex, MAC_RIBSOVERLAP, sWriteValue, sFilePath)
|
||||||
Case Params.RIBSSTRANDCOUNT
|
Case Params.RIBSSTRANDCOUNT
|
||||||
@@ -979,12 +1196,26 @@ Public Class NumericMachiningParam
|
|||||||
WriteMachiningParam(nIndex, MAC_SHELLNBRWIPE, sWriteValue, sFilePath)
|
WriteMachiningParam(nIndex, MAC_SHELLNBRWIPE, sWriteValue, sFilePath)
|
||||||
Case Params.SHELLNBRWIPEDIR
|
Case Params.SHELLNBRWIPEDIR
|
||||||
WriteMachiningParam(nIndex, MAC_SHELLNBRWIPEDIR, sWriteValue, sFilePath)
|
WriteMachiningParam(nIndex, MAC_SHELLNBRWIPEDIR, sWriteValue, sFilePath)
|
||||||
|
Case Params.AUXSOLIDSSTRANDCOUNT
|
||||||
|
WriteMachiningParam(nIndex, MAC_AUXSOLIDSSTRANDCOUNT, sWriteValue, sFilePath)
|
||||||
Case Params.AUXSOLIDSOVERLAP
|
Case Params.AUXSOLIDSOVERLAP
|
||||||
WriteMachiningParam(nIndex, MAC_AUXSOLIDSOVERLAP, sWriteValue, sFilePath)
|
WriteMachiningParam(nIndex, MAC_AUXSOLIDSOVERLAP, sWriteValue, sFilePath)
|
||||||
Case Params.AUXSOLIDSLINKPARAM
|
Case Params.AUXSOLIDSLINKPARAM
|
||||||
WriteMachiningParam(nIndex, MAC_AUXSOLIDSLINKPARAM, sWriteValue, sFilePath)
|
WriteMachiningParam(nIndex, MAC_AUXSOLIDSLINKPARAM, sWriteValue, sFilePath)
|
||||||
Case Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE
|
Case Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE
|
||||||
WriteMachiningParam(nIndex, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, sWriteValue, sFilePath)
|
WriteMachiningParam(nIndex, MAC_AUXSOLIDSSTARTPOINTOFFSETONSLICE, sWriteValue, sFilePath)
|
||||||
|
Case Params.AUXSOLIDSOFFSETLEADPOINT
|
||||||
|
WriteMachiningParam(nIndex, MAC_AUXSOLIDSOFFSETLEADPOINT, sWriteValue, sFilePath)
|
||||||
|
Case Params.AUXSOLIDSDENSITY
|
||||||
|
WriteMachiningParam(nIndex, MAC_AUXSOLIDSDENSITY, sWriteValue, sFilePath)
|
||||||
|
Case Params.AUXSOLIDSGRIDOVERLAP
|
||||||
|
WriteMachiningParam(nIndex, MAC_AUXSOLIDSGRIDOVERLAP, sWriteValue, sFilePath)
|
||||||
|
Case Params.AUXSOLIDSDIRECTION
|
||||||
|
WriteMachiningParam(nIndex, MAC_AUXSOLIDSDIRECTION, sWriteValue, sFilePath)
|
||||||
|
Case Params.AUXSOLIDSOFFSETX
|
||||||
|
WriteMachiningParam(nIndex, MAC_AUXSOLIDSOFFSETX, sWriteValue, sFilePath)
|
||||||
|
Case Params.AUXSOLIDSOFFSETY
|
||||||
|
WriteMachiningParam(nIndex, MAC_AUXSOLIDSOFFSETY, sWriteValue, sFilePath)
|
||||||
Case Params.AUXSOLIDSCOASTINGLEN
|
Case Params.AUXSOLIDSCOASTINGLEN
|
||||||
WriteMachiningParam(nIndex, MAC_AUXSOLIDSCOASTINGLEN, sWriteValue, sFilePath)
|
WriteMachiningParam(nIndex, MAC_AUXSOLIDSCOASTINGLEN, sWriteValue, sFilePath)
|
||||||
Case Params.AUXSOLIDSWIPELEN
|
Case Params.AUXSOLIDSWIPELEN
|
||||||
@@ -993,6 +1224,26 @@ Public Class NumericMachiningParam
|
|||||||
WriteMachiningParam(nIndex, MAC_AUXSOLIDSWIPEDIR, sWriteValue, sFilePath)
|
WriteMachiningParam(nIndex, MAC_AUXSOLIDSWIPEDIR, sWriteValue, sFilePath)
|
||||||
Case Params.FLOWRATE_PC
|
Case Params.FLOWRATE_PC
|
||||||
WriteMachiningParam(nIndex, MAC_CONSTANT, sWriteValue, sFilePath)
|
WriteMachiningParam(nIndex, MAC_CONSTANT, sWriteValue, sFilePath)
|
||||||
|
Case Params.CEILCOUNT
|
||||||
|
WriteMachiningParam(nIndex, MAC_CEILCOUNT, sWriteValue, sFilePath)
|
||||||
|
Case Params.INFILLDENSITY
|
||||||
|
WriteMachiningParam(nIndex, MAC_INFILLDENSITY, sWriteValue, sFilePath)
|
||||||
|
Case Params.INFILLOVERLAP
|
||||||
|
WriteMachiningParam(nIndex, MAC_INFILLOVERLAP, sWriteValue, sFilePath)
|
||||||
|
Case Params.INFILLGRIDOVERLAP
|
||||||
|
WriteMachiningParam(nIndex, MAC_INFILLGRIDOVERLAP, sWriteValue, sFilePath)
|
||||||
|
Case Params.INFILLDIRECTION
|
||||||
|
WriteMachiningParam(nIndex, MAC_INFILLDIRECTION, sWriteValue, sFilePath)
|
||||||
|
Case Params.INFILLOFFSETX
|
||||||
|
WriteMachiningParam(nIndex, MAC_INFILLOFFSETX, sWriteValue, sFilePath)
|
||||||
|
Case Params.INFILLOFFSETY
|
||||||
|
WriteMachiningParam(nIndex, MAC_INFILLOFFSETY, sWriteValue, sFilePath)
|
||||||
|
Case Params.INFILLCOASTING
|
||||||
|
WriteMachiningParam(nIndex, MAC_INFILLCOASTING, sWriteValue, sFilePath)
|
||||||
|
Case Params.INFILLWIPE
|
||||||
|
WriteMachiningParam(nIndex, MAC_INFILLWIPE, sWriteValue, sFilePath)
|
||||||
|
Case Params.INFILLWIPEDIR
|
||||||
|
WriteMachiningParam(nIndex, MAC_INFILLWIPEDIR, sWriteValue, sFilePath)
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1137,50 +1388,71 @@ Public Class ComboMachiningParam
|
|||||||
Case Params.STRANDORDER
|
Case Params.STRANDORDER
|
||||||
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_STRANDORDERS.OUTTOIN, "From Outside To Inside"),
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_STRANDORDERS.OUTTOIN, "From Outside To Inside"),
|
||||||
New IdNameStruct(Machining.MPAR_STRANDORDERS.INTOOUT, "From Inside To Outside")})
|
New IdNameStruct(Machining.MPAR_STRANDORDERS.INTOOUT, "From Inside To Outside")})
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_STRANDORDER, 0))
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_STRANDORDER, Machining.MPAR_STRANDORDERS.OUTTOIN))
|
||||||
Case Params.DIRECTION
|
Case Params.DIRECTION
|
||||||
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_DIRECTIONS.CCW, "Counterclockwise"),
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_DIRECTIONS.CCW, "Counterclockwise"),
|
||||||
New IdNameStruct(Machining.MPAR_DIRECTIONS.CW, "Clockwise")})
|
New IdNameStruct(Machining.MPAR_DIRECTIONS.CW, "Clockwise")})
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_DIRECTION, 0))
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_DIRECTION, Machining.MPAR_DIRECTIONS.CCW))
|
||||||
Case Params.LINKTYPE
|
Case Params.LINKTYPE
|
||||||
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_LINKTYPES.NONE, "None"),
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_LINKTYPES.NONE, "None"),
|
||||||
New IdNameStruct(Machining.MPAR_LINKTYPES.LINEAR, "Linear"),
|
New IdNameStruct(Machining.MPAR_LINKTYPES.LINEAR, "Linear"),
|
||||||
New IdNameStruct(Machining.MPAR_LINKTYPES.BIARC, "Biarc")})
|
New IdNameStruct(Machining.MPAR_LINKTYPES.BIARC, "Biarc")})
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_LINKTYPE, 0))
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_LINKTYPE, Machining.MPAR_LEADINOUT.NONE))
|
||||||
Case Params.LEADIN
|
Case Params.LEADIN
|
||||||
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_LEADINOUT.NONE, "None"),
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_LEADINOUT.NONE, "None"),
|
||||||
New IdNameStruct(Machining.MPAR_LEADINOUT.LINEAR, "Linear"),
|
New IdNameStruct(Machining.MPAR_LEADINOUT.LINEAR, "Linear"),
|
||||||
New IdNameStruct(Machining.MPAR_LEADINOUT.ARC, "Arc")})
|
New IdNameStruct(Machining.MPAR_LEADINOUT.ARC, "Arc")})
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_LEADIN, 0))
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_LEADIN, Machining.MPAR_LEADINOUT.NONE))
|
||||||
Case Params.LEADOUT
|
Case Params.LEADOUT
|
||||||
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_LEADINOUT.NONE, "None"),
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_LEADINOUT.NONE, "None"),
|
||||||
New IdNameStruct(Machining.MPAR_LEADINOUT.LINEAR, "Linear"),
|
New IdNameStruct(Machining.MPAR_LEADINOUT.LINEAR, "Linear"),
|
||||||
New IdNameStruct(Machining.MPAR_LEADINOUT.ARC, "Arc")})
|
New IdNameStruct(Machining.MPAR_LEADINOUT.ARC, "Arc")})
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_LEADOUT, 0))
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_LEADOUT, Machining.MPAR_LEADINOUT.NONE))
|
||||||
Case Params.RIBSTYPE
|
Case Params.RIBSTYPE
|
||||||
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_RIBSTYPE.INTERNAL, "Internal"),
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_RIBSTYPE.INTERNAL, "Internal"),
|
||||||
New IdNameStruct(Machining.MPAR_RIBSTYPE.EXTERNAL, "External"),
|
New IdNameStruct(Machining.MPAR_RIBSTYPE.EXTERNAL, "External"),
|
||||||
New IdNameStruct(Machining.MPAR_RIBSTYPE.UNBOUNDED, "Unbounded"),
|
New IdNameStruct(Machining.MPAR_RIBSTYPE.UNBOUNDED, "Unbounded"),
|
||||||
New IdNameStruct(Machining.MPAR_RIBSTYPE.SUPPORT, "Support")})
|
New IdNameStruct(Machining.MPAR_RIBSTYPE.SUPPORT, "Support")})
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_RIBSTYPE, 1))
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_RIBSTYPE, Machining.MPAR_RIBSTYPE.INTERNAL))
|
||||||
Case Params.AUXSOLIDSINFILL
|
Case Params.AUXSOLIDSINFILL
|
||||||
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL.NONE, "None"),
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL_TYPE.NONE, "None"),
|
||||||
New IdNameStruct(Machining.MPAR_INFILL.OFFSET, "Offset"),
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.OFFSET, "Offset"),
|
||||||
New IdNameStruct(Machining.MPAR_INFILL.ZIGZAG, "ZigZag")})
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG, "ZigZag"),
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSINFILL, 0))
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.LINES, "Lines"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.GRID, "Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG_GRID, "Zigzag Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB, "Honeycomb"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB_GRID, "Honeycomb Grid")})
|
||||||
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSINFILL, Machining.MPAR_INFILL_TYPE.NONE))
|
||||||
Case Params.AUXSOLIDSSTRANDORDER
|
Case Params.AUXSOLIDSSTRANDORDER
|
||||||
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_STRANDORDERS.OUTTOIN, "From Outside To Inside"),
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_STRANDORDERS.OUTTOIN, "From Outside To Inside"),
|
||||||
New IdNameStruct(Machining.MPAR_STRANDORDERS.INTOOUT, "From Inside To Outside")})
|
New IdNameStruct(Machining.MPAR_STRANDORDERS.INTOOUT, "From Inside To Outside")})
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSSTRANDORDER, 0))
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSSTRANDORDER, Machining.MPAR_STRANDORDERS.OUTTOIN))
|
||||||
Case Params.AUXSOLIDSLINKTYPE
|
Case Params.AUXSOLIDSLINKTYPE
|
||||||
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_LINKTYPES.NONE, "None"),
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_LINKTYPES.NONE, "None"),
|
||||||
New IdNameStruct(Machining.MPAR_LINKTYPES.LINEAR, "Linear"),
|
New IdNameStruct(Machining.MPAR_LINKTYPES.LINEAR, "Linear"),
|
||||||
New IdNameStruct(Machining.MPAR_LINKTYPES.BIARC, "Biarc")})
|
New IdNameStruct(Machining.MPAR_LINKTYPES.BIARC, "Biarc")})
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSLINKTYPE, 0))
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSLINKTYPE, Machining.MPAR_LINKTYPES.NONE))
|
||||||
Case Params.DYNAMIC_MODE
|
Case Params.DYNAMIC_MODE
|
||||||
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_DYNAMIC_MODE.STANDARD, "Standard"),
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_DYNAMIC_MODE.STANDARD, "Standard"),
|
||||||
New IdNameStruct(Machining.MPAR_DYNAMIC_MODE.FAST, "Fast")})
|
New IdNameStruct(Machining.MPAR_DYNAMIC_MODE.FAST, "Fast")})
|
||||||
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_DYNAMICMODE, 1))
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_DYNAMICMODE, Machining.MPAR_DYNAMIC_MODE.STANDARD))
|
||||||
|
Case Params.FLOORTYPE
|
||||||
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL_TYPE.OFFSET, "Offset"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG, "ZigZag")})
|
||||||
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_FLOORTYPE, Machining.MPAR_INFILL_TYPE.OFFSET))
|
||||||
|
Case Params.CEILTYPE
|
||||||
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL_TYPE.OFFSET, "Offset"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG, "ZigZag")})
|
||||||
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_CEILTYPE, Machining.MPAR_INFILL_TYPE.OFFSET))
|
||||||
|
Case Params.INFILLTYPE
|
||||||
|
m_ValueList = New List(Of IdNameStruct)({New IdNameStruct(Machining.MPAR_INFILL_TYPE.NONE, "None"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.LINES, "Lines"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.GRID, "Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.ZIGZAG_GRID, "Zigzag Grid"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB, "Honeycomb"),
|
||||||
|
New IdNameStruct(Machining.MPAR_INFILL_TYPE.HONEYCOMB_GRID, "Honeycomb Grid")})
|
||||||
|
m_SelValue = m_ValueList.FirstOrDefault(Function(x) x.Id = ReadMachiningParamDouble(nIndex, MAC_INFILLTYPE, Machining.MPAR_INFILL_TYPE.NONE))
|
||||||
End Select
|
End Select
|
||||||
End If
|
End If
|
||||||
m_OrigSelValue = m_SelValue
|
m_OrigSelValue = m_SelValue
|
||||||
@@ -1206,12 +1478,43 @@ Public Class ComboMachiningParam
|
|||||||
Dim CheckMachiningParam As CheckMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.RIBSLIMITUNBOUNDEDWITHSOLID)
|
Dim CheckMachiningParam As CheckMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.RIBSLIMITUNBOUNDEDWITHSOLID)
|
||||||
CheckMachiningParam.SetIsActive(m_SelValue.Id = MPAR_RIBSTYPE.UNBOUNDED)
|
CheckMachiningParam.SetIsActive(m_SelValue.Id = MPAR_RIBSTYPE.UNBOUNDED)
|
||||||
Case Params.AUXSOLIDSINFILL
|
Case Params.AUXSOLIDSINFILL
|
||||||
|
Dim AuxSolidsStrandCountParam As NumericMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSSTRANDCOUNT)
|
||||||
Dim ComboMachiningParam As ComboMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSSTRANDORDER)
|
Dim ComboMachiningParam As ComboMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSSTRANDORDER)
|
||||||
ComboMachiningParam.SetIsActive(m_SelValue.Id = Machining.MPAR_INFILL.OFFSET)
|
ComboMachiningParam.SetIsActive(m_SelValue.Id = Machining.MPAR_INFILL_TYPE.OFFSET OrElse AuxSolidsStrandCountParam.dValue > 0)
|
||||||
ComboMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSLINKTYPE)
|
ComboMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSLINKTYPE)
|
||||||
ComboMachiningParam.SetIsActive(m_SelValue.Id = Machining.MPAR_INFILL.OFFSET)
|
ComboMachiningParam.SetIsActive(m_SelValue.Id = Machining.MPAR_INFILL_TYPE.OFFSET OrElse AuxSolidsStrandCountParam.dValue > 0)
|
||||||
Dim NumMachiningParam As NumericMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSLINKPARAM)
|
Dim NumMachiningParam As NumericMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSLINKPARAM)
|
||||||
NumMachiningParam.SetIsActive(m_SelValue.Id = Machining.MPAR_INFILL.OFFSET)
|
NumMachiningParam.SetIsActive(m_SelValue.Id = Machining.MPAR_INFILL_TYPE.OFFSET OrElse AuxSolidsStrandCountParam.dValue > 0)
|
||||||
|
NumMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSSTARTPOINTOFFSETONSLICE)
|
||||||
|
NumMachiningParam.SetIsActive(m_SelValue.Id = Machining.MPAR_INFILL_TYPE.OFFSET OrElse AuxSolidsStrandCountParam.dValue > 0)
|
||||||
|
NumMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSOFFSETLEADPOINT)
|
||||||
|
NumMachiningParam.SetIsActive(m_SelValue.Id = Machining.MPAR_INFILL_TYPE.OFFSET OrElse AuxSolidsStrandCountParam.dValue > 0)
|
||||||
|
NumMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSDENSITY)
|
||||||
|
NumMachiningParam.SetIsActive(m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.NONE AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.ZIGZAG AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.OFFSET)
|
||||||
|
NumMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSGRIDOVERLAP)
|
||||||
|
NumMachiningParam.SetIsActive(m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.NONE AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.ZIGZAG AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.OFFSET AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.LINES AndAlso
|
||||||
|
m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.GRID)
|
||||||
|
NumMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSDIRECTION)
|
||||||
|
NumMachiningParam.SetIsActive(m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.NONE AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.ZIGZAG AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.OFFSET)
|
||||||
|
NumMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSOFFSETX)
|
||||||
|
NumMachiningParam.SetIsActive(m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.NONE AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.ZIGZAG AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.OFFSET)
|
||||||
|
NumMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSOFFSETY)
|
||||||
|
NumMachiningParam.SetIsActive(m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.NONE AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.ZIGZAG AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.OFFSET)
|
||||||
|
Dim CheckMachiningParam As CheckMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.AUXSOLIDSINFILLLINK)
|
||||||
|
CheckMachiningParam.SetIsActive(m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.NONE AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.ZIGZAG AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.OFFSET)
|
||||||
|
Case Params.INFILLTYPE
|
||||||
|
Dim NumMachiningParam As NumericMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.INFILLDENSITY)
|
||||||
|
NumMachiningParam.SetIsActive(m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.NONE)
|
||||||
|
NumMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.INFILLGRIDOVERLAP)
|
||||||
|
NumMachiningParam.SetIsActive(m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.NONE AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.LINES AndAlso m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.GRID)
|
||||||
|
NumMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.INFILLDIRECTION)
|
||||||
|
NumMachiningParam.SetIsActive(m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.NONE)
|
||||||
|
NumMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.INFILLOFFSETX)
|
||||||
|
NumMachiningParam.SetIsActive(m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.NONE)
|
||||||
|
NumMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.INFILLOFFSETY)
|
||||||
|
NumMachiningParam.SetIsActive(m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.NONE)
|
||||||
|
Dim CheckMachiningParam As CheckMachiningParam = m_Cathegory.MachiningParamList.FirstOrDefault(Function(z) z.Type = Params.INFILLLINK)
|
||||||
|
CheckMachiningParam.SetIsActive(m_SelValue.Id <> Machining.MPAR_INFILL_TYPE.NONE)
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1239,6 +1542,12 @@ Public Class ComboMachiningParam
|
|||||||
WriteMachiningParam(nIndex, MAC_AUXSOLIDSLINKTYPE, m_SelValue.Id, sFilePath)
|
WriteMachiningParam(nIndex, MAC_AUXSOLIDSLINKTYPE, m_SelValue.Id, sFilePath)
|
||||||
Case Params.DYNAMIC_MODE
|
Case Params.DYNAMIC_MODE
|
||||||
WriteMachiningParam(nIndex, MAC_DYNAMICMODE, m_SelValue.Id, sFilePath)
|
WriteMachiningParam(nIndex, MAC_DYNAMICMODE, m_SelValue.Id, sFilePath)
|
||||||
|
Case Params.FLOORTYPE
|
||||||
|
WriteMachiningParam(nIndex, MAC_FLOORTYPE, m_SelValue.Id, sFilePath)
|
||||||
|
Case Params.CEILTYPE
|
||||||
|
WriteMachiningParam(nIndex, MAC_CEILTYPE, m_SelValue.Id, sFilePath)
|
||||||
|
Case Params.INFILLTYPE
|
||||||
|
WriteMachiningParam(nIndex, MAC_INFILLTYPE, m_SelValue.Id, sFilePath)
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1317,6 +1626,10 @@ Public Class CheckMachiningParam
|
|||||||
m_bValue = ReadMachiningParamDouble(nIndex, MAC_RIBSLEADOUTINVERT, 0)
|
m_bValue = ReadMachiningParamDouble(nIndex, MAC_RIBSLEADOUTINVERT, 0)
|
||||||
Case Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
Case Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
||||||
m_bValue = ReadMachiningParamDouble(nIndex, MAC_RIBSLIMITUNBOUNDEDWITHSOLID, 0)
|
m_bValue = ReadMachiningParamDouble(nIndex, MAC_RIBSLIMITUNBOUNDEDWITHSOLID, 0)
|
||||||
|
Case Params.AUXSOLIDSINFILLLINK
|
||||||
|
m_bValue = ReadMachiningParamDouble(nIndex, MAC_AUXSOLIDSINFILLLINK, 0)
|
||||||
|
Case Params.INFILLLINK
|
||||||
|
m_bValue = ReadMachiningParamDouble(nIndex, MAC_INFILLLINK, 0)
|
||||||
End Select
|
End Select
|
||||||
End If
|
End If
|
||||||
m_bOrigValue = m_bValue
|
m_bOrigValue = m_bValue
|
||||||
@@ -1340,6 +1653,10 @@ Public Class CheckMachiningParam
|
|||||||
WriteMachiningParam(nIndex, MAC_RIBSLEADOUTINVERT, If(m_bValue, 1, 0), sFilePath)
|
WriteMachiningParam(nIndex, MAC_RIBSLEADOUTINVERT, If(m_bValue, 1, 0), sFilePath)
|
||||||
Case Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
Case Params.RIBSLIMITUNBOUNDEDWITHSOLID
|
||||||
WriteMachiningParam(nIndex, MAC_RIBSLIMITUNBOUNDEDWITHSOLID, If(m_bValue, 1, 0), sFilePath)
|
WriteMachiningParam(nIndex, MAC_RIBSLIMITUNBOUNDEDWITHSOLID, If(m_bValue, 1, 0), sFilePath)
|
||||||
|
Case Params.AUXSOLIDSINFILLLINK
|
||||||
|
WriteMachiningParam(nIndex, MAC_AUXSOLIDSINFILLLINK, If(m_bValue, 1, 0), sFilePath)
|
||||||
|
Case Params.INFILLLINK
|
||||||
|
WriteMachiningParam(nIndex, MAC_INFILLLINK, If(m_bValue, 1, 0), sFilePath)
|
||||||
End Select
|
End Select
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -140,9 +140,16 @@
|
|||||||
<ColumnDefinition Width="2*"/>
|
<ColumnDefinition Width="2*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding sName}"
|
<StackPanel Orientation="Horizontal">
|
||||||
Margin="0,0,2.5,0"
|
<TextBlock Text="{Binding sName, Mode=OneWay}"
|
||||||
Style="{StaticResource ParameterList_TextBlock}"/>
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
<TextBlock Text=" (BETA)"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Foreground="Red"
|
||||||
|
Visibility="{Binding IsBeta_Visibility}"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
</StackPanel>
|
||||||
<EgtWPFLib5:EgtTextBox2 Grid.Column="1"
|
<EgtWPFLib5:EgtTextBox2 Grid.Column="1"
|
||||||
Text="{Binding sValue, UpdateSourceTrigger=Explicit}"
|
Text="{Binding sValue, UpdateSourceTrigger=Explicit}"
|
||||||
Margin="2.5,0,0,0"
|
Margin="2.5,0,0,0"
|
||||||
@@ -156,9 +163,16 @@
|
|||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding sName}"
|
<StackPanel Orientation="Horizontal">
|
||||||
Margin="0,0,2.5,0"
|
<TextBlock Text="{Binding sName, Mode=OneWay}"
|
||||||
Style="{StaticResource ParameterList_TextBlock}"/>
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
<TextBlock Text=" (BETA)"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Foreground="Red"
|
||||||
|
Visibility="{Binding IsBeta_Visibility}"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
</StackPanel>
|
||||||
<ComboBox Grid.Column="1"
|
<ComboBox Grid.Column="1"
|
||||||
ItemsSource="{Binding ValueList}"
|
ItemsSource="{Binding ValueList}"
|
||||||
SelectedItem="{Binding SelValue}"
|
SelectedItem="{Binding SelValue}"
|
||||||
@@ -175,9 +189,16 @@
|
|||||||
<ColumnDefinition Width="2*"/>
|
<ColumnDefinition Width="2*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding sName}"
|
<StackPanel Orientation="Horizontal">
|
||||||
Margin="0,0,2.5,0"
|
<TextBlock Text="{Binding sName, Mode=OneWay}"
|
||||||
Style="{StaticResource ParameterList_TextBlock}"/>
|
Margin="0,0,2.5,0"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
<TextBlock Text=" (BETA)"
|
||||||
|
Margin="0,0,2.5,0"
|
||||||
|
Foreground="Red"
|
||||||
|
Visibility="{Binding IsBeta_Visibility}"
|
||||||
|
Style="{StaticResource ParameterList_TextBlock}"/>
|
||||||
|
</StackPanel>
|
||||||
<CheckBox Grid.Column="1"
|
<CheckBox Grid.Column="1"
|
||||||
IsChecked="{Binding bValue}"
|
IsChecked="{Binding bValue}"
|
||||||
HorizontalAlignment="Center"
|
HorizontalAlignment="Center"
|
||||||
|
|||||||
@@ -75,13 +75,6 @@ Public Class MainWindowM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Private m_bAutoNestOption As Boolean = False
|
|
||||||
Friend ReadOnly Property AutoNestOption As Boolean
|
|
||||||
Get
|
|
||||||
Return m_bAutoNestOption
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Friend ReadOnly Property sVersion As String
|
Friend ReadOnly Property sVersion As String
|
||||||
Get
|
Get
|
||||||
Return My.Application.Info.Version.Major.ToString() & "." &
|
Return My.Application.Info.Version.Major.ToString() & "." &
|
||||||
@@ -189,14 +182,17 @@ Public Class MainWindowM
|
|||||||
Dim sKey As String = String.Empty
|
Dim sKey As String = String.Empty
|
||||||
EgtUILib.GetPrivateProfileString(S_LICENCE, K_KEY, "", sKey, sLicFile)
|
EgtUILib.GetPrivateProfileString(S_LICENCE, K_KEY, "", sKey, sLicFile)
|
||||||
EgtSetKey(sKey)
|
EgtSetKey(sKey)
|
||||||
Dim sNestKey As String = ""
|
' Impostazioni per chiave di rete
|
||||||
EgtUILib.GetPrivateProfileString(S_LICENCE, K_NESTKEY, "", sNestKey, sLicFile)
|
Dim bNetKey As Boolean = ( GetMainPrivateProfileInt( S_GENERAL, K_NETKEY, 0) = 1)
|
||||||
'EgtSetNestKey(sNestKey)
|
EgtSetNetHwKey( bNetKey)
|
||||||
' Verifico abilitazione nesting automatico
|
Dim sLockId As String = ""
|
||||||
m_bAutoNestOption = Not String.IsNullOrWhiteSpace(sNestKey)
|
EgtUILib.GetPrivateProfileString( S_LICENCE, K_LOCKID, "", sLockId, sLicFile)
|
||||||
|
If Not String.IsNullOrEmpty( sLockId) Then
|
||||||
|
EgtSetLockId( sLockId)
|
||||||
|
End If
|
||||||
' Recupero livello e opzioni della chiave
|
' Recupero livello e opzioni della chiave
|
||||||
Dim bKey As Boolean = EgtGetKeyLevel(5583, 2504, 1, m_nKeyLevel) And
|
Dim bKey As Boolean = EgtGetKeyLevel(5583, 2508, 1, m_nKeyLevel) And
|
||||||
EgtGetKeyOptions(5583, 2504, 1, m_nKeyOptions)
|
EgtGetKeyOptions(5583, 2508, 1, m_nKeyOptions)
|
||||||
' Inizializzazione generale di EgtInterface
|
' Inizializzazione generale di EgtInterface
|
||||||
m_nDebug = GetMainPrivateProfileInt(S_GENERAL, K_DEBUG, 0)
|
m_nDebug = GetMainPrivateProfileInt(S_GENERAL, K_DEBUG, 0)
|
||||||
m_sLogFile = m_sTempDir & "\" & GENLOG_FILE_NAME.Replace("#", m_nInstance.ToString())
|
m_sLogFile = m_sTempDir & "\" & GENLOG_FILE_NAME.Replace("#", m_nInstance.ToString())
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ Public Class MainWindowVM
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Private Function ProcessEvents(ByVal nProg As Integer, ByVal nPause As Integer) As Integer
|
Private Function ProcessEvents(ByVal nProg As Integer, ByVal nPause As Integer) As Integer
|
||||||
If Map.refSliceManagerVM.bCalculating Then
|
If Map.refSliceManagerVM.bCalculating OrElse Map.refSliceManagerVM.bCalcSolid Then
|
||||||
Map.refSliceManagerVM.ProcessEvents(nProg, nPause)
|
Map.refSliceManagerVM.ProcessEvents(nProg, nPause)
|
||||||
End If
|
End If
|
||||||
If Not IsNothing(Map.refImportLoadingWndVM) Then
|
If Not IsNothing(Map.refImportLoadingWndVM) Then
|
||||||
|
|||||||
@@ -70,5 +70,5 @@ Imports System.Windows
|
|||||||
' by using the '*' as shown below:
|
' by using the '*' as shown below:
|
||||||
' <Assembly: AssemblyVersion("1.0.*")>
|
' <Assembly: AssemblyVersion("1.0.*")>
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.5.4.1")>
|
<Assembly: AssemblyVersion("2.5.8.1")>
|
||||||
<Assembly: AssemblyFileVersion("2.5.4.1")>
|
<Assembly: AssemblyFileVersion("2.5.8.1")>
|
||||||
|
|||||||
@@ -86,12 +86,5 @@
|
|||||||
<Image Source="/Resources/ProjectManager/Send.png"
|
<Image Source="/Resources/ProjectManager/Send.png"
|
||||||
Style="{StaticResource Button_Image}"/>
|
Style="{StaticResource Button_Image}"/>
|
||||||
</Button>
|
</Button>
|
||||||
<Button Command="{Binding Help_Command}"
|
|
||||||
ToolTip="{Binding Help_ToolTip}"
|
|
||||||
Margin="2.5,0,0,0"
|
|
||||||
Style="{StaticResource ProjManager_Button}">
|
|
||||||
<Image Source="/Resources/ProjectManager/Send.png"
|
|
||||||
Style="{StaticResource Button_Image}"/>
|
|
||||||
</Button>
|
|
||||||
|
|
||||||
</StackPanel>
|
</StackPanel>
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
Imports System.IO
|
Imports System.IO
|
||||||
Imports EgtWPFLib5
|
Imports EgtWPFLib5
|
||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
|
Imports Newtonsoft.Json
|
||||||
|
|
||||||
Public Class ProjManagerVM
|
Public Class ProjManagerVM
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
@@ -63,7 +64,6 @@ Public Class ProjManagerVM
|
|||||||
Private m_cmdExport As ICommand
|
Private m_cmdExport As ICommand
|
||||||
Private m_cmdOptions As ICommand
|
Private m_cmdOptions As ICommand
|
||||||
Private m_cmdSendFeedback As ICommand
|
Private m_cmdSendFeedback As ICommand
|
||||||
Private m_cmdHelp As ICommand
|
|
||||||
|
|
||||||
|
|
||||||
#Region "ToolTip"
|
#Region "ToolTip"
|
||||||
@@ -198,7 +198,7 @@ Public Class ProjManagerVM
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Function OpenProject(sFilePath As String) As Boolean
|
Friend Function OpenProject(sFilePath As String) As Boolean
|
||||||
Map.refSceneHostVM.OpenProject(sFilePath)
|
Return Map.refSceneHostVM.OpenProject(sFilePath)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
#End Region ' OpenCommand
|
#End Region ' OpenCommand
|
||||||
@@ -248,9 +248,37 @@ Public Class ProjManagerVM
|
|||||||
''' Execute the Save. This method is invoked by the SaveCommand.
|
''' Execute the Save. This method is invoked by the SaveCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Save()
|
Public Sub Save()
|
||||||
|
If (Keyboard.Modifiers And ModifierKeys.Shift) = ModifierKeys.Shift Then
|
||||||
|
CreateJson()
|
||||||
|
End If
|
||||||
Map.refSceneHostVM.SaveProject()
|
Map.refSceneHostVM.SaveProject()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Function CreateJson() As Boolean
|
||||||
|
' creo json
|
||||||
|
Dim LayerList As New List(Of JsonLayer)
|
||||||
|
For Each Layer In Map.refTFSEditorVM.LayerList
|
||||||
|
LayerList.Add(Layer.ConvertToJsonLayer())
|
||||||
|
Next
|
||||||
|
Dim json As String = JsonConvert.SerializeObject(LayerList, Formatting.Indented)
|
||||||
|
Dim sProjName As String = ""
|
||||||
|
EgtGetCurrFilePath(sProjName)
|
||||||
|
If Not String.IsNullOrWhiteSpace(sProjName) Then
|
||||||
|
sProjName = Path.ChangeExtension(sProjName, ".json")
|
||||||
|
If File.Exists(sProjName) Then
|
||||||
|
Try
|
||||||
|
File.Delete(sProjName)
|
||||||
|
Catch ex As Exception
|
||||||
|
End Try
|
||||||
|
End If
|
||||||
|
Try
|
||||||
|
File.AppendAllText(sProjName, json)
|
||||||
|
Catch ex As Exception
|
||||||
|
EgtOutLog("Json writing error!")
|
||||||
|
End Try
|
||||||
|
End If
|
||||||
|
End Function
|
||||||
|
|
||||||
#End Region ' SaveCommand
|
#End Region ' SaveCommand
|
||||||
|
|
||||||
#Region "SaveAsCommand"
|
#Region "SaveAsCommand"
|
||||||
@@ -484,30 +512,6 @@ Public Class ProjManagerVM
|
|||||||
|
|
||||||
#End Region ' SendFeedback
|
#End Region ' SendFeedback
|
||||||
|
|
||||||
#Region "Help"
|
|
||||||
|
|
||||||
''' <summary>
|
|
||||||
''' Returns a command that do SendFeedback.
|
|
||||||
''' </summary>
|
|
||||||
Public ReadOnly Property Help_Command As ICommand
|
|
||||||
Get
|
|
||||||
If m_cmdHelp Is Nothing Then
|
|
||||||
m_cmdHelp = New Command(AddressOf Help)
|
|
||||||
End If
|
|
||||||
Return m_cmdHelp
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
''' <summary>
|
|
||||||
''' Execute the SendFeedback. This method is invoked by the SendFeedbackCommand.
|
|
||||||
''' </summary>
|
|
||||||
Public Sub Help(ByVal param As Object)
|
|
||||||
Dim HelpWnd As New HelpWndV(Application.Current.MainWindow, New HelpWndVM())
|
|
||||||
HelpWnd.Show()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
#End Region ' Help
|
|
||||||
|
|
||||||
#End Region ' Commands
|
#End Region ' Commands
|
||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
xmlns:PrintApp="clr-namespace:Icarus">
|
xmlns:PrintApp="clr-namespace:Icarus">
|
||||||
|
<DockPanel.Resources>
|
||||||
|
<PrintApp:VisibilityToRowConverter x:Key="VisibilityToRowConverter"/>
|
||||||
|
</DockPanel.Resources>
|
||||||
<Grid DockPanel.Dock="Top">
|
<Grid DockPanel.Dock="Top">
|
||||||
<PrintApp:TopPanelV Grid.Column="1"
|
<PrintApp:TopPanelV Grid.Column="1"
|
||||||
DataContext="{StaticResource TopPanelVM }"/>
|
DataContext="{StaticResource TopPanelVM }"/>
|
||||||
@@ -27,12 +29,27 @@
|
|||||||
DataContext="{StaticResource SliderManagerVM}"
|
DataContext="{StaticResource SliderManagerVM}"
|
||||||
HorizontalAlignment="Stretch"/>
|
HorizontalAlignment="Stretch"/>
|
||||||
<!--StatusBar -->
|
<!--StatusBar -->
|
||||||
<PrintApp:ControllerInputPanelV Grid.Row="1"
|
<Grid Grid.RowSpan="2"
|
||||||
|
Grid.ColumnSpan="2">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="Auto"/>
|
||||||
|
<RowDefinition Height="67"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<PrintApp:MessagePanelV Grid.Row="{Binding DataContext.Message_Visibility, ElementName=ControllerInputPanelV, Converter={StaticResource VisibilityToRowConverter}}"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
DataContext="{StaticResource StatusBarVM}"/>
|
||||||
|
<PrintApp:ControllerInputPanelV x:Name="ControllerInputPanelV" Grid.Row="2"
|
||||||
|
Grid.ColumnSpan="2"
|
||||||
|
DataContext="{StaticResource ControllerInputPanelVM}"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<!--<PrintApp:ControllerInputPanelV Grid.Row="1"
|
||||||
Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
DataContext="{StaticResource ControllerInputPanelVM}"/>
|
DataContext="{StaticResource ControllerInputPanelVM}"/>
|
||||||
<PrintApp:MessagePanelV Grid.Row="1"
|
<PrintApp:MessagePanelV Grid.Row="1"
|
||||||
Grid.ColumnSpan="2"
|
Grid.ColumnSpan="2"
|
||||||
DataContext="{StaticResource StatusBarVM}"/>
|
DataContext="{StaticResource StatusBarVM}"/>-->
|
||||||
<PrintApp:ShowPanelV Grid.Column="2"
|
<PrintApp:ShowPanelV Grid.Column="2"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
DataContext="{StaticResource ShowPanelVM}"/>
|
DataContext="{StaticResource ShowPanelVM}"/>
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ Imports EgtWPFLib5
|
|||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
Imports System.Collections.ObjectModel
|
Imports System.Collections.ObjectModel
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
|
Imports System.Globalization
|
||||||
|
|
||||||
Public Class ProjectVM
|
Public Class ProjectVM
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
@@ -28,3 +29,15 @@ Public Class ProjectVM
|
|||||||
|
|
||||||
End Class
|
End Class
|
||||||
|
|
||||||
|
Public Class VisibilityToRowConverter
|
||||||
|
Implements IValueConverter
|
||||||
|
|
||||||
|
Public Function Convert(ByVal value As Object, ByVal targetType As Type, ByVal parameter As Object, ByVal culture As CultureInfo) As Object Implements IValueConverter.Convert
|
||||||
|
If IsNothing(value) Then Return 2
|
||||||
|
Return If(value = Visibility.Visible, 1, 2)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function ConvertBack(ByVal value As Object, ByVal targetType As Type, ByVal parameter As Object, ByVal culture As CultureInfo) As Object Implements IValueConverter.ConvertBack
|
||||||
|
Throw New System.NotImplementedException()
|
||||||
|
End Function
|
||||||
|
End Class
|
||||||
|
|||||||
@@ -42,6 +42,10 @@ Public Class RibPanelVM
|
|||||||
Return m_SelRib
|
Return m_SelRib
|
||||||
End Get
|
End Get
|
||||||
Set(value As RibEntity)
|
Set(value As RibEntity)
|
||||||
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse Map.refRibPanelVM.bCPlaneObj_IsActive Then
|
||||||
|
NotifyPropertyChanged(NameOf(SelRib))
|
||||||
|
Return
|
||||||
|
End If
|
||||||
m_SelRib = value
|
m_SelRib = value
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
If Not IsNothing(value) Then
|
If Not IsNothing(value) Then
|
||||||
@@ -374,6 +378,8 @@ Public Class RibPanelVM
|
|||||||
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
||||||
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.RIBPARAM)
|
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.RIBPARAM)
|
||||||
NotifyPropertyChanged(NameOf(RibList_IsEnabled))
|
NotifyPropertyChanged(NameOf(RibList_IsEnabled))
|
||||||
|
' disattivo interfaccia
|
||||||
|
ManageInterface(False)
|
||||||
Else
|
Else
|
||||||
NotifyPropertyChanged(NameOf(m_bMachParam_IsChecked))
|
NotifyPropertyChanged(NameOf(m_bMachParam_IsChecked))
|
||||||
End If
|
End If
|
||||||
@@ -383,6 +389,8 @@ Public Class RibPanelVM
|
|||||||
m_bMachParam_IsChecked = False
|
m_bMachParam_IsChecked = False
|
||||||
NotifyPropertyChanged(NameOf(bMachParam_IsChecked))
|
NotifyPropertyChanged(NameOf(bMachParam_IsChecked))
|
||||||
NotifyPropertyChanged(NameOf(RibList_IsEnabled))
|
NotifyPropertyChanged(NameOf(RibList_IsEnabled))
|
||||||
|
' riattivo interfaccia
|
||||||
|
ManageInterface(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public ReadOnly Property Compo_Visibility As Visibility
|
Public ReadOnly Property Compo_Visibility As Visibility
|
||||||
@@ -391,11 +399,17 @@ Public Class RibPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_RibList_IsEnabled As Boolean = False
|
||||||
Public ReadOnly Property RibList_IsEnabled As Boolean
|
Public ReadOnly Property RibList_IsEnabled As Boolean
|
||||||
Get
|
Get
|
||||||
Return Not m_bMachParam_IsChecked
|
Return If(m_RibList.Count > 0, m_RibList_IsEnabled, False)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
Friend Sub SetRibListIsEnabled(bValue As Boolean)
|
||||||
|
m_RibList_IsEnabled = bValue
|
||||||
|
NotifyPropertyChanged(NameOf(RibList_IsEnabled))
|
||||||
|
End Sub
|
||||||
|
|
||||||
' riferimento griglia all'ingresso in questa pagina
|
' riferimento griglia all'ingresso in questa pagina
|
||||||
Private m_OriginalGridFrame As New Frame3d
|
Private m_OriginalGridFrame As New Frame3d
|
||||||
|
|
||||||
@@ -413,6 +427,8 @@ Public Class RibPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_bEscOnLine2P As Boolean = False
|
||||||
|
|
||||||
#Region "Tooltip"
|
#Region "Tooltip"
|
||||||
|
|
||||||
Public ReadOnly Property Import_ToolTip As String
|
Public ReadOnly Property Import_ToolTip As String
|
||||||
@@ -596,6 +612,8 @@ Public Class RibPanelVM
|
|||||||
SelRib = m_RibList(0)
|
SelRib = m_RibList(0)
|
||||||
NotifyPropertyChanged(NameOf(SelRib))
|
NotifyPropertyChanged(NameOf(SelRib))
|
||||||
End If
|
End If
|
||||||
|
' abilito lista ribs
|
||||||
|
SetRibListIsEnabled(True)
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -631,8 +649,13 @@ Public Class RibPanelVM
|
|||||||
EgtSelectObj(m_SelRib.nCurveId)
|
EgtSelectObj(m_SelRib.nCurveId)
|
||||||
Case RibSelectionTypes.EXTRUSION
|
Case RibSelectionTypes.EXTRUSION
|
||||||
' creo layer per estrusione
|
' creo layer per estrusione
|
||||||
Dim nNewExtrusionLayerId As Integer = EgtCreateGroup(m_nPartId)
|
Dim nNewExtrusionLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWEXTRUSION)
|
||||||
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
If nNewExtrusionLayerId = GDB_ID.NULL Then
|
||||||
|
nNewExtrusionLayerId = EgtCreateGroup(m_nPartId)
|
||||||
|
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
||||||
|
Else
|
||||||
|
EgtEmptyGroup(nNewExtrusionLayerId)
|
||||||
|
End If
|
||||||
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
||||||
EgtSelectObj(m_SelRib.nCurveId)
|
EgtSelectObj(m_SelRib.nCurveId)
|
||||||
Case RibSelectionTypes.BOTH
|
Case RibSelectionTypes.BOTH
|
||||||
@@ -640,6 +663,8 @@ Public Class RibPanelVM
|
|||||||
EgtSelectObj(m_SelRib.nExtrusionId)
|
EgtSelectObj(m_SelRib.nExtrusionId)
|
||||||
End Select
|
End Select
|
||||||
EgtDraw()
|
EgtDraw()
|
||||||
|
' disattivo il resto dell'interfaccia
|
||||||
|
ManageInterface(False)
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -649,6 +674,7 @@ Public Class RibPanelVM
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
||||||
|
m_bEscOnLine2P = False
|
||||||
Select Case command
|
Select Case command
|
||||||
Case Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE
|
Case Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE
|
||||||
' leggo altezza estrusione
|
' leggo altezza estrusione
|
||||||
@@ -688,6 +714,10 @@ Public Class RibPanelVM
|
|||||||
' Imposto flag di ricalcolo slice
|
' Imposto flag di ricalcolo slice
|
||||||
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
||||||
End Select
|
End Select
|
||||||
|
' se non ho creato percorso riabilito interfaccia
|
||||||
|
If Not m_bIsCreatingPath Then
|
||||||
|
ManageInterface(True)
|
||||||
|
End If
|
||||||
If command <> Controller.CMD.LINE2P AndAlso command <> Controller.CMD.EXTRUDE Then Return
|
If command <> Controller.CMD.LINE2P AndAlso command <> Controller.CMD.EXTRUDE Then Return
|
||||||
' se finita creazione estrusione
|
' se finita creazione estrusione
|
||||||
If m_bIsCreatingExtrusion Then
|
If m_bIsCreatingExtrusion Then
|
||||||
@@ -754,9 +784,10 @@ Public Class RibPanelVM
|
|||||||
EgtSelectObj(nNewEntityId)
|
EgtSelectObj(nNewEntityId)
|
||||||
If Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.EXTRUDE) Then
|
If Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.EXTRUDE) Then
|
||||||
m_bIsCreatingExtrusion = True
|
m_bIsCreatingExtrusion = True
|
||||||
|
If Not EgtCurveIsClosed(nNewEntityId) Then
|
||||||
|
m_bEscOnLine2P = True
|
||||||
|
End If
|
||||||
Else
|
Else
|
||||||
' cancello layer
|
|
||||||
'EgtErase(nNewRibLayerId)
|
|
||||||
EgtErase(nNewExtrusionLayerId)
|
EgtErase(nNewExtrusionLayerId)
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
@@ -779,6 +810,13 @@ Public Class RibPanelVM
|
|||||||
' rimetto la selezione scena a null
|
' rimetto la selezione scena a null
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End If
|
End If
|
||||||
|
' se esc su creazione percorso, lo annullo, altrimenti riabilito interfaccia
|
||||||
|
If m_bEscOnLine2P Then
|
||||||
|
m_bEscOnLine2P = False
|
||||||
|
Else
|
||||||
|
If m_bIsCreatingExtrusion Then m_bIsCreatingExtrusion = False
|
||||||
|
ManageInterface(True)
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -814,6 +852,18 @@ Public Class RibPanelVM
|
|||||||
Return nRibIndex + 1
|
Return nRibIndex + 1
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Friend Sub ManageInterface(bValue As Boolean)
|
||||||
|
' disabilito ProjManager, TopPanel, TFS, Slider, bottoni e uscita dal programma
|
||||||
|
Map.refProjManagerVM.SetProjCmdIsEnabled(bValue)
|
||||||
|
Map.refTopPanelVM.SetTopPanelIsEnabled(bValue)
|
||||||
|
Map.refViewLayerManagerVM.SetViewLayerManagerIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerIndexIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(bValue)
|
||||||
|
Map.refSliceManagerVM.SetButtonsIsEnabled(bValue)
|
||||||
|
Map.refInstrumentPanelVM.SetInstrumentPanelIsEnabled(bValue)
|
||||||
|
SetRibListIsEnabled(bValue)
|
||||||
|
End Sub
|
||||||
|
|
||||||
#End Region ' METHODS
|
#End Region ' METHODS
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
@@ -837,7 +887,9 @@ Public Class RibPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Import(ByVal param As Object)
|
Public Sub Import(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.InsertRib()
|
Map.refSceneHostVM.InsertRib()
|
||||||
|
ManageInterface(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Import
|
#End Region ' Import
|
||||||
@@ -861,6 +913,7 @@ Public Class RibPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Line2P(ByVal param As Object)
|
Public Sub Line2P(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Dim nNewRibLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWRIB)
|
Dim nNewRibLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWRIB)
|
||||||
If nNewRibLayerId = GDB_ID.NULL Then nNewRibLayerId = EgtCreateGroup(m_nPartId)
|
If nNewRibLayerId = GDB_ID.NULL Then nNewRibLayerId = EgtCreateGroup(m_nPartId)
|
||||||
EgtSetName(nNewRibLayerId, LAY_NEWRIB)
|
EgtSetName(nNewRibLayerId, LAY_NEWRIB)
|
||||||
@@ -905,10 +958,11 @@ Public Class RibPanelVM
|
|||||||
Else
|
Else
|
||||||
SelRib = Nothing
|
SelRib = Nothing
|
||||||
m_bEdit_IsChecked = False
|
m_bEdit_IsChecked = False
|
||||||
NotifyPropertyChanged(NameOf( bEdit_IsChecked))
|
NotifyPropertyChanged(NameOf(bEdit_IsChecked))
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged(NameOf(SelRib))
|
NotifyPropertyChanged(NameOf(SelRib))
|
||||||
End If
|
End If
|
||||||
|
SetRibListIsEnabled(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Delete
|
#End Region ' Delete
|
||||||
@@ -1192,6 +1246,7 @@ Public Class RibPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneElevation(ByVal param As Object)
|
Public Sub CPlaneElevation(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1216,6 +1271,7 @@ Public Class RibPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneOrigin(ByVal param As Object)
|
Public Sub CPlaneOrigin(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1332,6 +1388,7 @@ Public Class RibPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneObj(ByVal param As Object)
|
Public Sub CPlaneObj(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
' salvo selezione precedente e deseleziono altri oggetti
|
' salvo selezione precedente e deseleziono altri oggetti
|
||||||
m_PrevSelObjs.Clear()
|
m_PrevSelObjs.Clear()
|
||||||
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
||||||
|
|||||||
@@ -135,6 +135,8 @@ Public Class RibParamPanelVM
|
|||||||
Map.refSliceManagerVM.UpdateDimensions()
|
Map.refSliceManagerVM.UpdateDimensions()
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
' riattivo lista ribs
|
||||||
|
Map.refRibPanelVM.SetRibListIsEnabled(False)
|
||||||
' ripristino modalita' standard
|
' ripristino modalita' standard
|
||||||
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.NULL)
|
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.NULL)
|
||||||
Map.refRibPanelVM.ResetMachParamIsChecked()
|
Map.refRibPanelVM.ResetMachParamIsChecked()
|
||||||
|
|||||||
@@ -274,8 +274,6 @@ Public Class MySceneHostVM
|
|||||||
bOk = MainController.OpenProject(sFilePath, False)
|
bOk = MainController.OpenProject(sFilePath, False)
|
||||||
' Imposto stato gestione mouse diretto della scena a nessuno
|
' Imposto stato gestione mouse diretto della scena a nessuno
|
||||||
MainScene.SetStatusNull()
|
MainScene.SetStatusNull()
|
||||||
' imposto modalita' import
|
|
||||||
Map.refTopPanelVM.SelPage = Pages.NULL
|
|
||||||
Return bOk
|
Return bOk
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -684,6 +682,26 @@ Public Class MySceneHostVM
|
|||||||
Return MainController.ExportProject(SaveFileDialog.FileName, False)
|
Return MainController.ExportProject(SaveFileDialog.FileName, False)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function ExportProjectForMachine(sFilePath As String) As Boolean
|
||||||
|
' Reset controller e scena
|
||||||
|
MainController.ResetStatus()
|
||||||
|
MainController.SetDefaultFilterForExport(EEX_FLT.MODE_HIDDEN + EEX_FLT.MODE_STD + EEX_FLT.STAT_ON + EEX_FLT.STAT_OFF + EEX_FLT.LEV_TEMP)
|
||||||
|
Return MainController.ExportGeomId(Map.refTopPanelVM.SelPart.nPartId, sFilePath, False)
|
||||||
|
End Function
|
||||||
|
Public Function ExportProjectForMachine(sDirPath As String, b3dm As Boolean, ByRef sFilePath As String) As Boolean
|
||||||
|
sFilePath = sDirPath & "\ProjectSlice" & If(b3dm, ".3dm", ".3mf")
|
||||||
|
' Reset controller e scena
|
||||||
|
MainController.ResetStatus()
|
||||||
|
MainController.SetDefaultFilterForExport(EEX_FLT.MODE_HIDDEN + EEX_FLT.MODE_STD + EEX_FLT.STAT_ON + EEX_FLT.STAT_OFF + EEX_FLT.LEV_TEMP)
|
||||||
|
Dim nExportGeomId As Integer = 0
|
||||||
|
If b3dm Then
|
||||||
|
If Not ExecPrepare3dmExport(nExportGeomId) Then Return False
|
||||||
|
Else
|
||||||
|
nExportGeomId = Map.refTopPanelVM.SelPart.nPartId
|
||||||
|
End If
|
||||||
|
Return MainController.ExportGeomId(nExportGeomId, sFilePath, False)
|
||||||
|
End Function
|
||||||
|
|
||||||
Public Overrides Function ExecScript(sFilePath As String) As Boolean
|
Public Overrides Function ExecScript(sFilePath As String) As Boolean
|
||||||
Dim bOk As Boolean = False
|
Dim bOk As Boolean = False
|
||||||
If String.IsNullOrEmpty(sFilePath) Then
|
If String.IsNullOrEmpty(sFilePath) Then
|
||||||
|
|||||||
@@ -15,9 +15,6 @@
|
|||||||
<EgtWPFLib5:EgtMainWindow.TitlePanel>
|
<EgtWPFLib5:EgtMainWindow.TitlePanel>
|
||||||
<PrintApp:ProjManagerV DataContext="{StaticResource ProjManagerVM}"/>
|
<PrintApp:ProjManagerV DataContext="{StaticResource ProjManagerVM}"/>
|
||||||
</EgtWPFLib5:EgtMainWindow.TitlePanel>
|
</EgtWPFLib5:EgtMainWindow.TitlePanel>
|
||||||
<EgtWPFLib5:EgtMainWindow.HelpPanel>
|
|
||||||
<PrintApp:HelpPanelV DataContext="{StaticResource HelpPanelVM}"/>
|
|
||||||
</EgtWPFLib5:EgtMainWindow.HelpPanel>
|
|
||||||
<EgtWPFLib5:EgtMainWindow.OpacityMask>
|
<EgtWPFLib5:EgtMainWindow.OpacityMask>
|
||||||
<SolidColorBrush Color="White" Opacity="{Binding Window_Opacity}"/>
|
<SolidColorBrush Color="White" Opacity="{Binding Window_Opacity}"/>
|
||||||
</EgtWPFLib5:EgtMainWindow.OpacityMask>
|
</EgtWPFLib5:EgtMainWindow.OpacityMask>
|
||||||
@@ -29,4 +26,5 @@
|
|||||||
<PrintApp:ProjectV DataContext="{StaticResource ProjectVM}"/>
|
<PrintApp:ProjectV DataContext="{StaticResource ProjectVM}"/>
|
||||||
|
|
||||||
</DockPanel>
|
</DockPanel>
|
||||||
|
|
||||||
</EgtWPFLib5:EgtMainWindow>
|
</EgtWPFLib5:EgtMainWindow>
|
||||||
|
|||||||
@@ -130,7 +130,10 @@ Public Class SecondaryWindowVM
|
|||||||
Dim sFile As String = Environment.GetCommandLineArgs(1)
|
Dim sFile As String = Environment.GetCommandLineArgs(1)
|
||||||
Dim sExt As String = IO.Path.GetExtension(sFile).ToLower()
|
Dim sExt As String = IO.Path.GetExtension(sFile).ToLower()
|
||||||
If String.IsNullOrWhiteSpace(sFile) OrElse String.IsNullOrWhiteSpace(sExt) Then Return False
|
If String.IsNullOrWhiteSpace(sFile) OrElse String.IsNullOrWhiteSpace(sExt) Then Return False
|
||||||
Return OpenStdFile(sFile)
|
Dim bOk As Boolean = OpenStdFile(sFile)
|
||||||
|
m_Window_Opacity = 1
|
||||||
|
NotifyPropertyChanged(NameOf(Window_Opacity))
|
||||||
|
Return bOk
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Friend Function OpenStdFile(sFile As String) As Boolean
|
Friend Function OpenStdFile(sFile As String) As Boolean
|
||||||
|
|||||||
@@ -40,6 +40,10 @@ Public Class ShellNumberPanelVM
|
|||||||
Return m_SelShellNumber
|
Return m_SelShellNumber
|
||||||
End Get
|
End Get
|
||||||
Set(value As ShellNumberEntity)
|
Set(value As ShellNumberEntity)
|
||||||
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse Map.refShellNumberPanelVM.bCPlaneObj_IsActive Then
|
||||||
|
NotifyPropertyChanged(NameOf(SelShellNumber))
|
||||||
|
Return
|
||||||
|
End If
|
||||||
m_SelShellNumber = value
|
m_SelShellNumber = value
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
If Not IsNothing(value) Then
|
If Not IsNothing(value) Then
|
||||||
@@ -354,6 +358,8 @@ Public Class ShellNumberPanelVM
|
|||||||
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
NotifyPropertyChanged(NameOf(bRotate_IsChecked))
|
||||||
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.SHELLNUMBERPARAM)
|
Map.refRightPanelVM.SetSelPanel(RightPanelVM.Panels.SHELLNUMBERPARAM)
|
||||||
NotifyPropertyChanged(NameOf(ShellNumberList_IsEnabled))
|
NotifyPropertyChanged(NameOf(ShellNumberList_IsEnabled))
|
||||||
|
' disattivo interfaccia
|
||||||
|
ManageInterface(False)
|
||||||
Else
|
Else
|
||||||
NotifyPropertyChanged(NameOf(m_bMachParam_IsChecked))
|
NotifyPropertyChanged(NameOf(m_bMachParam_IsChecked))
|
||||||
End If
|
End If
|
||||||
@@ -363,6 +369,8 @@ Public Class ShellNumberPanelVM
|
|||||||
m_bMachParam_IsChecked = False
|
m_bMachParam_IsChecked = False
|
||||||
NotifyPropertyChanged(NameOf(bMachParam_IsChecked))
|
NotifyPropertyChanged(NameOf(bMachParam_IsChecked))
|
||||||
NotifyPropertyChanged(NameOf(ShellNumberList_IsEnabled))
|
NotifyPropertyChanged(NameOf(ShellNumberList_IsEnabled))
|
||||||
|
' riattivo interfaccia
|
||||||
|
ManageInterface(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Public ReadOnly Property Compo_Visibility As Visibility
|
Public ReadOnly Property Compo_Visibility As Visibility
|
||||||
@@ -371,11 +379,17 @@ Public Class ShellNumberPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_ShellNumberList_IsEnabled As Boolean = False
|
||||||
Public ReadOnly Property ShellNumberList_IsEnabled As Boolean
|
Public ReadOnly Property ShellNumberList_IsEnabled As Boolean
|
||||||
Get
|
Get
|
||||||
Return Not m_bMachParam_IsChecked
|
Return If(m_ShellNumberList.Count > 0, m_ShellNumberList_IsEnabled, False)
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
Friend Sub SetShellNumberListIsEnabled(bValue As Boolean)
|
||||||
|
m_ShellNumberList_IsEnabled = bValue
|
||||||
|
NotifyPropertyChanged(NameOf(ShellNumberList_IsEnabled))
|
||||||
|
End Sub
|
||||||
|
|
||||||
' riferimento griglia all'ingresso in questa pagina
|
' riferimento griglia all'ingresso in questa pagina
|
||||||
Private m_OriginalGridFrame As New Frame3d
|
Private m_OriginalGridFrame As New Frame3d
|
||||||
|
|
||||||
@@ -393,6 +407,8 @@ Public Class ShellNumberPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_bEscOnLine2P As Boolean = False
|
||||||
|
|
||||||
#Region "Tooltip"
|
#Region "Tooltip"
|
||||||
|
|
||||||
Public ReadOnly Property Import_ToolTip As String
|
Public ReadOnly Property Import_ToolTip As String
|
||||||
@@ -576,6 +592,8 @@ Public Class ShellNumberPanelVM
|
|||||||
SelShellNumber = m_ShellNumberList(0)
|
SelShellNumber = m_ShellNumberList(0)
|
||||||
NotifyPropertyChanged(NameOf(SelShellNumber))
|
NotifyPropertyChanged(NameOf(SelShellNumber))
|
||||||
End If
|
End If
|
||||||
|
' abilito lista shell number
|
||||||
|
SetShellNumberListIsEnabled(True)
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -611,8 +629,13 @@ Public Class ShellNumberPanelVM
|
|||||||
EgtSelectObj(m_SelShellNumber.nCurveId)
|
EgtSelectObj(m_SelShellNumber.nCurveId)
|
||||||
Case ShellNumberSelectionTypes.EXTRUSION
|
Case ShellNumberSelectionTypes.EXTRUSION
|
||||||
' creo layer per estrusione
|
' creo layer per estrusione
|
||||||
Dim nNewExtrusionLayerId As Integer = EgtCreateGroup(m_nPartId)
|
Dim nNewExtrusionLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWEXTRUSION)
|
||||||
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
If nNewExtrusionLayerId = GDB_ID.NULL Then
|
||||||
|
nNewExtrusionLayerId = EgtCreateGroup(m_nPartId)
|
||||||
|
EgtSetName(nNewExtrusionLayerId, LAY_NEWEXTRUSION)
|
||||||
|
Else
|
||||||
|
EgtEmptyGroup(nNewExtrusionLayerId)
|
||||||
|
End If
|
||||||
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
EgtSetCurrPartLayer(m_nPartId, nNewExtrusionLayerId)
|
||||||
EgtSelectObj(m_SelShellNumber.nCurveId)
|
EgtSelectObj(m_SelShellNumber.nCurveId)
|
||||||
Case ShellNumberSelectionTypes.BOTH
|
Case ShellNumberSelectionTypes.BOTH
|
||||||
@@ -620,6 +643,8 @@ Public Class ShellNumberPanelVM
|
|||||||
EgtSelectObj(m_SelShellNumber.nExtrusionId)
|
EgtSelectObj(m_SelShellNumber.nExtrusionId)
|
||||||
End Select
|
End Select
|
||||||
EgtDraw()
|
EgtDraw()
|
||||||
|
' disattivo il resto dell'interfaccia
|
||||||
|
ManageInterface(False)
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
@@ -629,6 +654,7 @@ Public Class ShellNumberPanelVM
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
||||||
|
m_bEscOnLine2P = False
|
||||||
Select Case command
|
Select Case command
|
||||||
Case Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE
|
Case Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE
|
||||||
' leggo altezza estrusione
|
' leggo altezza estrusione
|
||||||
@@ -668,6 +694,10 @@ Public Class ShellNumberPanelVM
|
|||||||
' Imposto flag di ricalcolo slice
|
' Imposto flag di ricalcolo slice
|
||||||
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
||||||
End Select
|
End Select
|
||||||
|
' se non ho creato percorso riabilito interfaccia
|
||||||
|
If Not m_bIsCreatingPath Then
|
||||||
|
ManageInterface(True)
|
||||||
|
End If
|
||||||
If command <> Controller.CMD.LINE2P AndAlso command <> Controller.CMD.EXTRUDE Then Return
|
If command <> Controller.CMD.LINE2P AndAlso command <> Controller.CMD.EXTRUDE Then Return
|
||||||
' se finita creazione estrusione
|
' se finita creazione estrusione
|
||||||
If m_bIsCreatingExtrusion Then
|
If m_bIsCreatingExtrusion Then
|
||||||
@@ -710,6 +740,7 @@ Public Class ShellNumberPanelVM
|
|||||||
If NewGeomType = GDB_TY.CRV_COMPO Then
|
If NewGeomType = GDB_TY.CRV_COMPO Then
|
||||||
If Not EgtCurveIsClosed(nNewEntityId) Then
|
If Not EgtCurveIsClosed(nNewEntityId) Then
|
||||||
EgtCloseCurveCompo(nNewEntityId)
|
EgtCloseCurveCompo(nNewEntityId)
|
||||||
|
m_bEscOnLine2P = True
|
||||||
End If
|
End If
|
||||||
EgtSetName(nNewEntityId, RIB_CURVE)
|
EgtSetName(nNewEntityId, RIB_CURVE)
|
||||||
' resetto colore entita'
|
' resetto colore entita'
|
||||||
@@ -762,6 +793,13 @@ Public Class ShellNumberPanelVM
|
|||||||
' rimetto la selezione scena a null
|
' rimetto la selezione scena a null
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End If
|
End If
|
||||||
|
' se esc su creazione percorso, lo annullo, altrimenti riabilito interfaccia
|
||||||
|
If m_bEscOnLine2P Then
|
||||||
|
m_bEscOnLine2P = False
|
||||||
|
Else
|
||||||
|
If m_bIsCreatingExtrusion Then m_bIsCreatingExtrusion = False
|
||||||
|
ManageInterface(True)
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -797,6 +835,19 @@ Public Class ShellNumberPanelVM
|
|||||||
Return nShellNumberIndex + 1
|
Return nShellNumberIndex + 1
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Friend Sub ManageInterface(bValue As Boolean)
|
||||||
|
' disabilito ProjManager, TopPanel, TFS, Slider, bottoni e uscita dal programma
|
||||||
|
Map.refProjManagerVM.SetProjCmdIsEnabled(bValue)
|
||||||
|
Map.refTopPanelVM.SetTopPanelIsEnabled(bValue)
|
||||||
|
Map.refViewLayerManagerVM.SetViewLayerManagerIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerIndexIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(bValue)
|
||||||
|
Map.refSliceManagerVM.SetButtonsIsEnabled(bValue)
|
||||||
|
Map.refInstrumentPanelVM.SetInstrumentPanelIsEnabled(bValue)
|
||||||
|
SetShellNumberListIsEnabled(bValue)
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
#End Region ' METHODS
|
#End Region ' METHODS
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
@@ -820,7 +871,9 @@ Public Class ShellNumberPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Import(ByVal param As Object)
|
Public Sub Import(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.InsertShellNumber()
|
Map.refSceneHostVM.InsertShellNumber()
|
||||||
|
ManageInterface(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Import
|
#End Region ' Import
|
||||||
@@ -844,6 +897,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Line2P(ByVal param As Object)
|
Public Sub Line2P(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Dim nNewShellNumberLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWRIB)
|
Dim nNewShellNumberLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWRIB)
|
||||||
If nNewShellNumberLayerId = GDB_ID.NULL Then nNewShellNumberLayerId = EgtCreateGroup(m_nPartId)
|
If nNewShellNumberLayerId = GDB_ID.NULL Then nNewShellNumberLayerId = EgtCreateGroup(m_nPartId)
|
||||||
EgtSetName(nNewShellNumberLayerId, LAY_NEWRIB)
|
EgtSetName(nNewShellNumberLayerId, LAY_NEWRIB)
|
||||||
@@ -892,6 +946,7 @@ Public Class ShellNumberPanelVM
|
|||||||
End If
|
End If
|
||||||
NotifyPropertyChanged(NameOf(SelShellNumber))
|
NotifyPropertyChanged(NameOf(SelShellNumber))
|
||||||
End If
|
End If
|
||||||
|
SetShellNumberListIsEnabled(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Delete
|
#End Region ' Delete
|
||||||
@@ -1176,6 +1231,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneElevation(ByVal param As Object)
|
Public Sub CPlaneElevation(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1200,6 +1256,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneOrigin(ByVal param As Object)
|
Public Sub CPlaneOrigin(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -1316,6 +1373,7 @@ Public Class ShellNumberPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneObj(ByVal param As Object)
|
Public Sub CPlaneObj(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
' salvo selezione precedente e deseleziono altri oggetti
|
' salvo selezione precedente e deseleziono altri oggetti
|
||||||
m_PrevSelObjs.Clear()
|
m_PrevSelObjs.Clear()
|
||||||
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
||||||
|
|||||||
@@ -2,6 +2,8 @@
|
|||||||
Imports EgtUILib
|
Imports EgtUILib
|
||||||
Imports Microsoft.Win32
|
Imports Microsoft.Win32
|
||||||
Imports System.IO
|
Imports System.IO
|
||||||
|
Imports Ionic.Zip
|
||||||
|
Imports Newtonsoft.Json
|
||||||
|
|
||||||
Public Class SliceManagerVM
|
Public Class SliceManagerVM
|
||||||
Inherits VMBase
|
Inherits VMBase
|
||||||
@@ -44,6 +46,11 @@ Public Class SliceManagerVM
|
|||||||
Private m_bCalcTFS As Boolean = False
|
Private m_bCalcTFS As Boolean = False
|
||||||
Private m_bGenerate As Boolean = False
|
Private m_bGenerate As Boolean = False
|
||||||
Private m_bCalcSolid As Boolean = False
|
Private m_bCalcSolid As Boolean = False
|
||||||
|
Friend ReadOnly Property bCalcSolid As Boolean
|
||||||
|
Get
|
||||||
|
Return m_bCalcSolid
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
Friend Sub SetCalcSolid(value As Boolean)
|
Friend Sub SetCalcSolid(value As Boolean)
|
||||||
m_bCalcSolid = value
|
m_bCalcSolid = value
|
||||||
End Sub
|
End Sub
|
||||||
@@ -526,6 +533,8 @@ Public Class SliceManagerVM
|
|||||||
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
''' Execute the CPlaneTop. This method is invoked by the CPlaneTopCommand.
|
||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Slice()
|
Public Sub Slice()
|
||||||
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse Map.refStartMachPanelVM.bCPlaneObj_IsActive OrElse Map.refRibPanelVM.bCPlaneObj_IsActive OrElse
|
||||||
|
Map.refShellNumberPanelVM.bCPlaneObj_IsActive OrElse Map.refFilledSolidPanelVM.bCPlaneObj_IsActive Then Return
|
||||||
If m_bCalculating Then Return
|
If m_bCalculating Then Return
|
||||||
m_bCalculating = True
|
m_bCalculating = True
|
||||||
If IsNothing(Map.refTopPanelVM.SelPart) Then
|
If IsNothing(Map.refTopPanelVM.SelPart) Then
|
||||||
@@ -698,17 +707,34 @@ Public Class SliceManagerVM
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
' eseguo calcoli
|
' eseguo calcoli
|
||||||
CalcSlice(True, True)
|
Dim bOk As Boolean = CalcSlice(True, True)
|
||||||
' se non ho interrotto calcoli
|
' se non ho interrotto calcoli
|
||||||
If Not m_bStopScriptToManage Then
|
If bOk AndAlso Not m_bStopScriptToManage Then
|
||||||
If bShiftPressed Then
|
' Se esiste l'iso
|
||||||
' Se esiste ne lancio l'editing
|
If File.Exists(sIsoFilePath) Then
|
||||||
If File.Exists(sIsoFilePath) Then
|
If bShiftPressed Then
|
||||||
|
' Se esiste ne lancio l'editing
|
||||||
Process.Start("Notepad.exe", sIsoFilePath)
|
Process.Start("Notepad.exe", sIsoFilePath)
|
||||||
' altrimenti lo segnalo
|
' altrimenti lo segnalo
|
||||||
Else
|
|
||||||
MessageBox.Show("Edit failed, missing part program file" & " (" & sIsoFilePath & ")")
|
|
||||||
End If
|
End If
|
||||||
|
' verifico se creare pacchetto
|
||||||
|
If Map.refMainWindowVM.MainWindowM.GetKeyOption(KEY_OPT.MACHINE_EXPORT) Then
|
||||||
|
'If True Then
|
||||||
|
If Not CreateProjectForMachine(sIsoFilePath) Then
|
||||||
|
MessageBox.Show("Icrx file generation failed!!", "Error!", MessageBoxButton.OK, MessageBoxImage.Error)
|
||||||
|
End If
|
||||||
|
' riabilito ProjManager, TopPanel e uscita dal programma
|
||||||
|
Map.refProjManagerVM.SetProjCmdIsEnabled(True)
|
||||||
|
Map.refTopPanelVM.SetTopPanelIsEnabled(True)
|
||||||
|
Map.refViewLayerManagerVM.SetViewLayerManagerIsEnabled(True)
|
||||||
|
Map.refTFSEditorVM.SetTFSEditorIsEnabled(True)
|
||||||
|
Map.refSliderManagerVM.SetLayerIndexIsEnabled(True)
|
||||||
|
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(True)
|
||||||
|
SetButtonsIsEnabled(True)
|
||||||
|
End If
|
||||||
|
Else
|
||||||
|
' altrimenti lo segnalo
|
||||||
|
MessageBox.Show("Part program generation failed!!", "Error", MessageBoxButton.OK, MessageBoxImage.Error)
|
||||||
End If
|
End If
|
||||||
NotifyPropertyChanged(NameOf(Time_Visibility))
|
NotifyPropertyChanged(NameOf(Time_Visibility))
|
||||||
NotifyPropertyChanged(NameOf(Mass_Visibility))
|
NotifyPropertyChanged(NameOf(Mass_Visibility))
|
||||||
@@ -718,6 +744,142 @@ Public Class SliceManagerVM
|
|||||||
m_bCalculating = False
|
m_bCalculating = False
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Function CreateProjectForMachine(sIsoFilePath As String) As Boolean
|
||||||
|
' disabilito ProjManager, TopPanel, TFS, Slider, bottoni e uscita dal programma
|
||||||
|
Map.refProjManagerVM.SetProjCmdIsEnabled(False)
|
||||||
|
Map.refTopPanelVM.SetTopPanelIsEnabled(False)
|
||||||
|
Map.refViewLayerManagerVM.SetViewLayerManagerIsEnabled(False)
|
||||||
|
Map.refTFSEditorVM.SetTFSEditorIsEnabled(False)
|
||||||
|
Map.refSliderManagerVM.SetLayerIndexIsEnabled(False)
|
||||||
|
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(False)
|
||||||
|
SetButtonsIsEnabled(False)
|
||||||
|
' creo cartella file da esportare in Temp
|
||||||
|
Dim sExportTempFolderPath As String = Map.refMainWindowVM.MainWindowM.sTempDir & "\MachineExport"
|
||||||
|
If Directory.Exists(sExportTempFolderPath) Then
|
||||||
|
Try
|
||||||
|
Directory.Delete(sExportTempFolderPath, True)
|
||||||
|
Catch ex As Exception
|
||||||
|
EgtOutLog("Error! Impossible deleting folder " & sExportTempFolderPath & "!")
|
||||||
|
Return False
|
||||||
|
End Try
|
||||||
|
End If
|
||||||
|
Try
|
||||||
|
Directory.CreateDirectory(sExportTempFolderPath)
|
||||||
|
Catch ex As Exception
|
||||||
|
EgtOutLog("Error! Impossible creating folder " & sExportTempFolderPath & "!")
|
||||||
|
Return False
|
||||||
|
End Try
|
||||||
|
' mostro solido per eportazione
|
||||||
|
Dim SolidCheck As ViewLayer = Map.refViewLayerManagerVM.LayerList.FirstOrDefault(Function(x) x.Type = ViewLayer.ViewLayerType.SOLID_SLICE)
|
||||||
|
Dim CurrSolidCheckValue As Boolean? = SolidCheck.bIsVisible
|
||||||
|
If IsNothing(SolidCheck.bIsVisible) OrElse Not SolidCheck.bIsVisible Then
|
||||||
|
SolidCheck.bIsVisible = True
|
||||||
|
End If
|
||||||
|
' esporto file progetto
|
||||||
|
Dim sFileExtension As String
|
||||||
|
If True Then
|
||||||
|
sFileExtension = ".3dm"
|
||||||
|
Else
|
||||||
|
sFileExtension = ".3mf"
|
||||||
|
End If
|
||||||
|
Dim s3dFilePath As String = ""
|
||||||
|
If Not Map.refSceneHostVM.ExportProjectForMachine(sExportTempFolderPath, True, s3dFilePath) Then
|
||||||
|
EgtOutLog("Error! Impossible exporting 3mf file!")
|
||||||
|
Return False
|
||||||
|
End If
|
||||||
|
'' esporto file 3mf
|
||||||
|
'Dim s3mfPath As String = sExportTempFolderPath & "\ProjectSlice.3mf"
|
||||||
|
'If Not Map.refSceneHostVM.ExportProjectForMachine(s3mfPath) Then
|
||||||
|
' EgtOutLog("Error! Impossible exporting 3mf file!")
|
||||||
|
' Return False
|
||||||
|
'End If
|
||||||
|
' creo file json
|
||||||
|
Dim sProjName As String = ""
|
||||||
|
EgtGetCurrFilePath(sProjName)
|
||||||
|
Dim sJsonPath As String = sExportTempFolderPath & "\ProjectSlice.json"
|
||||||
|
CreateJson(sJsonPath)
|
||||||
|
' creo immagine preview
|
||||||
|
Dim sPreviewImagePath As String = sExportTempFolderPath & "\ProjectSlice.png"
|
||||||
|
CreatePreviewImage(sPreviewImagePath)
|
||||||
|
' nascondo solido
|
||||||
|
If IsNothing(CurrSolidCheckValue) OrElse Not CurrSolidCheckValue Then
|
||||||
|
SolidCheck.bIsVisible = CurrSolidCheckValue
|
||||||
|
End If
|
||||||
|
' creo path dello zip
|
||||||
|
Dim sZipPath As String = Path.ChangeExtension(sProjName, ".icrx")
|
||||||
|
' se esiste gia' lo cancello
|
||||||
|
If File.Exists(sZipPath) Then
|
||||||
|
Try
|
||||||
|
File.Delete(sZipPath)
|
||||||
|
Catch ex As Exception
|
||||||
|
EgtOutLog("Error! Impossible deleting old icrx file!")
|
||||||
|
Return False
|
||||||
|
End Try
|
||||||
|
End If
|
||||||
|
Try
|
||||||
|
Using zip As New Ionic.Zip.ZipFile(sZipPath, Console.Out)
|
||||||
|
zip.AlternateEncodingUsage = ZipOption.Always
|
||||||
|
zip.AlternateEncoding = Text.Encoding.UTF8
|
||||||
|
zip.CompressionMethod = CompressionMethod.None
|
||||||
|
' aggiungo file Iso
|
||||||
|
zip.AddItem(sIsoFilePath, "").FileName = "ProjectSlice" & Path.GetExtension(sIsoFilePath)
|
||||||
|
' aggiungo file 3mf
|
||||||
|
zip.AddItem(s3dFilePath, "")
|
||||||
|
' aggiungo json
|
||||||
|
zip.AddItem(sJsonPath, "")
|
||||||
|
' aggiungo immagine preview
|
||||||
|
zip.AddItem(sPreviewImagePath, "")
|
||||||
|
' salvo lo zip
|
||||||
|
zip.Save()
|
||||||
|
End Using
|
||||||
|
Catch ex As Exception
|
||||||
|
EgtOutLog("Error! Icrx file generation failed!!")
|
||||||
|
Return False
|
||||||
|
End Try
|
||||||
|
' elimino tutti i file temporanei creati
|
||||||
|
If Directory.Exists(sExportTempFolderPath) Then
|
||||||
|
Directory.Delete(sExportTempFolderPath, True)
|
||||||
|
End If
|
||||||
|
Return True
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Function CreateJson(sJsonPath As String) As Boolean
|
||||||
|
' creo json
|
||||||
|
Dim JsonMain As New JsonMain(m_dTime, m_dMass)
|
||||||
|
Dim json As String = JsonConvert.SerializeObject(JsonMain, Formatting.Indented)
|
||||||
|
If File.Exists(sJsonPath) Then
|
||||||
|
Try
|
||||||
|
File.Delete(sJsonPath)
|
||||||
|
Catch ex As Exception
|
||||||
|
EgtOutLog("Error! Impossible deleting file " & sJsonPath & "!")
|
||||||
|
Return False
|
||||||
|
End Try
|
||||||
|
End If
|
||||||
|
Try
|
||||||
|
File.AppendAllText(sJsonPath, json)
|
||||||
|
Catch ex As Exception
|
||||||
|
EgtOutLog("Error! Impossible writing json file " & sJsonPath & "!")
|
||||||
|
Return False
|
||||||
|
End Try
|
||||||
|
Return True
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Private Function CreatePreviewImage(sPreviewImagePath As String) As Boolean
|
||||||
|
' recupero posizione vista corrente
|
||||||
|
Dim nCurrAngVertDeg As Integer = 0
|
||||||
|
Dim nCurrAngHorizDeg As Integer = 0
|
||||||
|
EgtGetGenericView(nCurrAngVertDeg, nCurrAngHorizDeg)
|
||||||
|
EgtSetView(VT.ISO_SW, False)
|
||||||
|
SetTableVisibility(False)
|
||||||
|
EgtZoom(ZM.ALL, False)
|
||||||
|
'EgtExportSvg(GDB_ID.ROOT, sPreviewImagePath)
|
||||||
|
EgtGetImage(SM.SHADING, New Color3d(255, 255, 255, 255), New Color3d(255, 255, 255, 255), 3000, 3000, sPreviewImagePath)
|
||||||
|
EgtSetGenericView(nCurrAngVertDeg, nCurrAngHorizDeg, False)
|
||||||
|
SetTableVisibility(True)
|
||||||
|
EgtZoom(ZM.ALL, True)
|
||||||
|
Return True
|
||||||
|
End Function
|
||||||
|
|
||||||
#End Region ' Generate
|
#End Region ' Generate
|
||||||
|
|
||||||
#Region "Simulate"
|
#Region "Simulate"
|
||||||
|
|||||||
@@ -20,23 +20,22 @@ Public Class SliderManagerVM
|
|||||||
End Get
|
End Get
|
||||||
Set(value As Integer)
|
Set(value As Integer)
|
||||||
If IsNothing(Map.refTopPanelVM.SelPart) Then Return
|
If IsNothing(Map.refTopPanelVM.SelPart) Then Return
|
||||||
|
Dim DisableMgr As New DisableModifiedMgr
|
||||||
Select Case m_nSelViewSlider
|
Select Case m_nSelViewSlider
|
||||||
Case ViewSliderType.ONLY_SELECTED
|
Case ViewSliderType.ONLY_SELECTED
|
||||||
' se diverso da nullo nascondo precedente
|
' nascondo precedente
|
||||||
If Not IsNothing(Map.refTopPanelVM.SelPart) Then
|
' riporto vecchio strato a visualizzazione di tutti i solidi
|
||||||
' riporto vecchio strato a visualizzazione di tutti i solidi
|
If m_nLayerIndex > 0 Then dLayerAdvancement = 100
|
||||||
If m_nLayerIndex > 0 Then dLayerAdvancement = 100
|
If m_nLayerIndex = 0 Then
|
||||||
If m_nLayerIndex = 0 Then
|
For Each Layer In Map.refTopPanelVM.SelPart.LayerList
|
||||||
For Each Layer In Map.refTopPanelVM.SelPart.LayerList
|
EgtSetStatus(Layer.nLayerId, GDB_ST.OFF)
|
||||||
EgtSetStatus(Layer.nLayerId, GDB_ST.OFF)
|
Next
|
||||||
Next
|
ElseIf m_nLayerIndex > 0 Then
|
||||||
ElseIf m_nLayerIndex > 0 Then
|
EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(m_nLayerIndex - 1).nLayerId, GDB_ST.OFF)
|
||||||
EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(m_nLayerIndex - 1).nLayerId, GDB_ST.OFF)
|
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
m_nLayerIndex = value
|
m_nLayerIndex = value
|
||||||
' se diverso da nullo visualizzo corrente
|
' se diverso da nullo visualizzo corrente
|
||||||
If Not IsNothing(Map.refTopPanelVM.SelPart) AndAlso m_nLayerIndex > 0 Then EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(m_nLayerIndex - 1).nLayerId, GDB_ST.ON_)
|
If m_nLayerIndex > 0 Then EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(m_nLayerIndex - 1).nLayerId, GDB_ST.ON_)
|
||||||
' porto barra nuovo strato a 100
|
' porto barra nuovo strato a 100
|
||||||
If m_nLayerIndex > 0 Then SetLayerAdvancement(100)
|
If m_nLayerIndex > 0 Then SetLayerAdvancement(100)
|
||||||
Case ViewSliderType.UNTIL_SELECTED
|
Case ViewSliderType.UNTIL_SELECTED
|
||||||
@@ -64,6 +63,7 @@ Public Class SliderManagerVM
|
|||||||
End If
|
End If
|
||||||
m_nLayerIndex = value
|
m_nLayerIndex = value
|
||||||
End Select
|
End Select
|
||||||
|
DisableMgr.ReEnable()
|
||||||
NotifyPropertyChanged(NameOf(ghShowValue))
|
NotifyPropertyChanged(NameOf(ghShowValue))
|
||||||
NotifyPropertyChanged(NameOf(ghValueIndex))
|
NotifyPropertyChanged(NameOf(ghValueIndex))
|
||||||
NotifyPropertyChanged(NameOf(ghValueHeight))
|
NotifyPropertyChanged(NameOf(ghValueHeight))
|
||||||
@@ -71,47 +71,44 @@ Public Class SliderManagerVM
|
|||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
Private Sub SetLayerIndex(value As Integer)
|
Private Sub SetLayerIndex(value As Integer)
|
||||||
|
If IsNothing(Map.refTopPanelVM.SelPart) Then Return
|
||||||
|
Dim DisableMgr As New DisableModifiedMgr
|
||||||
Select Case m_nSelViewSlider
|
Select Case m_nSelViewSlider
|
||||||
Case ViewSliderType.ONLY_SELECTED
|
Case ViewSliderType.ONLY_SELECTED
|
||||||
If Not IsNothing(Map.refTopPanelVM.SelPart) Then
|
' riporto vecchio strato a visualizzazione di tutti i solidi
|
||||||
' riporto vecchio strato a visualizzazione di tutti i solidi
|
If m_nLayerIndex > 0 AndAlso m_nLayerIndex < Map.refTopPanelVM.SelPart.LayerList.Count Then dLayerAdvancement = 100
|
||||||
If m_nLayerIndex > 0 AndAlso m_nLayerIndex < Map.refTopPanelVM.SelPart.LayerList.Count Then dLayerAdvancement = 100
|
For nLayerInd = 0 To Map.refTopPanelVM.SelPart.LayerList.Count - 1
|
||||||
For nLayerInd = 0 To Map.refTopPanelVM.SelPart.LayerList.Count - 1
|
If nLayerInd = value - 1 Then
|
||||||
If nLayerInd = value - 1 Then
|
EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(nLayerInd).nLayerId, GDB_ST.ON_)
|
||||||
EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(nLayerInd).nLayerId, GDB_ST.ON_)
|
Else
|
||||||
Else
|
EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(nLayerInd).nLayerId, GDB_ST.OFF)
|
||||||
EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(nLayerInd).nLayerId, GDB_ST.OFF)
|
End If
|
||||||
End If
|
Next
|
||||||
Next
|
|
||||||
End If
|
|
||||||
m_nLayerIndex = value
|
m_nLayerIndex = value
|
||||||
Case ViewSliderType.UNTIL_SELECTED
|
Case ViewSliderType.UNTIL_SELECTED
|
||||||
If Not IsNothing(Map.refTopPanelVM.SelPart) Then
|
' riporto vecchio strato a visualizzazione di tutti i solidi
|
||||||
' riporto vecchio strato a visualizzazione di tutti i solidi
|
If m_nLayerIndex > 0 AndAlso m_nLayerIndex < Map.refTopPanelVM.SelPart.LayerList.Count Then dLayerAdvancement = 100
|
||||||
If m_nLayerIndex > 0 AndAlso m_nLayerIndex < Map.refTopPanelVM.SelPart.LayerList.Count Then dLayerAdvancement = 100
|
For nLayerInd = 0 To Map.refTopPanelVM.SelPart.LayerList.Count - 1
|
||||||
For nLayerInd = 0 To Map.refTopPanelVM.SelPart.LayerList.Count - 1
|
If nLayerInd <= value - 1 Then
|
||||||
If nLayerInd <= value - 1 Then
|
EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(nLayerInd).nLayerId, GDB_ST.ON_)
|
||||||
EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(nLayerInd).nLayerId, GDB_ST.ON_)
|
Else
|
||||||
Else
|
EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(nLayerInd).nLayerId, GDB_ST.OFF)
|
||||||
EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(nLayerInd).nLayerId, GDB_ST.OFF)
|
End If
|
||||||
End If
|
Next
|
||||||
Next
|
|
||||||
End If
|
|
||||||
m_nLayerIndex = value
|
m_nLayerIndex = value
|
||||||
Case ViewSliderType.FROM_SELECTED
|
Case ViewSliderType.FROM_SELECTED
|
||||||
If Not IsNothing(Map.refTopPanelVM.SelPart) Then
|
' riporto vecchio strato a visualizzazione di tutti i solidi
|
||||||
' riporto vecchio strato a visualizzazione di tutti i solidi
|
If m_nLayerIndex > 0 AndAlso m_nLayerIndex < Map.refTopPanelVM.SelPart.LayerList.Count Then dLayerAdvancement = 100
|
||||||
If m_nLayerIndex > 0 AndAlso m_nLayerIndex < Map.refTopPanelVM.SelPart.LayerList.Count Then dLayerAdvancement = 100
|
For nLayerInd = 0 To Map.refTopPanelVM.SelPart.LayerList.Count - 1
|
||||||
For nLayerInd = 0 To Map.refTopPanelVM.SelPart.LayerList.Count - 1
|
If nLayerInd >= value - 1 Then
|
||||||
If nLayerInd >= value - 1 Then
|
EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(nLayerInd).nLayerId, GDB_ST.ON_)
|
||||||
EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(nLayerInd).nLayerId, GDB_ST.ON_)
|
Else
|
||||||
Else
|
EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(nLayerInd).nLayerId, GDB_ST.OFF)
|
||||||
EgtSetStatus(Map.refTopPanelVM.SelPart.LayerList(nLayerInd).nLayerId, GDB_ST.OFF)
|
End If
|
||||||
End If
|
Next
|
||||||
Next
|
|
||||||
End If
|
|
||||||
m_nLayerIndex = value
|
m_nLayerIndex = value
|
||||||
End Select
|
End Select
|
||||||
|
DisableMgr.ReEnable()
|
||||||
NotifyPropertyChanged(NameOf(nLayerIndex))
|
NotifyPropertyChanged(NameOf(nLayerIndex))
|
||||||
NotifyPropertyChanged(NameOf(ghShowValue))
|
NotifyPropertyChanged(NameOf(ghShowValue))
|
||||||
NotifyPropertyChanged(NameOf(ghValueIndex))
|
NotifyPropertyChanged(NameOf(ghValueIndex))
|
||||||
@@ -201,6 +198,8 @@ Public Class SliderManagerVM
|
|||||||
Return m_dLayerAdvancement
|
Return m_dLayerAdvancement
|
||||||
End Get
|
End Get
|
||||||
Set(value As Double)
|
Set(value As Double)
|
||||||
|
If IsNothing(Map.refTopPanelVM.SelPart) Then Return
|
||||||
|
Dim DisableMgr As New DisableModifiedMgr
|
||||||
Select Case m_nSelViewSlider
|
Select Case m_nSelViewSlider
|
||||||
Case ViewSliderType.ONLY_SELECTED
|
Case ViewSliderType.ONLY_SELECTED
|
||||||
Dim nTotSolid As Integer = 0
|
Dim nTotSolid As Integer = 0
|
||||||
@@ -247,6 +246,7 @@ Public Class SliderManagerVM
|
|||||||
End If
|
End If
|
||||||
m_dLayerAdvancement = value
|
m_dLayerAdvancement = value
|
||||||
End Select
|
End Select
|
||||||
|
DisableMgr.ReEnable()
|
||||||
EgtDraw()
|
EgtDraw()
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
@@ -335,6 +335,7 @@ Public Class SliderManagerVM
|
|||||||
WriteMainPrivateProfileString(S_PRINTING3D, K_VIEWSLIDER, m_nSelViewSlider)
|
WriteMainPrivateProfileString(S_PRINTING3D, K_VIEWSLIDER, m_nSelViewSlider)
|
||||||
' ciclo tutti i layer per nasconderli/mostrarli
|
' ciclo tutti i layer per nasconderli/mostrarli
|
||||||
If IsNothing(Map.refTopPanelVM.SelPart) OrElse IsNothing(Map.refTopPanelVM.SelPart.LayerList) Then Return
|
If IsNothing(Map.refTopPanelVM.SelPart) OrElse IsNothing(Map.refTopPanelVM.SelPart.LayerList) Then Return
|
||||||
|
Dim DisableMgr As New DisableModifiedMgr
|
||||||
Select Case m_nSelViewSlider
|
Select Case m_nSelViewSlider
|
||||||
Case ViewSliderType.ONLY_SELECTED
|
Case ViewSliderType.ONLY_SELECTED
|
||||||
For Each Layer In Map.refTopPanelVM.SelPart.LayerList
|
For Each Layer In Map.refTopPanelVM.SelPart.LayerList
|
||||||
@@ -361,6 +362,7 @@ Public Class SliderManagerVM
|
|||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
End Select
|
End Select
|
||||||
|
DisableMgr.ReEnable()
|
||||||
' mostro/nascondo slider orizzontale
|
' mostro/nascondo slider orizzontale
|
||||||
m_LayerAdvancement_Visibility = If(m_nSelViewSlider = ViewSliderType.ONLY_SELECTED, Visibility.Visible, Visibility.Hidden)
|
m_LayerAdvancement_Visibility = If(m_nSelViewSlider = ViewSliderType.ONLY_SELECTED, Visibility.Visible, Visibility.Hidden)
|
||||||
NotifyPropertyChanged(NameOf(LayerAdvancement_Visibility))
|
NotifyPropertyChanged(NameOf(LayerAdvancement_Visibility))
|
||||||
|
|||||||
@@ -28,6 +28,7 @@
|
|||||||
ItemsSource="{Binding StartList}"
|
ItemsSource="{Binding StartList}"
|
||||||
SelectedItem="{Binding SelStart}"
|
SelectedItem="{Binding SelStart}"
|
||||||
DisplayMemberPath="ghName"
|
DisplayMemberPath="ghName"
|
||||||
|
IsEnabled="{Binding StartList_IsEnabled}"
|
||||||
Style="{StaticResource LeftPanel_ComboBox}"/>
|
Style="{StaticResource LeftPanel_ComboBox}"/>
|
||||||
<!-- Add Button -->
|
<!-- Add Button -->
|
||||||
<ToggleButton x:Name="AddBtn"
|
<ToggleButton x:Name="AddBtn"
|
||||||
|
|||||||
@@ -35,6 +35,10 @@ Public Class StartMachPanelVM
|
|||||||
Return m_SelStart
|
Return m_SelStart
|
||||||
End Get
|
End Get
|
||||||
Set(value As StartEntity)
|
Set(value As StartEntity)
|
||||||
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse Map.refStartMachPanelVM.bCPlaneObj_IsActive Then
|
||||||
|
NotifyPropertyChanged(NameOf(SelStart))
|
||||||
|
Return
|
||||||
|
End If
|
||||||
m_SelStart = value
|
m_SelStart = value
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
If Not IsNothing(value) Then
|
If Not IsNothing(value) Then
|
||||||
@@ -293,6 +297,18 @@ Public Class StartMachPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_StartList_IsEnabled As Boolean = False
|
||||||
|
Public ReadOnly Property StartList_IsEnabled As Boolean
|
||||||
|
Get
|
||||||
|
Return If(m_StartList.Count > 0, m_StartList_IsEnabled, False)
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
Friend Sub SetStartListIsEnabled(bValue As Boolean)
|
||||||
|
m_StartList_IsEnabled = bValue
|
||||||
|
NotifyPropertyChanged(NameOf(StartList_IsEnabled))
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
|
||||||
' riferimento griglia all'ingresso in questa pagina
|
' riferimento griglia all'ingresso in questa pagina
|
||||||
Private m_OriginalGridFrame As New Frame3d
|
Private m_OriginalGridFrame As New Frame3d
|
||||||
|
|
||||||
@@ -304,6 +320,8 @@ Public Class StartMachPanelVM
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Private m_bEscOnLine2P As Boolean = False
|
||||||
|
|
||||||
#Region "Tooltip"
|
#Region "Tooltip"
|
||||||
|
|
||||||
Public ReadOnly Property Point_ToolTip As String
|
Public ReadOnly Property Point_ToolTip As String
|
||||||
@@ -458,6 +476,8 @@ Public Class StartMachPanelVM
|
|||||||
SelStart = m_StartList(0)
|
SelStart = m_StartList(0)
|
||||||
NotifyPropertyChanged(NameOf(SelStart))
|
NotifyPropertyChanged(NameOf(SelStart))
|
||||||
End If
|
End If
|
||||||
|
' abilito lista start mach
|
||||||
|
SetStartListIsEnabled(True)
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -481,16 +501,33 @@ Public Class StartMachPanelVM
|
|||||||
' seleziono percorso corrente
|
' seleziono percorso corrente
|
||||||
EgtDeselectAll()
|
EgtDeselectAll()
|
||||||
EgtSelectObj(m_SelStart.nId)
|
EgtSelectObj(m_SelStart.nId)
|
||||||
|
EgtDraw()
|
||||||
|
' disattivo il resto dell'interfaccia
|
||||||
|
ManageInterface(False)
|
||||||
Return True
|
Return True
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Friend Sub UpdateUI()
|
Friend Sub UpdateUI()
|
||||||
' se attiva operazione in piu' passaggi, esco
|
' se attiva operazione in piu' passaggi, esco
|
||||||
If Map.refSceneHostVM.MainController.GetContinue() Then Return
|
If Map.refSceneHostVM.MainController.GetContinue() Then Return
|
||||||
Dim NewEntity As StartEntity = Nothing
|
End Sub
|
||||||
' se finita creazione curva (è stata chiusa)
|
|
||||||
|
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
||||||
|
m_bEscOnLine2P = False
|
||||||
|
Select Case command
|
||||||
|
Case Controller.CMD.LINE2P, Controller.CMD.DELETE, Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE,
|
||||||
|
Controller.CMD.MOVE, Controller.CMD.ROTATE
|
||||||
|
' Imposto flag di ricalcolo slice
|
||||||
|
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
||||||
|
' rimetto la selezione scena a null
|
||||||
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
|
End Select
|
||||||
|
' riabilito interfaccia
|
||||||
|
ManageInterface(True)
|
||||||
|
' se finita creazione curva
|
||||||
If bIsCreatingPath Then
|
If bIsCreatingPath Then
|
||||||
m_bIsCreatingPath = False
|
m_bIsCreatingPath = False
|
||||||
|
Dim NewEntity As StartEntity = Nothing
|
||||||
Dim nNewStartLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWSTART)
|
Dim nNewStartLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWSTART)
|
||||||
Dim nNewEntityId As Integer = EgtGetFirstInGroup(nNewStartLayerId)
|
Dim nNewEntityId As Integer = EgtGetFirstInGroup(nNewStartLayerId)
|
||||||
Dim NewGeomType As GDB_TY = EgtGetType(nNewEntityId)
|
Dim NewGeomType As GDB_TY = EgtGetType(nNewEntityId)
|
||||||
@@ -503,37 +540,22 @@ Public Class StartMachPanelVM
|
|||||||
NewEntityType = StartMachTypes.COMPO
|
NewEntityType = StartMachTypes.COMPO
|
||||||
End Select
|
End Select
|
||||||
EgtSetName(nNewEntityId, START_GEOM)
|
EgtSetName(nNewEntityId, START_GEOM)
|
||||||
' coloro l'entita' di rosso
|
' resetto colore entita'
|
||||||
Dim c3Red As Color3d
|
EgtResetColor(nNewEntityId)
|
||||||
c3Red.FromColor(System.Drawing.Color.Red)
|
|
||||||
EgtSetColor(nNewEntityId, c3Red)
|
|
||||||
' lo sposto nel layer degli start
|
' lo sposto nel layer degli start
|
||||||
EgtRelocateGlob(nNewEntityId, m_nStartMachLayerId, GDB_POS.LAST_SON)
|
EgtRelocateGlob(nNewEntityId, m_nStartMachLayerId, GDB_POS.LAST_SON)
|
||||||
' lo aggiungo alla lista
|
' lo aggiungo alla lista
|
||||||
NewEntity = New StartEntity(nNewEntityId, NewEntityType)
|
NewEntity = New StartEntity(nNewEntityId, NewEntityType)
|
||||||
m_StartList.Add(NewEntity)
|
m_StartList.Add(NewEntity)
|
||||||
' cancello layer di disegno
|
' lo seleziono
|
||||||
EgtErase(nNewStartLayerId)
|
SelStart = NewEntity
|
||||||
|
NotifyPropertyChanged(NameOf(SelStart))
|
||||||
End If
|
End If
|
||||||
|
' cancello layer di disegno
|
||||||
|
EgtErase(nNewStartLayerId)
|
||||||
End If
|
End If
|
||||||
' aggiorno posizione
|
' aggiorno posizione
|
||||||
RefreshPos()
|
RefreshPos()
|
||||||
' se aggiunta entita'
|
|
||||||
If Not IsNothing(NewEntity) Then
|
|
||||||
SelStart = NewEntity
|
|
||||||
NotifyPropertyChanged(NameOf(SelStart))
|
|
||||||
End If
|
|
||||||
' rimetto la selezione scena a null
|
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
|
||||||
End Sub
|
|
||||||
|
|
||||||
Friend Sub OnExecCmdEnd(command As Controller.CMD)
|
|
||||||
Select Case command
|
|
||||||
Case Controller.CMD.LINE2P, Controller.CMD.DELETE, Controller.CMD.MODIFYCURVE, Controller.CMD.ADDPOINTCURVE, Controller.CMD.REMOVEPOINTCURVE,
|
|
||||||
Controller.CMD.MOVE, Controller.CMD.ROTATE
|
|
||||||
' Imposto flag di ricalcolo slice
|
|
||||||
EgtSetInfo(Map.refTopPanelVM.SelPart.nPartId, MAC_TORECALC_SLICE, True)
|
|
||||||
End Select
|
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Sub OnKeyDown(Key As Forms.Keys)
|
Friend Sub OnKeyDown(Key As Forms.Keys)
|
||||||
@@ -550,6 +572,12 @@ Public Class StartMachPanelVM
|
|||||||
' rimetto la selezione scena a null
|
' rimetto la selezione scena a null
|
||||||
Map.refSceneHostVM.MainScene.SetStatusNull()
|
Map.refSceneHostVM.MainScene.SetStatusNull()
|
||||||
End If
|
End If
|
||||||
|
' se esc su creazione percorso, lo annullo, altrimenti riabilito interfaccia
|
||||||
|
If m_bEscOnLine2P Then
|
||||||
|
m_bEscOnLine2P = False
|
||||||
|
Else
|
||||||
|
ManageInterface(True)
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -565,6 +593,18 @@ Public Class StartMachPanelVM
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Friend Sub ManageInterface(bValue As Boolean)
|
||||||
|
' disabilito ProjManager, TopPanel, TFS, Slider, bottoni e uscita dal programma
|
||||||
|
Map.refProjManagerVM.SetProjCmdIsEnabled(bValue)
|
||||||
|
Map.refTopPanelVM.SetTopPanelIsEnabled(bValue)
|
||||||
|
Map.refViewLayerManagerVM.SetViewLayerManagerIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerIndexIsEnabled(bValue)
|
||||||
|
Map.refSliderManagerVM.SetLayerAdvancementIsEnabled(bValue)
|
||||||
|
Map.refSliceManagerVM.SetButtonsIsEnabled(bValue)
|
||||||
|
Map.refInstrumentPanelVM.SetInstrumentPanelIsEnabled(bValue)
|
||||||
|
SetStartListIsEnabled(bValue)
|
||||||
|
End Sub
|
||||||
|
|
||||||
#End Region ' METHODS
|
#End Region ' METHODS
|
||||||
|
|
||||||
#Region "COMMANDS"
|
#Region "COMMANDS"
|
||||||
@@ -588,13 +628,13 @@ Public Class StartMachPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Point(ByVal param As Object)
|
Public Sub Point(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Dim nNewStartLayerId As Integer = EgtGetFirstNameInGroup( m_nPartId, LAY_NEWSTART)
|
ManageInterface(False)
|
||||||
|
Dim nNewStartLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWSTART)
|
||||||
If nNewStartLayerId = GDB_ID.NULL Then
|
If nNewStartLayerId = GDB_ID.NULL Then
|
||||||
nNewStartLayerId = EgtCreateGroup(m_nPartId)
|
nNewStartLayerId = EgtCreateGroup(m_nPartId)
|
||||||
EgtSetName(nNewStartLayerId, LAY_NEWSTART)
|
EgtSetName(nNewStartLayerId, LAY_NEWSTART)
|
||||||
End If
|
End If
|
||||||
EgtSetCurrPartLayer(m_nPartId, nNewStartLayerId)
|
EgtSetCurrPartLayer(m_nPartId, nNewStartLayerId)
|
||||||
'InitCommand(True)
|
|
||||||
If Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.POINT) Then
|
If Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.POINT) Then
|
||||||
m_bIsCreatingPath = True
|
m_bIsCreatingPath = True
|
||||||
End If
|
End If
|
||||||
@@ -621,7 +661,8 @@ Public Class StartMachPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub Line2P(ByVal param As Object)
|
Public Sub Line2P(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
Dim nNewStartLayerId As Integer = EgtGetFirstNameInGroup( m_nPartId, LAY_NEWSTART)
|
ManageInterface(False)
|
||||||
|
Dim nNewStartLayerId As Integer = EgtGetFirstNameInGroup(m_nPartId, LAY_NEWSTART)
|
||||||
If nNewStartLayerId = GDB_ID.NULL Then
|
If nNewStartLayerId = GDB_ID.NULL Then
|
||||||
nNewStartLayerId = EgtCreateGroup(m_nPartId)
|
nNewStartLayerId = EgtCreateGroup(m_nPartId)
|
||||||
EgtSetName(nNewStartLayerId, LAY_NEWSTART)
|
EgtSetName(nNewStartLayerId, LAY_NEWSTART)
|
||||||
@@ -888,6 +929,7 @@ Public Class StartMachPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneElevation(ByVal param As Object)
|
Public Sub CPlaneElevation(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ELEVATION)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -912,6 +954,7 @@ Public Class StartMachPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneOrigin(ByVal param As Object)
|
Public Sub CPlaneOrigin(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
Map.refSceneHostVM.MainController.ExecuteCommand(Controller.CMD.GRID_ORIGIN)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -952,6 +995,7 @@ Public Class StartMachPanelVM
|
|||||||
''' </summary>
|
''' </summary>
|
||||||
Public Sub CPlaneObj(ByVal param As Object)
|
Public Sub CPlaneObj(ByVal param As Object)
|
||||||
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
If Map.refSceneHostVM.MainController.GetStep <> 0 OrElse m_bCPlaneObj_IsActive Then Return
|
||||||
|
ManageInterface(False)
|
||||||
' salvo selezione precedente e deseleziono altri oggetti
|
' salvo selezione precedente e deseleziono altri oggetti
|
||||||
m_PrevSelObjs.Clear()
|
m_PrevSelObjs.Clear()
|
||||||
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
Dim nSelObjId As Integer = EgtGetFirstSelectedObj()
|
||||||
@@ -1012,6 +1056,7 @@ Public Class StartMachPanelVM
|
|||||||
End If
|
End If
|
||||||
NotifyPropertyChanged(NameOf(SelStart))
|
NotifyPropertyChanged(NameOf(SelStart))
|
||||||
End If
|
End If
|
||||||
|
SetStartListIsEnabled(True)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
#End Region ' Delete
|
#End Region ' Delete
|
||||||
|
|||||||
@@ -337,7 +337,7 @@ Public Class TFSEditorVM
|
|||||||
|
|
||||||
Public ReadOnly Property Seconds_Msg As String
|
Public ReadOnly Property Seconds_Msg As String
|
||||||
Get
|
Get
|
||||||
Return "s"
|
Return "min:s"
|
||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
@@ -962,4 +962,8 @@ Public Class TFSLayer
|
|||||||
Return If(dHours > 0, dHours.ToString("00") & ":", "") & If(dHours > 0, dMinutes.ToString("00"), dMinutes.ToString()) & ":" & dSeconds.ToString("00")
|
Return If(dHours > 0, dHours.ToString("00") & ":", "") & If(dHours > 0, dMinutes.ToString("00"), dMinutes.ToString()) & ":" & dSeconds.ToString("00")
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
End Class
|
Friend Function ConvertToJsonLayer() As JsonLayer
|
||||||
|
Return New JsonLayer(nIndex, dLength, dTMin, m_dTTrg, dTMax, dTCurr, m_dTWait, dFCurr, m_dFTrg, m_dFMax, m_dFCurr, dSpeed)
|
||||||
|
End Function
|
||||||
|
|
||||||
|
End Class
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
<ToggleButton x:Name="ModifyBtn"
|
<ToggleButton x:Name="ModifyBtn"
|
||||||
Grid.Column="2"
|
Grid.Column="2"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
Content="{Binding SelectedItem.sName, ElementName=ModifyModeListBox}"
|
Content="{Binding SelModifyModeName}"
|
||||||
IsChecked="{Binding bModify_IsChecked}"
|
IsChecked="{Binding bModify_IsChecked}"
|
||||||
Margin="2.5,0,2.5,0"
|
Margin="2.5,0,2.5,0"
|
||||||
Style="{StaticResource TopPanel_Modify_ToggleButton}">
|
Style="{StaticResource TopPanel_Modify_ToggleButton}">
|
||||||
|
|||||||
@@ -121,6 +121,7 @@ Public Class TopPanelVM
|
|||||||
Map.refLeftPanelVM.SetSelPanel(LeftPanelVM.Panels.NULL)
|
Map.refLeftPanelVM.SetSelPanel(LeftPanelVM.Panels.NULL)
|
||||||
NotifyPropertyChanged(NameOf(SelModifyMode))
|
NotifyPropertyChanged(NameOf(SelModifyMode))
|
||||||
End If
|
End If
|
||||||
|
NotifyPropertyChanged(NameOf(SelModifyModeName))
|
||||||
' chiudo il popup
|
' chiudo il popup
|
||||||
SetModifyIsChecked(False)
|
SetModifyIsChecked(False)
|
||||||
End Set
|
End Set
|
||||||
@@ -128,8 +129,15 @@ Public Class TopPanelVM
|
|||||||
Friend Sub SetSelModifyMode(ModifyMode As ModifyModes)
|
Friend Sub SetSelModifyMode(ModifyMode As ModifyModes)
|
||||||
SelModifyMode = m_ModifyModeList.FirstOrDefault(Function(x) x.ModifyMode = ModifyMode)
|
SelModifyMode = m_ModifyModeList.FirstOrDefault(Function(x) x.ModifyMode = ModifyMode)
|
||||||
NotifyPropertyChanged(NameOf(SelModifyMode))
|
NotifyPropertyChanged(NameOf(SelModifyMode))
|
||||||
|
NotifyPropertyChanged(NameOf(SelModifyModeName))
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public ReadOnly Property SelModifyModeName As String
|
||||||
|
Get
|
||||||
|
Return If(Not IsNothing(m_SelModifyMode) AndAlso m_SelModifyMode.ModifyMode <> ModifyModes.NULL, m_SelModifyMode.sName, "Modify")
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
Private m_bModify_IsChecked As Boolean
|
Private m_bModify_IsChecked As Boolean
|
||||||
Public Property bModify_IsChecked As Boolean
|
Public Property bModify_IsChecked As Boolean
|
||||||
Get
|
Get
|
||||||
@@ -266,7 +274,27 @@ Public Class TopPanelVM
|
|||||||
WriteMainPrivateProfileString(S_PRINTING3D, K_CURRMACHINING, value.sGUID.ToString())
|
WriteMainPrivateProfileString(S_PRINTING3D, K_CURRMACHINING, value.sGUID.ToString())
|
||||||
' imposto selezionata come corrente
|
' imposto selezionata come corrente
|
||||||
If Not IsNothing(m_SelPart) AndAlso (IsNothing(m_SelMachining) OrElse value.sGUID <> m_SelMachining.sGUID) Then
|
If Not IsNothing(m_SelPart) AndAlso (IsNothing(m_SelMachining) OrElse value.sGUID <> m_SelMachining.sGUID) Then
|
||||||
|
Dim GeneralCathegory As MachiningCathegory = Map.refTopPanelVM.CurrMachining.CathegoryList.FirstOrDefault(Function(x) x.Type = MachiningCathegory.Cathegories.GENERAL)
|
||||||
|
Dim OldSlicingTypeValue As Machining.MPAR_SLICINGTYPE = Nothing
|
||||||
|
Dim NewSlicingTypeValue As Machining.MPAR_SLICINGTYPE = Nothing
|
||||||
|
If Not IsNothing(GeneralCathegory) Then
|
||||||
|
Dim SlicingTypeParam As ComboMachiningParam = GeneralCathegory.MachiningParamList.FirstOrDefault(Function(x) x.Type = MachiningParam.Params.SLICINGTYPE)
|
||||||
|
If Not IsNothing(SlicingTypeParam) Then
|
||||||
|
OldSlicingTypeValue = SlicingTypeParam.SelValue.Id
|
||||||
|
End If
|
||||||
|
End If
|
||||||
Map.refCurrMachiningPanelVM.SetCurrMachining(New CurrMachining(m_SelPart.nPartId, value.nIndex))
|
Map.refCurrMachiningPanelVM.SetCurrMachining(New CurrMachining(m_SelPart.nPartId, value.nIndex))
|
||||||
|
GeneralCathegory = Map.refTopPanelVM.CurrMachining.CathegoryList.FirstOrDefault(Function(x) x.Type = MachiningCathegory.Cathegories.GENERAL)
|
||||||
|
If Not IsNothing(GeneralCathegory) Then
|
||||||
|
Dim SlicingTypeParam As ComboMachiningParam = GeneralCathegory.MachiningParamList.FirstOrDefault(Function(x) x.Type = MachiningParam.Params.SLICINGTYPE)
|
||||||
|
If Not IsNothing(SlicingTypeParam) Then
|
||||||
|
NewSlicingTypeValue = SlicingTypeParam.SelValue.Id
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
If IsNothing(OldSlicingTypeValue) OrElse IsNothing(NewSlicingTypeValue) OrElse OldSlicingTypeValue <> NewSlicingTypeValue Then
|
||||||
|
' aggiorno area di estrusione
|
||||||
|
CurrentMachine.UpdateExtrusionArea()
|
||||||
|
End If
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
m_SelMachining = value
|
m_SelMachining = value
|
||||||
|
|||||||
@@ -79,6 +79,14 @@ Public Module CurrentMachine
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
' altezza massima di estrusione impostata in file ini macchina
|
||||||
|
Private m_dSlicingMaxHeight As Double
|
||||||
|
Public ReadOnly Property dSlicingMaxHeight As Double
|
||||||
|
Get
|
||||||
|
Return m_dSlicingMaxHeight
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
#Region "Init"
|
#Region "Init"
|
||||||
|
|
||||||
Sub InitCurrentMachine(sMachinesRootDir As String, sMachineName As String)
|
Sub InitCurrentMachine(sMachinesRootDir As String, sMachineName As String)
|
||||||
@@ -97,6 +105,8 @@ Public Module CurrentMachine
|
|||||||
m_sMachiningFilePath = sMachinesRootDir & "\" & sMachineName & "\Machinings\Machinings.ini"
|
m_sMachiningFilePath = sMachinesRootDir & "\" & sMachineName & "\Machinings\Machinings.ini"
|
||||||
' impostazione cartella materiali
|
' impostazione cartella materiali
|
||||||
m_sMaterialFilePath = sMachinesRootDir & "\" & sMachineName & "\Materials\Materials.ini"
|
m_sMaterialFilePath = sMachinesRootDir & "\" & sMachineName & "\Materials\Materials.ini"
|
||||||
|
' leggo altezza massima estrusione impostata su macchina
|
||||||
|
m_dSlicingMaxHeight = GetPrivateProfileDouble(S_MACH_PRINTING3D, K_MAX_HEIGHT, 900, m_sMachIniFile)
|
||||||
' Disabilito segnalazione modificato
|
' Disabilito segnalazione modificato
|
||||||
Dim DisableMgr As New DisableModifiedMgr
|
Dim DisableMgr As New DisableModifiedMgr
|
||||||
' recupero box macchina
|
' recupero box macchina
|
||||||
@@ -146,21 +156,32 @@ Public Module CurrentMachine
|
|||||||
DisableMgr.ReEnable()
|
DisableMgr.ReEnable()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Public Sub SetTableVisibility(IsVisible As Boolean)
|
||||||
|
Dim nTableLayerId As Integer = EgtGetFirstNameInGroup(GDB_ID.ROOT, TABLE)
|
||||||
|
EgtSetStatus(nTableLayerId, If(IsVisible, GDB_ST.ON_, GDB_ST.OFF))
|
||||||
|
End Sub
|
||||||
|
|
||||||
Public Sub UpdateExtrusionArea()
|
Public Sub UpdateExtrusionArea()
|
||||||
|
Dim DisableMgr As New DisableModifiedMgr
|
||||||
' recupero eventuale vecchia area di estrusione
|
' recupero eventuale vecchia area di estrusione
|
||||||
Dim nTabPartId As Integer = EgtGetFirstNameInGroup(GDB_ID.ROOT, TABLE)
|
Dim nTabPartId As Integer = EgtGetFirstNameInGroup(GDB_ID.ROOT, TABLE)
|
||||||
Dim nTabLayerId As Integer = EgtGetFirstNameInGroup(nTabPartId, TABLE)
|
Dim nTabLayerId As Integer = EgtGetFirstNameInGroup(nTabPartId, TABLE)
|
||||||
Dim nExtrusionAreaId As Integer = EgtGetFirstNameInGroup(nTabLayerId, EXTRUSION_AREA)
|
Dim nExtrusionAreaId As Integer = EgtGetFirstNameInGroup(nTabLayerId, EXTRUSION_AREA)
|
||||||
If nExtrusionAreaId <> GDB_ID.NULL Then
|
If nExtrusionAreaId <> GDB_ID.NULL Then EgtErase(nExtrusionAreaId)
|
||||||
' e la cancello
|
Dim nExtrusionRectId As Integer = EgtGetFirstNameInGroup(nTabLayerId, EXTRUSION_RECT)
|
||||||
EgtErase(nExtrusionAreaId)
|
If nExtrusionRectId <> GDB_ID.NULL Then EgtErase(nExtrusionRectId)
|
||||||
End If
|
|
||||||
' se lavorazione corrente nulla, esco
|
' se lavorazione corrente nulla, esco
|
||||||
If IsNothing(Map.refTopPanelVM.CurrMachining) Then Return
|
If IsNothing(Map.refTopPanelVM.CurrMachining) Then
|
||||||
|
DisableMgr.ReEnable()
|
||||||
|
Return
|
||||||
|
End If
|
||||||
' se non esiste file dati macchina, esco
|
' se non esiste file dati macchina, esco
|
||||||
If String.IsNullOrWhiteSpace(m_sMachDataIniFile) Then Return
|
If String.IsNullOrWhiteSpace(m_sMachDataIniFile) Then
|
||||||
|
DisableMgr.ReEnable()
|
||||||
|
Return
|
||||||
|
End If
|
||||||
' recupero tipo di slice
|
' recupero tipo di slice
|
||||||
Dim sExtrusionType As String
|
Dim sExtrusionType As String = S_VERTICAL
|
||||||
Dim GeneralCathegory As MachiningCathegory = Map.refTopPanelVM.CurrMachining.CathegoryList.FirstOrDefault(Function(x) x.Type = MachiningCathegory.Cathegories.GENERAL)
|
Dim GeneralCathegory As MachiningCathegory = Map.refTopPanelVM.CurrMachining.CathegoryList.FirstOrDefault(Function(x) x.Type = MachiningCathegory.Cathegories.GENERAL)
|
||||||
Dim SlicingTypeParam As ComboMachiningParam = GeneralCathegory.MachiningParamList.FirstOrDefault(Function(x) x.Type = MachiningParam.Params.SLICINGTYPE)
|
Dim SlicingTypeParam As ComboMachiningParam = GeneralCathegory.MachiningParamList.FirstOrDefault(Function(x) x.Type = MachiningParam.Params.SLICINGTYPE)
|
||||||
Dim SlicingTypeValue As Machining.MPAR_SLICINGTYPE = SlicingTypeParam.SelValue.Id
|
Dim SlicingTypeValue As Machining.MPAR_SLICINGTYPE = SlicingTypeParam.SelValue.Id
|
||||||
@@ -178,12 +199,19 @@ Public Module CurrentMachine
|
|||||||
Dim dExtrXMin = GetPrivateProfileDouble(sExtrusionType, K_MINX, 0, m_sMachDataIniFile)
|
Dim dExtrXMin = GetPrivateProfileDouble(sExtrusionType, K_MINX, 0, m_sMachDataIniFile)
|
||||||
Dim dExtrYMax = GetPrivateProfileDouble(sExtrusionType, K_MAXY, 0, m_sMachDataIniFile)
|
Dim dExtrYMax = GetPrivateProfileDouble(sExtrusionType, K_MAXY, 0, m_sMachDataIniFile)
|
||||||
Dim dExtrYMin = GetPrivateProfileDouble(sExtrusionType, K_MINY, 0, m_sMachDataIniFile)
|
Dim dExtrYMin = GetPrivateProfileDouble(sExtrusionType, K_MINY, 0, m_sMachDataIniFile)
|
||||||
nExtrusionAreaId = EgtCreateRectangle2P(nTabLayerId, New Point3d(dExtrXMin, dExtrYMin, 0), New Point3d(dExtrXMax, dExtrYMax, 0))
|
Const AREA_WIDTH As Double = 10
|
||||||
|
Dim nAuxRectId As Integer = EgtCreateRectangle2P(nTabLayerId, New Point3d(dExtrXMin - AREA_WIDTH, dExtrYMin - AREA_WIDTH, 0), New Point3d(dExtrXMax + AREA_WIDTH, dExtrYMax + AREA_WIDTH, 0))
|
||||||
|
nExtrusionRectId = EgtCreateRectangle2P(nTabLayerId, New Point3d(dExtrXMin, dExtrYMin, 0), New Point3d(dExtrXMax, dExtrYMax, 0))
|
||||||
|
nExtrusionAreaId = EgtCreateSurfTmByRegion( nTabLayerId, { nAuxRectId, nExtrusionRectId}, EPS_STM)
|
||||||
|
EgtErase( nAuxRectId)
|
||||||
Dim c3Temp As New Color3d
|
Dim c3Temp As New Color3d
|
||||||
c3Temp.FromColor(System.Drawing.Color.Lime)
|
c3Temp.FromColor(System.Drawing.Color.Lime)
|
||||||
EgtSetColor(nExtrusionAreaId, c3Temp)
|
EgtSetColor(nExtrusionAreaId, c3Temp)
|
||||||
EgtSetName(nExtrusionAreaId, EXTRUSION_AREA)
|
EgtSetName(nExtrusionAreaId, EXTRUSION_AREA)
|
||||||
|
EgtSetColor(nExtrusionRectId, c3Temp)
|
||||||
|
EgtSetName(nExtrusionRectId, EXTRUSION_RECT)
|
||||||
m_b3ExtrusionArea = New BBox3d(New Point3d(dExtrXMin, dExtrYMin, 0), New Point3d(dExtrXMax, dExtrYMax, 0))
|
m_b3ExtrusionArea = New BBox3d(New Point3d(dExtrXMin, dExtrYMin, 0), New Point3d(dExtrXMax, dExtrYMax, 0))
|
||||||
|
DisableMgr.ReEnable()
|
||||||
EgtDraw()
|
EgtDraw()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
+67
-215
@@ -52,7 +52,6 @@
|
|||||||
<PrintApp:MachineViewPanelVM x:Key="MachineViewPanelVM"/>
|
<PrintApp:MachineViewPanelVM x:Key="MachineViewPanelVM"/>
|
||||||
<!--<PrintApp:ModifyPartPanelVM x:Key="ModifyPartPanelVM"/>-->
|
<!--<PrintApp:ModifyPartPanelVM x:Key="ModifyPartPanelVM"/>-->
|
||||||
<PrintApp:ManagePartPanelVM x:Key="ManagePartPanelVM"/>
|
<PrintApp:ManagePartPanelVM x:Key="ManagePartPanelVM"/>
|
||||||
<PrintApp:HelpPanelVM x:Key="HelpPanelVM"/>
|
|
||||||
<!--<EgtBEAMWALL:CALCPanelVM x:Key="CALCPanelVM"/>
|
<!--<EgtBEAMWALL:CALCPanelVM x:Key="CALCPanelVM"/>
|
||||||
<EgtBEAMWALL:PartParametersVM x:Key="PartParametersVM"/>
|
<EgtBEAMWALL:PartParametersVM x:Key="PartParametersVM"/>
|
||||||
<EgtBEAMWALL:LeftPanelVM x:Key="LeftPanelVM"/>
|
<EgtBEAMWALL:LeftPanelVM x:Key="LeftPanelVM"/>
|
||||||
@@ -4191,70 +4190,81 @@
|
|||||||
Background="White">
|
Background="White">
|
||||||
<Grid.ColumnDefinitions>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="*"/>
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<Button Command="{Binding AboutBoxCommand}"
|
<Button Command="{Binding AboutBoxCommand}"
|
||||||
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
||||||
Style="{StaticResource AboutBox_Button}">
|
Style="{StaticResource AboutBox_Button}">
|
||||||
<Image Source="{TemplateBinding Icon}"
|
<Image Source="{TemplateBinding Icon}"/>
|
||||||
Style="{StaticResource Button_Image}"/>
|
|
||||||
</Button>
|
</Button>
|
||||||
<ContentPresenter Grid.Column="1"
|
<Grid Grid.Column="1">
|
||||||
Content="{TemplateBinding TitlePanel}"
|
<Grid.ColumnDefinitions>
|
||||||
VerticalAlignment="Center"/>
|
<ColumnDefinition Width="Auto"/>
|
||||||
<TextBlock Text="{TemplateBinding ProjectName}"
|
<ColumnDefinition Width="Auto"/>
|
||||||
ToolTip="{TemplateBinding ProjectPath}"
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
<ContentPresenter Content="{TemplateBinding TitlePanel}"
|
||||||
|
VerticalAlignment="Center"/>
|
||||||
|
<TextBlock Text="{TemplateBinding ProjectName}"
|
||||||
|
ToolTip="{TemplateBinding ProjectPath}"
|
||||||
|
Grid.Column="1"
|
||||||
|
TextTrimming="CharacterEllipsis"
|
||||||
|
FontSize="14"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Background="{StaticResource Icarus_Gray}"
|
||||||
|
Padding="5,2,5,3"
|
||||||
|
Margin="10,0,0,0"
|
||||||
|
Foreground="White"/>
|
||||||
|
<TextBlock x:Name="PART_MoveRectangle"
|
||||||
|
Text="{TemplateBinding Title}"
|
||||||
|
Grid.Column="2"
|
||||||
|
TextTrimming="CharacterEllipsis"
|
||||||
|
HorizontalAlignment="Stretch"
|
||||||
|
FontSize="14"
|
||||||
|
TextAlignment="Center"
|
||||||
|
VerticalAlignment="Center"
|
||||||
|
Width="Auto"
|
||||||
|
Foreground="{StaticResource Icarus_Gray}"
|
||||||
|
Panel.ZIndex="0"/>
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
<Grid x:Name="WindowControlsGrid"
|
||||||
|
Grid.Column="2"
|
||||||
|
Background="White">
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
<ColumnDefinition Width="Auto"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<Button x:Name="MinimizeButton"
|
||||||
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
||||||
|
Style="{StaticResource TitleBar_Button}">
|
||||||
|
<Image Source="\Resources\Common\Minimize.png"/>
|
||||||
|
</Button>
|
||||||
|
<Button x:Name="MaximizeButton"
|
||||||
|
Grid.Column="1"
|
||||||
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
||||||
|
Style="{StaticResource TitleBar_Button}">
|
||||||
|
<Image Source="\Resources\Common\Maximize.png"/>
|
||||||
|
</Button>
|
||||||
|
<Button x:Name="RestoreButton"
|
||||||
|
Grid.Column="1"
|
||||||
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
||||||
|
Style="{StaticResource TitleBar_Button}"
|
||||||
|
Visibility="Collapsed">
|
||||||
|
<Image Source="\Resources\Common\Restore.png"/>
|
||||||
|
</Button>
|
||||||
|
<Button x:Name="CloseButton"
|
||||||
Grid.Column="2"
|
Grid.Column="2"
|
||||||
TextTrimming="CharacterEllipsis"
|
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
||||||
FontSize="14"
|
Command="{TemplateBinding CloseCommand}"
|
||||||
VerticalAlignment="Center"
|
Style="{StaticResource TitleBar_Button}">
|
||||||
Background="{StaticResource Icarus_Gray}"
|
<Image Source="\Resources\Common\Close.png"/>
|
||||||
Padding="5,2,5,3"
|
</Button>
|
||||||
Margin="10,0,0,0"
|
</Grid>
|
||||||
Foreground="White"/>
|
|
||||||
<TextBlock x:Name="PART_MoveRectangle"
|
|
||||||
Text="{TemplateBinding Title}"
|
|
||||||
Grid.Column="3"
|
|
||||||
TextTrimming="CharacterEllipsis"
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
FontSize="14"
|
|
||||||
TextAlignment="Center"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
Width="Auto"
|
|
||||||
Foreground="{StaticResource Icarus_Gray}"
|
|
||||||
Panel.ZIndex="0"/>
|
|
||||||
<Button x:Name="MinimizeButton"
|
|
||||||
Grid.Column="4"
|
|
||||||
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
||||||
Style="{StaticResource TitleBar_Button}">
|
|
||||||
<Image Source="\Resources\Common\Minimize.png"/>
|
|
||||||
</Button>
|
|
||||||
<Button x:Name="MaximizeButton"
|
|
||||||
Grid.Column="5"
|
|
||||||
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
||||||
Style="{StaticResource TitleBar_Button}">
|
|
||||||
<Image Source="\Resources\Common\Maximize.png"/>
|
|
||||||
</Button>
|
|
||||||
<Button x:Name="RestoreButton"
|
|
||||||
Grid.Column="5"
|
|
||||||
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
||||||
Style="{StaticResource TitleBar_Button}"
|
|
||||||
Visibility="Collapsed">
|
|
||||||
<Image Source="\Resources\Common\Restore.png"/>
|
|
||||||
</Button>
|
|
||||||
<Button x:Name="CloseButton"
|
|
||||||
Grid.Column="6"
|
|
||||||
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
||||||
Command="{TemplateBinding CloseCommand}"
|
|
||||||
Style="{StaticResource TitleBar_Button}">
|
|
||||||
<Image Source="\Resources\Common\Close.png"/>
|
|
||||||
</Button>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid x:Name="PART_MainContentGrid"
|
<Grid x:Name="PART_MainContentGrid"
|
||||||
Grid.Row="1"
|
Grid.Row="1"
|
||||||
@@ -4319,9 +4329,6 @@
|
|||||||
Height="{StaticResource WindowBorder_Height}"
|
Height="{StaticResource WindowBorder_Height}"
|
||||||
x:Name="topLeft" />
|
x:Name="topLeft" />
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid Panel.ZIndex="20">
|
|
||||||
<ContentPresenter Content="{TemplateBinding HelpPanel}"/>
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
</Grid>
|
||||||
<ControlTemplate.Triggers>
|
<ControlTemplate.Triggers>
|
||||||
<Trigger Property="WindowState" Value="Maximized">
|
<Trigger Property="WindowState" Value="Maximized">
|
||||||
@@ -4434,150 +4441,6 @@
|
|||||||
</Setter>
|
</Setter>
|
||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
<Style x:Key="Help_Window" TargetType="{x:Type EgtWPFLib5:EgtMainWindow}">
|
|
||||||
<Setter Property="Background" Value="White"/>
|
|
||||||
<Setter Property="BorderBrush" Value="Black"/>
|
|
||||||
<Setter Property="MinHeight" Value="320"/>
|
|
||||||
<Setter Property="MinWidth" Value="480"/>
|
|
||||||
<Setter Property="RenderOptions.BitmapScalingMode" Value="HighQuality"/>
|
|
||||||
<Setter Property="Title" Value="{Binding Title}"/>
|
|
||||||
<Setter Property="Template">
|
|
||||||
<Setter.Value>
|
|
||||||
<ControlTemplate TargetType="{x:Type EgtWPFLib5:EgtMainWindow}">
|
|
||||||
<Grid Background="Transparent" x:Name="WindowRoot">
|
|
||||||
<Border x:Name="ResizeBorder"
|
|
||||||
BorderBrush="{StaticResource Icarus_Gray}"
|
|
||||||
BorderThickness="{StaticResource WindowBorder_Thickness}">
|
|
||||||
<Grid x:Name="LayoutRoot"
|
|
||||||
Background="{TemplateBinding Background}">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="{StaticResource TitleBarHeight}"/>
|
|
||||||
<RowDefinition Height="*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
|
|
||||||
<!--TitleBar-->
|
|
||||||
<Grid x:Name="PART_HeaderBar"
|
|
||||||
Background="White">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="*"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
|
|
||||||
<Button Command="{Binding AboutBoxCommand}"
|
|
||||||
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
||||||
Style="{StaticResource AboutBox_Button}">
|
|
||||||
<Image Source="{TemplateBinding Icon}"/>
|
|
||||||
</Button>
|
|
||||||
<Grid Grid.Column="1">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
<TextBlock x:Name="PART_MoveRectangle"
|
|
||||||
Text="{TemplateBinding Title}"
|
|
||||||
Grid.Column="2"
|
|
||||||
TextTrimming="CharacterEllipsis"
|
|
||||||
HorizontalAlignment="Stretch"
|
|
||||||
FontSize="14"
|
|
||||||
TextAlignment="Center"
|
|
||||||
VerticalAlignment="Center"
|
|
||||||
Width="Auto"
|
|
||||||
Foreground="{StaticResource Icarus_Gray}"
|
|
||||||
Panel.ZIndex="0"/>
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
<Grid x:Name="WindowControlsGrid"
|
|
||||||
Grid.Column="2"
|
|
||||||
Background="White">
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
<ColumnDefinition Width="Auto"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
|
|
||||||
<Button x:Name="CloseButton"
|
|
||||||
Grid.Column="2"
|
|
||||||
Width="{Binding ActualHeight, ElementName=PART_HeaderBar}"
|
|
||||||
Command="{TemplateBinding CloseCommand}"
|
|
||||||
Style="{StaticResource TitleBar_Button}">
|
|
||||||
<Image Source="\Resources\Common\Close.png"/>
|
|
||||||
</Button>
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
<Grid x:Name="PART_MainContentGrid"
|
|
||||||
Grid.Row="1"
|
|
||||||
Panel.ZIndex="10">
|
|
||||||
<ContentPresenter x:Name="PART_MainContentPresenter"/>
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
</Border>
|
|
||||||
<!-- Resize grid to be inserted here -->
|
|
||||||
<Grid x:Name="PART_ResizeGrid">
|
|
||||||
<Rectangle x:Name="top"
|
|
||||||
Height="{StaticResource WindowBorder_Height}"
|
|
||||||
VerticalAlignment="Top"
|
|
||||||
Fill="Transparent"
|
|
||||||
Stroke="{x:Null}"
|
|
||||||
Margin="5,0,5,0" />
|
|
||||||
<Rectangle x:Name="bottom"
|
|
||||||
Height="{StaticResource WindowBorder_Height}"
|
|
||||||
VerticalAlignment="Bottom"
|
|
||||||
Fill="Transparent"
|
|
||||||
Stroke="{x:Null}"
|
|
||||||
Margin="5,0,5,0" />
|
|
||||||
<Rectangle x:Name="left"
|
|
||||||
Width="{StaticResource WindowBorder_Height}"
|
|
||||||
HorizontalAlignment="Left"
|
|
||||||
Fill="Transparent"
|
|
||||||
Stroke="{x:Null}"
|
|
||||||
Margin="0,5,0,5"/>
|
|
||||||
<Rectangle x:Name="right"
|
|
||||||
Width="{StaticResource WindowBorder_Height}"
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
Fill="Transparent"
|
|
||||||
Stroke="{x:Null}"
|
|
||||||
Margin="0,5,0,5"/>
|
|
||||||
<Rectangle x:Name="bottomLeft"
|
|
||||||
Height="{StaticResource WindowBorder_Height}"
|
|
||||||
Width="{StaticResource WindowBorder_Height}"
|
|
||||||
HorizontalAlignment="Left"
|
|
||||||
VerticalAlignment="Bottom"
|
|
||||||
Fill="Transparent"
|
|
||||||
Stroke="{x:Null}"/>
|
|
||||||
<Rectangle x:Name="bottomRight"
|
|
||||||
Height="{StaticResource WindowBorder_Height}"
|
|
||||||
Width="{StaticResource WindowBorder_Height}"
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
VerticalAlignment="Bottom"
|
|
||||||
Fill="Transparent"
|
|
||||||
Stroke="{x:Null}"/>
|
|
||||||
<Rectangle x:Name="topRight"
|
|
||||||
Height="{StaticResource WindowBorder_Height}"
|
|
||||||
Width="{StaticResource WindowBorder_Height}"
|
|
||||||
HorizontalAlignment="Right"
|
|
||||||
VerticalAlignment="Top"
|
|
||||||
Fill="Transparent"
|
|
||||||
Stroke="{x:Null}"/>
|
|
||||||
<Rectangle
|
|
||||||
Stroke="{x:Null}"
|
|
||||||
Fill="Transparent"
|
|
||||||
HorizontalAlignment="Left"
|
|
||||||
Width="{StaticResource WindowBorder_Height}"
|
|
||||||
VerticalAlignment="Top"
|
|
||||||
Height="{StaticResource WindowBorder_Height}"
|
|
||||||
x:Name="topLeft" />
|
|
||||||
</Grid>
|
|
||||||
</Grid>
|
|
||||||
<ControlTemplate.Triggers>
|
|
||||||
<Trigger Property="WindowState" Value="Maximized">
|
|
||||||
<Setter TargetName="ResizeBorder" Property="BorderThickness" Value="0"/>
|
|
||||||
</Trigger>
|
|
||||||
</ControlTemplate.Triggers>
|
|
||||||
</ControlTemplate>
|
|
||||||
</Setter.Value>
|
|
||||||
</Setter>
|
|
||||||
</Style>
|
|
||||||
|
|
||||||
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
<!--EgtMainWindow-->
|
<!--EgtMainWindow-->
|
||||||
@@ -4838,17 +4701,6 @@
|
|||||||
</Style>
|
</Style>
|
||||||
|
|
||||||
-->
|
-->
|
||||||
|
|
||||||
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
|
||||||
|
|
||||||
<!-- Help -->
|
|
||||||
|
|
||||||
<Style x:Key="TopBar_HelpButton" TargetType="{x:Type Grid}">
|
|
||||||
<Setter Property="Height" Value="30"/>
|
|
||||||
<Setter Property="Width" Value="30"/>
|
|
||||||
</Style>
|
|
||||||
|
|
||||||
|
|
||||||
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
<!-- ______________________________________________________________________________________________________________________________________________ -->
|
||||||
|
|
||||||
</ResourceDictionary>
|
</ResourceDictionary>
|
||||||
|
|||||||
@@ -0,0 +1,205 @@
|
|||||||
|
Imports EgtUILib.EgtInterface
|
||||||
|
Imports EgtWPFLib5
|
||||||
|
|
||||||
|
Public Class JsonMain
|
||||||
|
|
||||||
|
Private m_StrandW As Double
|
||||||
|
Public ReadOnly Property StrandW As Double
|
||||||
|
Get
|
||||||
|
Return m_StrandW
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_StrandH As Double
|
||||||
|
Public ReadOnly Property StrandH As Double
|
||||||
|
Get
|
||||||
|
Return m_StrandH
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_BoxX As Double
|
||||||
|
Public ReadOnly Property BoxX As Double
|
||||||
|
Get
|
||||||
|
Return m_BoxX
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_BoxY As Double
|
||||||
|
Public ReadOnly Property BoxY As Double
|
||||||
|
Get
|
||||||
|
Return m_BoxY
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_BoxZ As Double
|
||||||
|
Public ReadOnly Property BoxZ As Double
|
||||||
|
Get
|
||||||
|
Return m_BoxZ
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_dTime As Double
|
||||||
|
Public ReadOnly Property dTime As Double
|
||||||
|
Get
|
||||||
|
Return m_dTime
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_dMass As Double = 0
|
||||||
|
Public ReadOnly Property dMass As Double
|
||||||
|
Get
|
||||||
|
Return m_dMass
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_LayerQty As Double
|
||||||
|
Public ReadOnly Property LayerQty As Double
|
||||||
|
Get
|
||||||
|
Return m_LayerQty
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_MaterialName As String
|
||||||
|
Public ReadOnly Property MaterialName As String
|
||||||
|
Get
|
||||||
|
Return m_MaterialName
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_JsonLayerList As New List(Of JsonLayer)
|
||||||
|
Public ReadOnly Property JsonLayerList As List(Of JsonLayer)
|
||||||
|
Get
|
||||||
|
Return m_JsonLayerList
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Sub New(dTime As Double, dMass As Double)
|
||||||
|
For Each Layer In Map.refTFSEditorVM.LayerList
|
||||||
|
m_JsonLayerList.Add(Layer.ConvertToJsonLayer())
|
||||||
|
Next
|
||||||
|
m_MaterialName = Map.refTopPanelVM.SelMaterial.sName
|
||||||
|
Dim GeneralCathegory As MachiningCathegory = Map.refCurrMachiningPanelVM.CurrMachining.CathegoryList.FirstOrDefault(Function(x) x.Type = MachiningCathegory.Cathegories.GENERAL)
|
||||||
|
If Not IsNothing(GeneralCathegory) Then
|
||||||
|
Dim StrandW As CurrNumericMachiningParam = GeneralCathegory.MachiningParamList.FirstOrDefault(Function(y) y.Type = MachiningParam.Params.STRANDW)
|
||||||
|
Dim StrandH As CurrNumericMachiningParam = GeneralCathegory.MachiningParamList.FirstOrDefault(Function(y) y.Type = MachiningParam.Params.STRANDH)
|
||||||
|
If Not IsNothing(StrandW) Then
|
||||||
|
m_StrandW = StrandW.dValue
|
||||||
|
End If
|
||||||
|
If Not IsNothing(StrandH) Then
|
||||||
|
m_StrandH = StrandH.dValue
|
||||||
|
End If
|
||||||
|
End If
|
||||||
|
m_dTime = dTime
|
||||||
|
m_dMass = dMass
|
||||||
|
If Not IsNothing(Map.refTopPanelVM.SelPart) Then
|
||||||
|
Dim b3Print As BBox3d = Map.refDispositionPanelVM.GetSolidForReferenceBBox(Map.refTopPanelVM.SelPart)
|
||||||
|
m_BoxX = b3Print.DimX
|
||||||
|
m_BoxY = b3Print.DimY
|
||||||
|
m_BoxZ = b3Print.DimZ
|
||||||
|
End If
|
||||||
|
m_LayerQty = Map.refSliderManagerVM.nLayerIndex_Maximum
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
|
|
||||||
|
Public Class JsonLayer
|
||||||
|
Private m_nIndex As Integer
|
||||||
|
Public ReadOnly Property Index As Integer
|
||||||
|
Get
|
||||||
|
Return m_nIndex
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_dLength As Double
|
||||||
|
Public ReadOnly Property Length As Double
|
||||||
|
Get
|
||||||
|
Return m_dLength
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_dTMin As Double
|
||||||
|
Public ReadOnly Property TMin As Double
|
||||||
|
Get
|
||||||
|
Return m_dTMin
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_dTTrg As Double
|
||||||
|
Public ReadOnly Property TTrg As Double
|
||||||
|
Get
|
||||||
|
Return m_dTTrg
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_dTMax As Double
|
||||||
|
Public ReadOnly Property TMax As Double
|
||||||
|
Get
|
||||||
|
Return m_dTMax
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_dTCurr As Double
|
||||||
|
Public ReadOnly Property TCurr As Double
|
||||||
|
Get
|
||||||
|
Return m_dTCurr
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_dTWait As Double
|
||||||
|
Public ReadOnly Property TWait As Double
|
||||||
|
Get
|
||||||
|
Return m_dTWait
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_dFMin As Double
|
||||||
|
Public ReadOnly Property FMin As Double
|
||||||
|
Get
|
||||||
|
Return m_dFMin
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_dFTrg As Double
|
||||||
|
Public ReadOnly Property FTrg As Double
|
||||||
|
Get
|
||||||
|
Return m_dFTrg
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_dFMax As Double
|
||||||
|
Public ReadOnly Property FMax As Double
|
||||||
|
Get
|
||||||
|
Return m_dFMax
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_dFCurr As Double
|
||||||
|
Public ReadOnly Property FCurr As Double
|
||||||
|
Get
|
||||||
|
Return m_dFCurr
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Private m_dSpeed As Double
|
||||||
|
Public ReadOnly Property Speed As Double
|
||||||
|
Get
|
||||||
|
Return m_dSpeed
|
||||||
|
End Get
|
||||||
|
End Property
|
||||||
|
|
||||||
|
Sub New(nIndex As Integer, dLength As Double, dTMin As Double, dTTrg As Double, dTMax As Double, dTCurr As Double, dTWait As Double, dFMin As Double, dFTrg As Double, dFMax As Double, dFCurr As Double, dSpeed As Double)
|
||||||
|
m_nIndex = nIndex
|
||||||
|
m_dLength = dLength
|
||||||
|
m_dTMin = dTMin
|
||||||
|
m_dTTrg = dTTrg
|
||||||
|
m_dTMax = dTMax
|
||||||
|
m_dTCurr = dTCurr
|
||||||
|
m_dTWait = dTWait
|
||||||
|
m_dFMin = dFMin
|
||||||
|
m_dFTrg = dFTrg
|
||||||
|
m_dFMax = dFMax
|
||||||
|
m_dFCurr = dFCurr
|
||||||
|
m_dSpeed = dSpeed
|
||||||
|
End Sub
|
||||||
|
|
||||||
|
End Class
|
||||||
@@ -115,4 +115,18 @@ Module LuaExec
|
|||||||
Return bOk
|
Return bOk
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Friend Function ExecPrepare3dmExport(ByRef nExportGeomId As Integer) As Boolean
|
||||||
|
Dim bOk As Boolean = True
|
||||||
|
EgtLuaCreateGlobTable("PRINT")
|
||||||
|
EgtLuaSetGlobStringVar("PRINT.BASEDIR", Map.refMainWindowVM.MainWindowM.s3dPrintingDir)
|
||||||
|
bOk = EgtLuaExecFile(Map.refMainWindowVM.MainWindowM.s3dPrintingDir & "\PrepareExport.lua")
|
||||||
|
If bOk Then
|
||||||
|
EgtLuaGetGlobIntVar("PRINT.EXPORTLAYER", nExportGeomId)
|
||||||
|
End If
|
||||||
|
' Cancello tavola globale
|
||||||
|
EgtLuaResetGlobVar("PRINT")
|
||||||
|
Return bOk
|
||||||
|
End Function
|
||||||
|
|
||||||
|
|
||||||
End Module
|
End Module
|
||||||
|
|||||||
@@ -35,8 +35,6 @@ Module Map
|
|||||||
Private m_refManagePartPanelVM As ManagePartPanelVM
|
Private m_refManagePartPanelVM As ManagePartPanelVM
|
||||||
Private m_refMachineViewPanelVM As MachineViewPanelVM
|
Private m_refMachineViewPanelVM As MachineViewPanelVM
|
||||||
Private m_refImportLoadingWndVM As ImportLoadingWndVM
|
Private m_refImportLoadingWndVM As ImportLoadingWndVM
|
||||||
Private m_refHelpPanelVM As HelpPanelVM
|
|
||||||
Private m_refHelpWndVM As HelpWndVM
|
|
||||||
|
|
||||||
#Region "Get"
|
#Region "Get"
|
||||||
|
|
||||||
@@ -249,18 +247,6 @@ Module Map
|
|||||||
End Get
|
End Get
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
Public ReadOnly Property refHelpPanelVM As HelpPanelVM
|
|
||||||
Get
|
|
||||||
Return m_refHelpPanelVM
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
Public ReadOnly Property refHelpWndVM As HelpWndVM
|
|
||||||
Get
|
|
||||||
Return m_refHelpWndVM
|
|
||||||
End Get
|
|
||||||
End Property
|
|
||||||
|
|
||||||
#End Region ' Get
|
#End Region ' Get
|
||||||
|
|
||||||
#Region "Set"
|
#Region "Set"
|
||||||
@@ -429,16 +415,6 @@ Module Map
|
|||||||
Return Not IsNothing(m_refImportLoadingWndVM)
|
Return Not IsNothing(m_refImportLoadingWndVM)
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Friend Function SetRefHelpPanelVM(HelpPanelVM As HelpPanelVM) As Boolean
|
|
||||||
m_refHelpPanelVM = HelpPanelVM
|
|
||||||
Return Not IsNothing(m_refHelpPanelVM)
|
|
||||||
End Function
|
|
||||||
|
|
||||||
Friend Function SetRefHelpWndVM(HelpWndVM As HelpWndVM) As Boolean
|
|
||||||
m_refHelpWndVM = HelpWndVM
|
|
||||||
Return Not IsNothing(m_refHelpWndVM)
|
|
||||||
End Function
|
|
||||||
|
|
||||||
#End Region ' Set
|
#End Region ' Set
|
||||||
|
|
||||||
#Region "Init"
|
#Region "Init"
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ Public Class ViewLayerManagerVM
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Sub New()
|
Sub New()
|
||||||
' Creo riferimento a questa classe in EgtCAM5Map
|
' Creo riferimento a questa classe in Map
|
||||||
Map.SetRefViewLayerManagerVM(Me)
|
Map.SetRefViewLayerManagerVM(Me)
|
||||||
m_LayerList = New ObservableCollection(Of ViewLayer)({New ViewLayer(ViewLayer.ViewLayerType.PRINT_SOLID, "Print", True),
|
m_LayerList = New ObservableCollection(Of ViewLayer)({New ViewLayer(ViewLayer.ViewLayerType.PRINT_SOLID, "Print", True),
|
||||||
New ViewLayer(ViewLayer.ViewLayerType.REFERENCE, "Origin Point", True),
|
New ViewLayer(ViewLayer.ViewLayerType.REFERENCE, "Origin Point", True),
|
||||||
@@ -150,8 +150,8 @@ Public Class ViewLayer
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Friend Sub UpdateVisibility(bIsVisible As Boolean)
|
Friend Sub UpdateVisibility(bIsVisible As Boolean)
|
||||||
' Disabilito segnalazione modificato
|
Dim DisableMgr As New DisableModifiedMgr
|
||||||
Dim DisableMgr As New DisableModifiedMgr ' se solidi
|
' se solidi
|
||||||
If m_Type = ViewLayerType.SOLID_SLICE Then
|
If m_Type = ViewLayerType.SOLID_SLICE Then
|
||||||
If Map.refSceneHostVM.MainController.GetStep() = 0 Then
|
If Map.refSceneHostVM.MainController.GetStep() = 0 Then
|
||||||
' aggiorno parametro di calcolo solidi sui pezzi
|
' aggiorno parametro di calcolo solidi sui pezzi
|
||||||
@@ -242,7 +242,6 @@ Public Class ViewLayer
|
|||||||
Next
|
Next
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
' Ripristino stato segnalazione modifica
|
|
||||||
DisableMgr.ReEnable()
|
DisableMgr.ReEnable()
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<packages>
|
<packages>
|
||||||
<package id="Ionic.Zip" version="1.9.1.8" targetFramework="net472" />
|
<package id="Ionic.Zip" version="1.9.1.8" targetFramework="net472" />
|
||||||
|
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net472" />
|
||||||
</packages>
|
</packages>
|
||||||
Reference in New Issue
Block a user