diff --git a/LuaLibs/BeamExec.lua b/LuaLibs/BeamExec.lua index 2db07d8..19c891d 100644 --- a/LuaLibs/BeamExec.lua +++ b/LuaLibs/BeamExec.lua @@ -753,7 +753,7 @@ local function GetFeatureInfoAndDependency( vProcSingleRot, Part) -- non si controlla la feature con se stessa o se feature disabilitata if i ~= j and ProcB.nFlg ~= 0 then -- verifico se il taglio può essere saltato perchè è nella stessa posizione del taglio di testa - if Proc.nPrc == 340 and ProcB.Topology.sFamily == 'Cut' and + if ID.IsHeadCut( Proc) and ProcB.Topology.sFamily == 'Cut' and AreSameVectorApprox( ProcB.Faces[1].vtN, X_AX()) and abs( ProcB.Faces[1].ptCenter:getX() - Part.b3Part:getMax():getX()) < 10 * GEO.EPS_SMALL then if not Proc.SlaveProcIndexes then Proc.SlaveProcIndexes = {} @@ -763,7 +763,7 @@ local function GetFeatureInfoAndDependency( vProcSingleRot, Part) ProcB.nFlg = 0 end -- verifico se il taglio può essere saltato perchè è nella stessa posizione del taglio di coda - if Proc.nPrc == 350 and ProcB.Topology.sFamily == 'Cut' and + if ID.IsTailCut( Proc) and ProcB.Topology.sFamily == 'Cut' and AreSameVectorApprox( ProcB.Faces[1].vtN, -X_AX()) and abs( ProcB.Faces[1].ptCenter:getX() - Part.b3Part:getMin():getX()) < 10 * GEO.EPS_SMALL then if not Proc.SlaveProcIndexes then Proc.SlaveProcIndexes = {} @@ -1370,7 +1370,7 @@ local function GetCombinationListFromMatrix( ProcessingsOnPart, PartInfo) -- ciclo su tutte le feature, ad eccezione dei tagli testa/coda che dipendono dal risultato delle altre -- tagli testa e coda vengono aggiunti sempre alla fine for nProc = 1, #ProcessingsOnPart.Rotation[1] do - if ProcessingsOnPart.Rotation[1][nProc].nPrc ~= 340 and ProcessingsOnPart.Rotation[1][nProc].nPrc ~= 350 then + if not ID.IsHeadCut( ProcessingsOnPart.Rotation[1][nProc]) and not ID.IsTailCut( ProcessingsOnPart.Rotation[1][nProc]) then -- Si controlla sempre la rotazione 1 perchè la dipendenza di una feature da un'altra non dipende dalla rotazione -- se feature disattivata perchè eseguita da master a lei associata dichiaro comunque eseguita if ProcessingsOnPart.Rotation[1][nProc].nFlg == 0 and ProcessingsOnPart.Rotation[1][nProc].nIndexMasterProc then @@ -1428,9 +1428,9 @@ local function GetCombinationListFromMatrix( ProcessingsOnPart, PartInfo) end end else - if ProcessingsOnPart.Rotation[1][nProc].nPrc == 340 then + if ID.IsHeadCut( ProcessingsOnPart.Rotation[1][nProc]) then SingleCombination.nIndexHeadCutInVProc = nProc - elseif ProcessingsOnPart.Rotation[1][nProc].nPrc == 350 then + elseif ID.IsTailCut( ProcessingsOnPart.Rotation[1][nProc]) then SingleCombination.nIndexTailCutInVProc = nProc end end diff --git a/Process.lua b/Process.lua index 79fad63..f13ecb2 100644 --- a/Process.lua +++ b/Process.lua @@ -7,7 +7,7 @@ -- Intestazioni require( 'EgtBase') _ENV = EgtProtectGlobal() -EgtEnableDebug( true) +EgtEnableDebug( false) -- Imposto direttorio libreria specializzata per Travi EgtAddToPackagePath( BEAM.BASEDIR .. '\\LuaLibs\\?.lua') diff --git a/Strategies/Standard/STR0011/STR0011.json b/Strategies/Standard/STR0011/STR0011.json index 91af72d..b1f90f9 100644 --- a/Strategies/Standard/STR0011/STR0011.json +++ b/Strategies/Standard/STR0011/STR0011.json @@ -2,5 +2,25 @@ "sStrategyId": "STR0011", "sStrategyName": "Hole with Drillbit", "ParameterList" : [ - ] + { + "sName": "dDiameterTolerance", + "sNameNge": "TOLERANCE", + "sValue": "0", + "sDescriptionShort": "Tolerance on Diameter", + "sDescriptionLong": "Tolerance on Diameter", + "sType": "d", + "sMessageId": " ", + "sMinUserLevel": "1" + }, + { + "sName": "dCanUseMillToDrill", + "sNameNge": "USEMILL", + "sValue": "false", + "sDescriptionShort": "Can use mil to drill", + "sDescriptionLong": "Can use mil to drill", + "sType": "b", + "sMessageId": " ", + "sMinUserLevel": "1" + } + ] } \ No newline at end of file