Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 'STP Orona
- Sub S_1006897D(ByVal NND As Integer)
- ACT_MOD = "1006897"
- CLAMP = 0
- L = INPUT_NUM(NND, "L", L, ACT_MOD)
- H = INPUT_NUM(NND, "H", H, ACT_MOD)
- SPS = INPUT_NUM(NND, "SPS", SPS, ACT_MOD) / 10
- M1 = INPUT_NUM(NND, "M1", M1, ACT_MOD)
- M2 = INPUT_NUM(NND, "M2", M2, ACT_MOD)
- M3 = INPUT_NUM(NND, "M3", M3, ACT_MOD)
- M4 = INPUT_NUM(NND, "M4", M4, ACT_MOD)
- M5 = INPUT_NUM(NND, "M5", M5, ACT_MOD)
- M6 = INPUT_NUM(NND, "M6", M6, ACT_MOD)
- M7 = INPUT_NUM(NND, "M7", M7, ACT_MOD)
- M8 = INPUT_NUM(NND, "M8", M8, ACT_MOD)
- M9 = INPUT_NUM(NND, "M9", M9, ACT_MOD)
- M10 = INPUT_NUM(NND, "M10", M10, ACT_MOD)
- M11 = INPUT_NUM(NND, "M11", M11, ACT_MOD)
- M12 = INPUT_NUM(NND, "M12", M12, ACT_MOD)
- DF = INPUT_NUM(NND, "DF", DF, ACT_MOD)
- sf = INPUT_NUM(NND, "SF", sf, ACT_MOD)
- SB = INPUT_NUM(NND, "SB", SB, ACT_MOD)
- LH = INPUT_NUM(NND, "LH", LH, ACT_MOD)
- CD_SP = INPUT_NUM(NND, "SPC.", CD_SP, ACT_MOD)
- VV = INPUT_STR(NND, "VER.", VV, ACT_MOD)
- BNB = INPUT_NUM(NND, "BNB", BNB, ACT_MOD)
- ODP = INFO_DAT(NND, 0, 5)
- OFSS = 0 '0.5
- If Val(LH) = 0 Then
- SP = M1 + 50
- LH = H - SP
- End If
- If VV = "1" Or VV = "3" Or VV = "5" Or VV = "7" Then 'PINZE
- If CD_SP = 0 Then
- If SP = 90 And LH = 2000 Then
- 'CLAMP = 1
- End If
- End If
- End If
- VV = Replace(VV, "H", "")
- If VV > 8 Then MsgBox "ERRORE VERSIONE SU " & ACT_MOD, vbCritical
- SCS = 6
- sf = 1 * sf '+ 1 * SB
- If sf = 0 Then
- sf = 1 * SB
- MsgBox "ERRORE DATI SB-SF IN " & ACT_MOD
- End If
- Select Case VV
- Case 2, 4, 6, 8
- '*******************************************SPACCO
- If CD_SP <> "" And CD_SP <> "0" Then
- R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 2, sf, 0) 'MODIFICATO DA 25 A 15mm
- If DF >= 40 Then M5 = DF - 25 Else M5 = 0
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R02 = T_CIRC(H - M11, L - 5.2, 5.5) & T_CIRC(H - M11 - 375.5, L - 5.2, 5.5)
- R02 = R02 & T_CIRC(H - M12, L - 5.2, 5.5) & T_CIRC(H - M12 - 275.5, L - 5.2, 5.5)
- R02 = R02 & T_SLOT(H - M11, 24.1, 8, 5, 90) & T_SLOT(H - M11, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M11 - 375.5, 24.1, 8, 5, 90) & T_SLOT(H - M11 - 375.5, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M12, 24.1, 8, 5, 90) & T_SLOT(H - M12, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M12 - 275.5, 24.1, 8, 5, 90) & T_SLOT(H - M12 - 275.5, 24.1 + M5, 8, 5, 90)
- Else
- R02 = T_CIRC(QCSP + 187.75, L - 5.2, 5.5)
- R02 = R02 & T_CIRC(QCSP - 187.75, L - 5.2, 5.5)
- R02 = R02 & T_SLOT(QCSP + 187.75, 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP + 187.75, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, 24.1 + M5, 8, 5, 90)
- End If
- If M3 = 0 Then
- MsgBox "M3=0"
- Select Case LH
- Case 1900
- If H - QCSP < 1030 Then M3 = H - QCSP - 530
- If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
- Case 1950
- If H - QCSP < 1055 Then M3 = H - QCSP - 530
- If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
- Case 2000
- If H - QCSP < 1080 Then M3 = H - QCSP - 530
- If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
- Case 2050
- If H - QCSP < 1105 Then M3 = H - QCSP - 530
- If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
- Case 2100
- If H - QCSP < 1130 Then M3 = H - QCSP - 530
- If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
- Case Else
- MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
- End Select
- End If
- Else
- R01 = ""
- R02 = ""
- End If
- '*******************************************************
- R03 = T_RECT1(-SCS, M2, L - 26.6, L + SCS)
- R03 = R03 & T_RECT1(-SCS, M2, -SCS, 16.6)
- R03 = R03 & T_RECT1(H - 70, H + SCS, -SCS, 16.6)
- R03 = R03 & T_RECT1(H - 345, H - 290, 12.5, 17.5)
- R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), 12.5, 17.5)
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R03 = R03 & T_RECT1(H - (345 + M3 + M10), H - (290 + M3 + M10), 12.5, 17.5)
- Else
- R03 = R03 & T_RECT1(H - (345 + 2 * M3), H - (290 + 2 * M3), 12.5, 17.5)
- End If
- R03 = R03 & T_RECT1(M2 + 20, M2 + 75, 12.5, 17.5)
- R03 = R03 & T_SLOT(H - 25, DF - 18 + 15 - 2.4, 8, 5, 90)
- R03 = R03 & T_SLOT(H - 55, DF - 18 + 15 - 2.4, 8, 5, 90)
- R03 = R03 & T_CIRC(20, DF / 2 + 15 - 2.4, 7.2)
- R03 = R03 & T_CIRC(20 + M1, DF / 2 + 15 - 2.4, 7.2)
- R03 = R03 & T_CIRC(20, L - (DF / 2 + 25 - 2.4), 7.2)
- R03 = R03 & T_CIRC(20 + M1, L - (DF / 2 + 25 - 2.4), 7.2)
- R03 = R03 & T_SLOT(H - 25, L - 9.5, 8, 5, 90)
- R03 = R03 & T_SLOT(H - 55, L - 9.5, 8, 5, 90)
- R03 = R03 & T_CIRC(H - 283, L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34), L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + M3), L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + M3), L - 10, 8.5)
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R03 = R03 & T_CIRC(H - (283 + M3 + M10), L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + M3 + M10), L - 10, 8.5)
- Else
- R03 = R03 & T_CIRC(H - (283 + 2 * M3), L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + 2 * M3), L - 10, 8.5)
- End If
- R03 = R03 & T_CIRC(M2 + 82, L - 10, 8.5)
- R03 = R03 & T_CIRC(M2 + 82 - 34, L - 10, 8.5)
- If M6 > 0 Then R04 = T_CIRC(H - 1500, 15 + M6 - 2.4, 22) Else R04 = ""
- 'SMUSSI
- R05 = T_RAD(0 - OFSS, 15 + 4 - 2.4 - OFSS, 3)
- R05 = R05 & T_RAD(M2 - OFSS, 0 - OFSS, 3)
- R05 = R05 & T_RAD(0 - OFSS, L - (25 + 4 - 2.4) + OFSS, 2)
- R05 = R05 & T_RAD(M2 - OFSS, L + OFSS, 2)
- R05 = R05 & T_RAD(H - 70 + OFSS, 0 - OFSS, 4)
- R05 = R05 & T_RAD(H + OFSS, 15 + 4 - 2.4 - OFSS, 4)
- R05 = R05 & T_RAD(H + OFSS, L + OFSS, 1)
- 'Print #NF, T_BLQ(H - 1000 - 5.65, L, H - 1000, L - 5.65, 1, 0)
- 'Print #NF, T_BLQ(H - 1000, L - 5.65, H - 1000 + 5.65, L, 0, 1)
- R06 = T_SMUS(H - 1000, L + 0.2)
- 'Print #NF, T_CIRC(H - 1000, L, 3.3)
- R11 = T_DATAMATRIX(ODP, H - 283 + 10, 15 + 2.5, "O")
- R12 = ""
- If M7 > 0 Then
- R12 = T_HEX(H - M7, 15 + 28.5 - 2.4, 11) & T_HEX(H - M7 - 859, 15 + 28.5 - 2.4, 11) & T_HEX(H - M7 - 859 - 398, 15 + 28.5 - 2.4, 11)
- End If
- If M8 > 0 Then
- R12 = R12 & T_HEX(H - M8 - 1257, 15 + 28.5 - 2.4, 11) & T_HEX(H - M8, 15 + 28.5 - 2.4, 11)
- End If
- If M9 > 0 Then
- R12 = R12 & T_HEX(H - M9, 15 + 28.5 - 2.4, 11)
- End If
- Case 1, 3, 5, 7
- '*******************************************SPACCO
- If CD_SP <> "" And CD_SP <> "0" Then
- R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 1, sf, 0)
- If DF >= 40 Then M5 = DF - 25 Else M5 = 0
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R02 = T_CIRC(H - M11, 5.2, 5.5) & T_CIRC(H - M11 - 375.5, 5.2, 5.5)
- R02 = R02 & T_CIRC(H - M12, 5.2, 5.5) & T_CIRC(H - M12 - 275.5, 5.2, 5.5)
- R02 = R02 & T_SLOT(H - M11, L - 24.1, 8, 5, 90) & T_SLOT(H - M11, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M11 - 375.5, L - 24.1, 8, 5, 90) & T_SLOT(H - M11 - 375.5, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M12, L - 24.1, 8, 5, 90) & T_SLOT(H - M12, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M12 - 275.5, L - 24.1, 8, 5, 90) & T_SLOT(H - M12 - 275.5, L - 24.1 - M5, 8, 5, 90)
- Else
- R02 = T_CIRC(QCSP + 187.75, 5.2, 5.5)
- R02 = R02 & T_CIRC(QCSP - 187.75, 5.2, 5.5)
- R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1 - M5, 8, 5, 90)
- End If
- If M3 = 0 Then
- Select Case LH
- Case 1900
- If H - QCSP < 1030 Then M3 = H - QCSP - 530
- If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
- Case 1950
- If H - QCSP < 1055 Then M3 = H - QCSP - 530
- If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
- Case 2000
- If H - QCSP < 1080 Then M3 = H - QCSP - 530
- If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
- Case 2050
- If H - QCSP < 1105 Then M3 = H - QCSP - 530
- If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
- Case 2100
- If H - QCSP < 1130 Then M3 = H - QCSP - 530
- If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
- Case Else
- MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
- End Select
- End If
- Else
- R01 = ""
- R02 = ""
- End If
- '************************************************
- R03 = R03 & T_RECT1(-SCS, M2, -SCS, 26.6)
- R03 = R03 & T_RECT1(-SCS, M2, L - 16.6, L + SCS)
- R03 = R03 & T_RECT1(H - 70, H + SCS, L - 16.6, L + SCS)
- R03 = R03 & T_RECT1(H - 345, H - 290, L - 17.5, L - 12.5)
- R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), L - 17.5, L - 12.5)
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R03 = R03 & T_RECT1(H - (345 + M3 + M10), H - (290 + M3 + M10), L - 17.5, L - 12.5)
- Else
- R03 = R03 & T_RECT1(H - (345 + 2 * M3), H - (290 + 2 * M3), L - 17.5, L - 12.5)
- End If
- R03 = R03 & T_RECT1(M2 + 20, M2 + 75, L - 17.5, L - 12.5)
- R03 = R03 & T_SLOT(H - 25, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
- R03 = R03 & T_SLOT(H - 55, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
- R03 = R03 & T_CIRC(20, L - (DF / 2 + 15 - 2.4), 7.2)
- R03 = R03 & T_CIRC(20 + M1, L - (DF / 2 + 15 - 2.4), 7.2)
- R03 = R03 & T_CIRC(20, DF / 2 + 25 - 2.4, 7.2)
- R03 = R03 & T_CIRC(20 + M1, DF / 2 + 25 - 2.4, 7.2)
- R03 = R03 & T_SLOT(H - 25, 9.5, 8, 5, 90)
- R03 = R03 & T_SLOT(H - 55, 9.5, 8, 5, 90)
- R03 = R03 & T_CIRC(H - 283, 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34), 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + M3), 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + M3), 10, 8.5)
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R03 = R03 & T_CIRC(H - (283 + M3 + M10), 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + M3 + M10), 10, 8.5)
- Else
- R03 = R03 & T_CIRC(H - (283 + 2 * M3), 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + 2 * M3), 10, 8.5)
- End If
- R03 = R03 & T_CIRC(M2 + 82, 10, 8.5)
- R03 = R03 & T_CIRC(M2 + 82 - 34, 10, 8.5)
- If M6 > 0 Then R04 = T_CIRC(H - 1500, L - (15 + M6 - 2.4), 22) Else R04 = ""
- 'SMUSSI
- R05 = T_RAD(0 - OFSS, L - (15 + 4 - 2.4) + OFSS, 2)
- R05 = R05 & T_RAD(M2 - OFSS, L + OFSS, 2)
- R05 = R05 & T_RAD(0 - OFSS, 25 + 4 - 2.4 - OFSS, 3)
- R05 = R05 & T_RAD(M2 - OFSS, 0 - OFSS, 3)
- R05 = R05 & T_RAD(H - 70 + OFSS, L + OFSS, 1)
- R05 = R05 & T_RAD(H + OFSS, L - (15 + 4 - 2.4) + OFSS, 1)
- R05 = R05 & T_RAD(H + OFSS, 0 - OFSS, 4)
- 'Print #NF, T_BLQ(H - 1000, 5.65, H - 1000 - 5.65, 0, 0, 1)
- 'Print #NF, T_BLQ(H - 1000 + 5.65, 0, H - 1000, 5.65, 1, 0)
- R06 = T_SMUS(H - 1000, -0.2)
- 'Print #NF, T_CIRC(H - 1000, 0, 3.3)
- R11 = T_DATAMATRIX(ODP, H - 283 + 10, L - 15 - 2.5 - 20, "O")
- R12 = ""
- If M7 > 0 Then
- R12 = T_HEX(H - M7, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M7 - 859, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M7 - 859 - 398, L - (15 + 28.5 - 2.4), 11)
- End If
- If M8 > 0 Then
- R12 = R12 & T_HEX(H - M8 - 1257, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M8, L - (15 + 28.5 - 2.4), 11)
- End If
- If M9 > 0 Then
- R12 = R12 & T_HEX(H - M9, L - (15 + 28.5 - 2.4), 11)
- End If
- Case Else
- MsgBox "ERRORE VALORE VV " & ACT_MOD, vbCritical
- End Select
- fn = R01 & R02 & R03 & R04 & R05 & R06 & R11 & R12
- P1 = 250
- P2 = H - 400
- MVAL = 500
- STRINGA = R000(NHD, NND, SPS, H, L, P1, P2, MVAL) & fn
- Call SAVE_SUB(NND, STRINGA)
- POSINTAB = def_posintab(NND)
- Call CUT_END_S(H, L, "0", POSINTAB)
- Call FVTPT(3, NND, "")
- Call CUT_END_S(H, L, "B", POSINTAB)
- Call FVTPT(3, NND, "B")
- Call CUT_END_S(H, L, "C", POSINTAB)
- Call FVTPT(3, NND, "C")
- End Sub
- Sub S_1006897E(ByVal NND As Integer)
- ACT_MOD = "1006897"
- CLAMP = 0
- L = INPUT_NUM(NND, "L", L, ACT_MOD)
- H = INPUT_NUM(NND, "H", H, ACT_MOD)
- SPS = INPUT_NUM(NND, "SPS", SPS, ACT_MOD) / 10
- M1 = INPUT_NUM(NND, "M1", M1, ACT_MOD)
- M2 = INPUT_NUM(NND, "M2", M2, ACT_MOD)
- M3 = INPUT_NUM(NND, "M3", M3, ACT_MOD)
- M4 = INPUT_NUM(NND, "M4", M4, ACT_MOD)
- M5 = INPUT_NUM(NND, "M5", M5, ACT_MOD)
- M6 = INPUT_NUM(NND, "M6", M6, ACT_MOD)
- M7 = INPUT_NUM(NND, "M7", M7, ACT_MOD)
- M8 = INPUT_NUM(NND, "M8", M8, ACT_MOD)
- M9 = INPUT_NUM(NND, "M9", M9, ACT_MOD)
- M10 = INPUT_NUM(NND, "M10", M10, ACT_MOD)
- M11 = INPUT_NUM(NND, "M11", M11, ACT_MOD)
- M12 = INPUT_NUM(NND, "M12", M12, ACT_MOD)
- M13 = INPUT_NUM(NND, "M13", M13, ACT_MOD)
- M14 = INPUT_NUM(NND, "M14", M14, ACT_MOD)
- DF = INPUT_NUM(NND, "DF", DF, ACT_MOD)
- sf = INPUT_NUM(NND, "SF", sf, ACT_MOD)
- SB = INPUT_NUM(NND, "SB", SB, ACT_MOD)
- LH = INPUT_NUM(NND, "LH", LH, ACT_MOD)
- CD_SP = INPUT_NUM(NND, "SPC.", CD_SP, ACT_MOD)
- VV = INPUT_STR(NND, "VER.", VV, ACT_MOD)
- BNB = INPUT_NUM(NND, "BNB", BNB, ACT_MOD)
- ODP = INFO_DAT(NND, 0, 5)
- OFSS = 0 '0.5
- If Val(LH) = 0 Then
- SP = M1 + 50
- LH = H - SP
- End If
- If VV = "1" Or VV = "3" Or VV = "5" Or VV = "7" Then 'PINZE
- If CD_SP = 0 Then
- If SP = 90 And LH = 2000 Then
- 'CLAMP = 1
- End If
- End If
- End If
- VV = Replace(VV, "H", "")
- If VV > 8 Then MsgBox "ERRORE VERSIONE SU " & ACT_MOD, vbCritical
- SCS = 6
- sf = 1 * sf '+ 1 * SB
- If sf = 0 Then
- sf = 1 * SB
- MsgBox "ERRORE DATI SB-SF IN " & ACT_MOD
- End If
- Select Case VV
- Case 2, 4, 6, 8
- '*******************************************SPACCO
- If CD_SP <> "" And CD_SP <> "0" Then
- R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 2, sf, 0) 'MODIFICATO DA 25 A 15mm
- If DF >= 40 Then M5 = DF - 25 Else M5 = 0
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50948" Or CD_SP = "50950" Then
- R02 = T_CIRC(H - M11, L - 5.2, 5.5) & T_CIRC(H - M11 - 375.5, L - 5.2, 5.5)
- R02 = R02 & T_CIRC(H - M12, L - 5.2, 5.5) & T_CIRC(H - M12 - 275.5, L - 5.2, 5.5)
- R02 = R02 & T_SLOT(H - M11, 24.1, 8, 5, 90) & T_SLOT(H - M11, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M11 - 375.5, 24.1, 8, 5, 90) & T_SLOT(H - M11 - 375.5, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M12, 24.1, 8, 5, 90) & T_SLOT(H - M12, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M12 - 275.5, 24.1, 8, 5, 90) & T_SLOT(H - M12 - 275.5, 24.1 + M5, 8, 5, 90)
- Else
- R02 = T_CIRC(QCSP + 187.75, L - 5.2, 5.5)
- R02 = R02 & T_CIRC(QCSP - 187.75, L - 5.2, 5.5)
- R02 = R02 & T_SLOT(QCSP + 187.75, 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP + 187.75, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, 24.1 + M5, 8, 5, 90)
- End If
- If M3 = 0 Then
- MsgBox "M3=0"
- Select Case LH
- Case 1900
- If H - QCSP < 1030 Then M3 = H - QCSP - 530
- If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
- Case 1950
- If H - QCSP < 1055 Then M3 = H - QCSP - 530
- If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
- Case 2000
- If H - QCSP < 1080 Then M3 = H - QCSP - 530
- If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
- Case 2050
- If H - QCSP < 1105 Then M3 = H - QCSP - 530
- If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
- Case 2100
- If H - QCSP < 1130 Then M3 = H - QCSP - 530
- If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
- Case Else
- MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
- End Select
- End If
- Else
- R01 = ""
- R02 = ""
- End If
- '*******************************************************
- R03 = T_RECT1(-SCS, M2, L - 26.6, L + SCS)
- R03 = R03 & T_RECT1(-SCS, M2, -SCS, 16.6)
- R03 = R03 & T_RECT1(H - 70, H + SCS, -SCS, 16.6)
- R03 = R03 & T_RECT1(H - 345, H - 290, 12.5, 17.5)
- R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), 12.5, 17.5)
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R03 = R03 & T_RECT1(H - (345 + M3 + M10), H - (290 + M3 + M10), 12.5, 17.5)
- Else
- R03 = R03 & T_RECT1(H - (345 + 2 * M3), H - (290 + 2 * M3), 12.5, 17.5)
- End If
- R03 = R03 & T_RECT1(M2 + 20, M2 + 75, 12.5, 17.5)
- R03 = R03 & T_SLOT(H - 25, DF - 18 + 15 - 2.4, 8, 5, 90)
- R03 = R03 & T_SLOT(H - 55, DF - 18 + 15 - 2.4, 8, 5, 90)
- R03 = R03 & T_CIRC(M13, DF / 2 + 15 - 2.4, 7.2)
- R03 = R03 & T_CIRC(M13 + M1, DF / 2 + 15 - 2.4, 7.2)
- R03 = R03 & T_CIRC(M13, L - (DF / 2 + 25 - 2.4), 7.2)
- R03 = R03 & T_CIRC(M13 + M1, L - (DF / 2 + 25 - 2.4), 7.2)
- If M14 > 0 Then
- R03 = R03 & T_CIRC(M13 + M1 / 2, L - (DF / 2 + 25 - 2.4), 20.2)
- End If
- R03 = R03 & T_SLOT(H - 25, L - 9.5, 8, 5, 90)
- R03 = R03 & T_SLOT(H - 55, L - 9.5, 8, 5, 90)
- R03 = R03 & T_CIRC(H - 283, L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34), L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + M3), L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + M3), L - 10, 8.5)
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R03 = R03 & T_CIRC(H - (283 + M3 + M10), L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + M3 + M10), L - 10, 8.5)
- Else
- R03 = R03 & T_CIRC(H - (283 + 2 * M3), L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + 2 * M3), L - 10, 8.5)
- End If
- R03 = R03 & T_CIRC(M2 + 82, L - 10, 8.5)
- R03 = R03 & T_CIRC(M2 + 82 - 34, L - 10, 8.5)
- If M6 > 0 Then R04 = T_CIRC(H - 1500, 15 + M6 - 2.4, 22) Else R04 = ""
- 'SMUSSI
- R05 = T_RAD(0 - OFSS, 15 + 4 - 2.4 - OFSS, 3)
- R05 = R05 & T_RAD(M2 - OFSS, 0 - OFSS, 3)
- R05 = R05 & T_RAD(0 - OFSS, L - (25 + 4 - 2.4) + OFSS, 2)
- R05 = R05 & T_RAD(M2 - OFSS, L + OFSS, 2)
- R05 = R05 & T_RAD(H - 70 + OFSS, 0 - OFSS, 4)
- R05 = R05 & T_RAD(H + OFSS, 15 + 4 - 2.4 - OFSS, 4)
- R05 = R05 & T_RAD(H + OFSS, L + OFSS, 1)
- 'Print #NF, T_BLQ(H - 1000 - 5.65, L, H - 1000, L - 5.65, 1, 0)
- 'Print #NF, T_BLQ(H - 1000, L - 5.65, H - 1000 + 5.65, L, 0, 1)
- R06 = T_SMUS(H - 1000, L + 0.2)
- 'Print #NF, T_CIRC(H - 1000, L, 3.3)
- R11 = T_DATAMATRIX(ODP, H - 100 - 40, 15 + 4, "O")
- R12 = ""
- If M7 > 0 Then
- R12 = T_HEX(H - M7, 15 + 28.5 - 2.4, 11) & T_HEX(H - M7 - 859, 15 + 28.5 - 2.4, 11) & T_HEX(H - M7 - 859 - 398, 15 + 28.5 - 2.4, 11)
- End If
- If M8 > 0 Then
- R12 = R12 & T_HEX(H - M8 - 1257, 15 + 28.5 - 2.4, 11) & T_HEX(H - M8, 15 + 28.5 - 2.4, 11)
- End If
- If M9 > 0 Then
- R12 = R12 & T_HEX(H - M9, 15 + 28.5 - 2.4, 11)
- End If
- Case 1, 3, 5, 7
- '*******************************************SPACCO
- If CD_SP <> "" And CD_SP <> "0" Then
- R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 1, sf, 0)
- If DF >= 40 Then M5 = DF - 25 Else M5 = 0
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R02 = T_CIRC(H - M11, 5.2, 5.5) & T_CIRC(H - M11 - 375.5, 5.2, 5.5)
- R02 = R02 & T_CIRC(H - M12, 5.2, 5.5) & T_CIRC(H - M12 - 275.5, 5.2, 5.5)
- R02 = R02 & T_SLOT(H - M11, L - 24.1, 8, 5, 90) & T_SLOT(H - M11, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M11 - 375.5, L - 24.1, 8, 5, 90) & T_SLOT(H - M11 - 375.5, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M12, L - 24.1, 8, 5, 90) & T_SLOT(H - M12, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M12 - 275.5, L - 24.1, 8, 5, 90) & T_SLOT(H - M12 - 275.5, L - 24.1 - M5, 8, 5, 90)
- Else
- R02 = T_CIRC(QCSP + 187.75, 5.2, 5.5)
- R02 = R02 & T_CIRC(QCSP - 187.75, 5.2, 5.5)
- R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1 - M5, 8, 5, 90)
- End If
- If M3 = 0 Then
- Select Case LH
- Case 1900
- If H - QCSP < 1030 Then M3 = H - QCSP - 530
- If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
- Case 1950
- If H - QCSP < 1055 Then M3 = H - QCSP - 530
- If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
- Case 2000
- If H - QCSP < 1080 Then M3 = H - QCSP - 530
- If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
- Case 2050
- If H - QCSP < 1105 Then M3 = H - QCSP - 530
- If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
- Case 2100
- If H - QCSP < 1130 Then M3 = H - QCSP - 530
- If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
- Case Else
- MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
- End Select
- End If
- Else
- R01 = ""
- R02 = ""
- End If
- '************************************************
- R03 = R03 & T_RECT1(-SCS, M2, -SCS, 26.6)
- R03 = R03 & T_RECT1(-SCS, M2, L - 16.6, L + SCS)
- R03 = R03 & T_RECT1(H - 70, H + SCS, L - 16.6, L + SCS)
- R03 = R03 & T_RECT1(H - 345, H - 290, L - 17.5, L - 12.5)
- R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), L - 17.5, L - 12.5)
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R03 = R03 & T_RECT1(H - (345 + M3 + M10), H - (290 + M3 + M10), L - 17.5, L - 12.5)
- Else
- R03 = R03 & T_RECT1(H - (345 + 2 * M3), H - (290 + 2 * M3), L - 17.5, L - 12.5)
- End If
- R03 = R03 & T_RECT1(M2 + 20, M2 + 75, L - 17.5, L - 12.5)
- R03 = R03 & T_SLOT(H - 25, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
- R03 = R03 & T_SLOT(H - 55, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
- 'R03 = R03 & T_CIRC(20, L - (DF / 2 + 15 - 2.4), 7.2)
- 'R03 = R03 & T_CIRC(20 + M1, L - (DF / 2 + 15 - 2.4), 7.2)
- 'R03 = R03 & T_CIRC(20, DF / 2 + 25 - 2.4, 7.2)
- 'R03 = R03 & T_CIRC(20 + M1, DF / 2 + 25 - 2.4, 7.2)
- R03 = R03 & T_CIRC(M13, L - (DF / 2 + 15 - 2.4), 7.2)
- R03 = R03 & T_CIRC(M13 + M1, L - (DF / 2 + 15 - 2.4), 7.2)
- R03 = R03 & T_CIRC(M13, DF / 2 + 25 - 2.4, 7.2)
- R03 = R03 & T_CIRC(M13 + M1, DF / 2 + 25 - 2.4, 7.2)
- If M14 > 0 Then
- R03 = R03 & T_CIRC(M13 + M1 / 2, L - (DF / 2 + 25 - 2.4), 20.2)
- End If
- R03 = R03 & T_SLOT(H - 25, 9.5, 8, 5, 90)
- R03 = R03 & T_SLOT(H - 55, 9.5, 8, 5, 90)
- R03 = R03 & T_CIRC(H - 283, 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34), 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + M3), 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + M3), 10, 8.5)
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R03 = R03 & T_CIRC(H - (283 + M3 + M10), 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + M3 + M10), 10, 8.5)
- Else
- R03 = R03 & T_CIRC(H - (283 + 2 * M3), 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + 2 * M3), 10, 8.5)
- End If
- R03 = R03 & T_CIRC(M2 + 82, 10, 8.5)
- R03 = R03 & T_CIRC(M2 + 82 - 34, 10, 8.5)
- If M6 > 0 Then R04 = T_CIRC(H - 1500, L - (15 + M6 - 2.4), 22) Else R04 = ""
- 'SMUSSI
- R05 = T_RAD(0 - OFSS, L - (15 + 4 - 2.4) + OFSS, 2)
- R05 = R05 & T_RAD(M2 - OFSS, L + OFSS, 2)
- R05 = R05 & T_RAD(0 - OFSS, 25 + 4 - 2.4 - OFSS, 3)
- R05 = R05 & T_RAD(M2 - OFSS, 0 - OFSS, 3)
- R05 = R05 & T_RAD(H - 70 + OFSS, L + OFSS, 1)
- R05 = R05 & T_RAD(H + OFSS, L - (15 + 4 - 2.4) + OFSS, 1)
- R05 = R05 & T_RAD(H + OFSS, 0 - OFSS, 4)
- 'Print #NF, T_BLQ(H - 1000, 5.65, H - 1000 - 5.65, 0, 0, 1)
- 'Print #NF, T_BLQ(H - 1000 + 5.65, 0, H - 1000, 5.65, 1, 0)
- R06 = T_SMUS(H - 1000, -0.2)
- 'Print #NF, T_CIRC(H - 1000, 0, 3.3)
- R11 = T_DATAMATRIX(ODP, H - 100 - 40, L - 15 - 4 - 17.5, "O")
- R12 = ""
- If M7 > 0 Then
- R12 = T_HEX(H - M7, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M7 - 859, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M7 - 859 - 398, L - (15 + 28.5 - 2.4), 11)
- End If
- If M8 > 0 Then
- R12 = R12 & T_HEX(H - M8 - 1257, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M8, L - (15 + 28.5 - 2.4), 11)
- End If
- If M9 > 0 Then
- R12 = R12 & T_HEX(H - M9, L - (15 + 28.5 - 2.4), 11)
- End If
- Case Else
- MsgBox "ERRORE VALORE VV " & ACT_MOD, vbCritical
- End Select
- fn = R01 & R02 & R03 & R04 & R05 & R06 & R11 & R12
- P1 = 250
- P2 = H - 400
- MVAL = 500
- STRINGA = R000(NHD, NND, SPS, H, L, P1, P2, MVAL) & fn
- Call SAVE_SUB(NND, STRINGA)
- POSINTAB = def_posintab(NND)
- Call CUT_END_S(H, L, "0", POSINTAB)
- Call FVTPT(3, NND, "")
- Call CUT_END_S(H, L, "B", POSINTAB)
- Call FVTPT(3, NND, "B")
- Call CUT_END_S(H, L, "C", POSINTAB)
- Call FVTPT(3, NND, "C")
- End Sub
- Sub S_1006897H(ByVal NND As Integer)
- ACT_MOD = "1006897"
- CLAMP = 0
- L = INPUT_NUM(NND, "L", L, ACT_MOD)
- H = INPUT_NUM(NND, "H", H, ACT_MOD)
- SPS = INPUT_NUM(NND, "SPS", SPS, ACT_MOD) / 10
- M1 = INPUT_NUM(NND, "M1", M1, ACT_MOD)
- M2 = INPUT_NUM(NND, "M2", M2, ACT_MOD)
- M3 = INPUT_NUM(NND, "M3", M3, ACT_MOD)
- M4 = INPUT_NUM(NND, "M4", M4, ACT_MOD)
- M5 = INPUT_NUM(NND, "M5", M5, ACT_MOD)
- M6 = INPUT_NUM(NND, "M6", M6, ACT_MOD)
- M7 = INPUT_NUM(NND, "M7", M7, ACT_MOD)
- M8 = INPUT_NUM(NND, "M8", M8, ACT_MOD)
- M9 = INPUT_NUM(NND, "M9", M9, ACT_MOD)
- M10 = INPUT_NUM(NND, "M10", M10, ACT_MOD)
- M11 = INPUT_NUM(NND, "M11", M11, ACT_MOD)
- M12 = INPUT_NUM(NND, "M12", M12, ACT_MOD)
- M13 = INPUT_NUM(NND, "M13", M13, ACT_MOD)
- M14 = INPUT_NUM(NND, "M14", M14, ACT_MOD)
- M15 = INPUT_NUM(NND, "M15", M15, ACT_MOD)
- M16 = INPUT_NUM(NND, "M16", M16, ACT_MOD)
- M17 = INPUT_NUM(NND, "M17", M17, ACT_MOD)
- M18 = INPUT_NUM(NND, "M18", M18, ACT_MOD)
- DF = INPUT_NUM(NND, "DF", DF, ACT_MOD)
- sf = INPUT_NUM(NND, "SF", sf, ACT_MOD)
- SB = INPUT_NUM(NND, "SB", SB, ACT_MOD)
- LH = INPUT_NUM(NND, "LH", LH, ACT_MOD)
- CD_SP = INPUT_NUM(NND, "SPC.", CD_SP, ACT_MOD)
- VV = INPUT_STR(NND, "VER.", VV, ACT_MOD)
- BNB = INPUT_NUM(NND, "BNB", BNB, ACT_MOD)
- ODP = INFO_DAT(NND, 0, 5)
- OFSS = 0 '0.5
- SPCOTIS = "_50948_50949_50974_50952_50953_51001_50956_50957_50960_51005_50964_50965_50968_51007_"
- If Val(LH) = 0 Then
- SP = M1 + 50
- LH = H - SP
- End If
- If VV = "1" Or VV = "3" Or VV = "5" Or VV = "7" Then 'PINZE
- If CD_SP = 0 Then
- If SP = 90 And LH = 2000 Then
- 'CLAMP = 1
- End If
- End If
- End If
- VV = Replace(VV, "H", "")
- If VV > 8 Then MsgBox "ERRORE VERSIONE SU " & ACT_MOD, vbCritical
- SCS = 6
- sf = 1 * sf '+ 1 * SB
- If sf = 0 Then
- sf = 1 * SB
- MsgBox "ERRORE DATI SB-SF IN " & ACT_MOD
- End If
- If VV = "1" Or VV = "2" Or VV = "5" Or VV = "6" Then
- M16 = 20
- M17 = 48
- End If
- Select Case VV
- Case 2, 4, 6, 8
- '*******************************************SPACCO
- If CD_SP <> "" And CD_SP <> "0" Then
- R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 2, sf, 0) 'MODIFICATO DA 25 A 15mm
- If DF >= 40 Then M5 = DF - 25 Else M5 = 0
- 'LISTA CODICI SPACCHI OTIS
- CD_SP_OTIS = "_50948_50949_50950_50951_50952_50953_50954_51004_50956_50957_50958_50959_50960_51005_50962_51006_50964_50965_50966_50967_50968_51007_50970_51008_50972_50973_50981_50982_50983_50991_50992_50984_50985_50986_50987_50988_50989_50990_50995_50996_50997_50998_50999_50974_50975_51000_51001_"
- If CD_SP = "50522" Or CD_SP = "50523" Or CD_SP = "50524" Or InStr(1, CD_SP_OTIS, CD_SP) > 0 Then
- If M15 > 0 And M11 > 0 Then
- R02 = T_CIRC(H - M11, L - 5.2, 5.5) & T_CIRC(H - M11 - M15, L - 5.2, 5.5)
- R02 = R02 & T_SLOT(H - M11, 24.1, 8, 5, 90) & T_SLOT(H - M11, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M11 - M15, 24.1, 8, 5, 90) & T_SLOT(H - M11 - M15, 24.1 + M5, 8, 5, 90)
- End If
- If M12 > 0 And M18 > 0 Then
- R02 = R02 & T_CIRC(H - M12, L - 5.2, 5.5) & T_CIRC(H - M12 - M18, L - 5.2, 5.5)
- R02 = R02 & T_SLOT(H - M12, 24.1, 8, 5, 90) & T_SLOT(H - M12, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M12 - M18, 24.1, 8, 5, 90) & T_SLOT(H - M12 - M18, 24.1 + M5, 8, 5, 90)
- End If
- Else
- R02 = T_CIRC(QCSP + 187.75, L - 5.2, 5.5)
- R02 = R02 & T_CIRC(QCSP - 187.75, L - 5.2, 5.5)
- R02 = R02 & T_SLOT(QCSP + 187.75, 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP + 187.75, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, 24.1 + M5, 8, 5, 90)
- End If
- If M3 = 0 Then
- MsgBox "M3=0"
- Select Case LH
- Case 1900
- If H - QCSP < 1030 Then M3 = H - QCSP - 530
- If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
- Case 1950
- If H - QCSP < 1055 Then M3 = H - QCSP - 530
- If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
- Case 2000
- If H - QCSP < 1080 Then M3 = H - QCSP - 530
- If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
- Case 2050
- If H - QCSP < 1105 Then M3 = H - QCSP - 530
- If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
- Case 2100
- If H - QCSP < 1130 Then M3 = H - QCSP - 530
- If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
- Case Else
- MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
- End Select
- End If
- Else
- R01 = ""
- R02 = ""
- End If
- '*******************************************************
- R03 = T_RECT1(-SCS, M2, L - 26.6, L + SCS)
- R03 = R03 & T_RECT1(-SCS, M2, -SCS, 16.6)
- R03 = R03 & T_RECT1(H - 70, H + SCS, -SCS, 16.6)
- R03 = R03 & T_RECT1(H - 345, H - 290, 12.5, 17.5)
- R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), 12.5, 17.5)
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R03 = R03 & T_RECT1(H - (345 + M3 + M10), H - (290 + M3 + M10), 12.5, 17.5)
- Else
- R03 = R03 & T_RECT1(H - (345 + 2 * M3), H - (290 + 2 * M3), 12.5, 17.5)
- End If
- R03 = R03 & T_RECT1(M2 + M16, M2 + 75, 12.5, 17.5)
- R03 = R03 & T_SLOT(H - 25, DF - 18 + 15 - 2.4, 8, 5, 90)
- R03 = R03 & T_SLOT(H - 55, DF - 18 + 15 - 2.4, 8, 5, 90)
- R03 = R03 & T_CIRC(M13, DF / 2 + 15 - 2.4, 7.2)
- R03 = R03 & T_CIRC(M13 + M1, DF / 2 + 15 - 2.4, 7.2)
- R03 = R03 & T_CIRC(M13, L - (DF / 2 + 25 - 2.4), 7.2)
- R03 = R03 & T_CIRC(M13 + M1, L - (DF / 2 + 25 - 2.4), 7.2)
- If M14 > 0 Then
- R03 = R03 & T_CIRC(M13 + M1 / 2, L - (DF / 2 + 25 - 2.4), 20.2)
- End If
- R03 = R03 & T_SLOT(H - 25, L - 9.5, 8, 5, 90)
- R03 = R03 & T_SLOT(H - 55, L - 9.5, 8, 5, 90)
- R03 = R03 & T_CIRC(H - 283, L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34), L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + M3), L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + M3), L - 10, 8.5)
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R03 = R03 & T_CIRC(H - (283 + M3 + M10), L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + M3 + M10), L - 10, 8.5)
- Else
- R03 = R03 & T_CIRC(H - (283 + 2 * M3), L - 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + 2 * M3), L - 10, 8.5)
- End If
- R03 = R03 & T_CIRC(M2 + M17 + 34, L - 10, 8.5)
- R03 = R03 & T_CIRC(M2 + M17 + 34 - 34, L - 10, 8.5)
- If M6 > 0 Then R04 = T_CIRC(H - 1500, 15 + M6 - 2.4, 22) Else R04 = ""
- 'SMUSSI
- R05 = T_RAD(0 - OFSS, 15 + 4 - 2.4 - OFSS, 3)
- R05 = R05 & T_RAD(M2 - OFSS, 0 - OFSS, 3)
- R05 = R05 & T_RAD(0 - OFSS, L - (25 + 4 - 2.4) + OFSS, 2)
- R05 = R05 & T_RAD(M2 - OFSS, L + OFSS, 2)
- R05 = R05 & T_RAD(H - 70 + OFSS, 0 - OFSS, 4)
- R05 = R05 & T_RAD(H + OFSS, 15 + 4 - 2.4 - OFSS, 4)
- R05 = R05 & T_RAD(H + OFSS, L + OFSS, 1)
- 'Print #NF, T_BLQ(H - 1000 - 5.65, L, H - 1000, L - 5.65, 1, 0)
- 'Print #NF, T_BLQ(H - 1000, L - 5.65, H - 1000 + 5.65, L, 0, 1)
- R06 = T_SMUS(H - 1000, L + 0.2)
- 'Print #NF, T_CIRC(H - 1000, L, 3.3)
- R11 = T_DATAMATRIX(ODP, H - 100 - 40, 15 + 4, "O")
- R12 = ""
- If M7 > 0 Then
- R12 = T_HEX(H - M7, 15 + 28.5 - 2.4, 11) & T_HEX(H - M7 - 859, 15 + 28.5 - 2.4, 11) & T_HEX(H - M7 - 859 - 398, 15 + 28.5 - 2.4, 11)
- End If
- If M8 > 0 Then
- R12 = R12 & T_HEX(H - M8 - 1257, 15 + 28.5 - 2.4, 11) & T_HEX(H - M8, 15 + 28.5 - 2.4, 11)
- End If
- If M9 > 0 Then
- R12 = R12 & T_HEX(H - M9, 15 + 28.5 - 2.4, 11)
- End If
- Case 1, 3, 5, 7
- '*******************************************SPACCO
- If CD_SP <> "" And CD_SP <> "0" Then
- R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 1, sf, 0)
- If DF >= 40 Then M5 = DF - 25 Else M5 = 0
- 'LISTA CODICI SPACCHI OTIS
- CD_SP_OTIS = "_50948_50949_50950_50951_50952_50953_50954_51004_50956_50957_50958_50959_50960_51005_50962_51006_50964_50965_50966_50967_50968_51007_50970_51008_50972_50973_50981_50982_50983_50991_50992_50984_50985_50986_50987_50988_50989_50990_50995_50996_50997_50998_50999_50974_50975_51000_51001_"
- If CD_SP = "50522" Or CD_SP = "50523" Or CD_SP = "50524" Or InStr(1, CD_SP_OTIS, CD_SP) > 0 Then
- If M15 > 0 And M11 > 0 Then
- R02 = T_CIRC(H - M11, 5.2, 5.5) & T_CIRC(H - M11 - M15, 5.2, 5.5)
- R02 = R02 & T_SLOT(H - M11, L - 24.1, 8, 5, 90) & T_SLOT(H - M11, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M11 - M15, L - 24.1, 8, 5, 90) & T_SLOT(H - M11 - M15, L - 24.1 - M5, 8, 5, 90)
- End If
- If M12 > 0 And M18 > 0 Then
- R02 = R02 & T_SLOT(H - M12, L - 24.1, 8, 5, 90) & T_SLOT(H - M12, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M12 - M18, L - 24.1, 8, 5, 90) & T_SLOT(H - M12 - M18, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_CIRC(H - M12, 5.2, 5.5) & T_CIRC(H - M12 - M18, 5.2, 5.5)
- End If
- Else
- R02 = T_CIRC(QCSP + 187.75, 5.2, 5.5)
- R02 = R02 & T_CIRC(QCSP - 187.75, 5.2, 5.5)
- R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1 - M5, 8, 5, 90)
- End If
- If M3 = 0 Then
- Select Case LH
- Case 1900
- If H - QCSP < 1030 Then M3 = H - QCSP - 530
- If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
- Case 1950
- If H - QCSP < 1055 Then M3 = H - QCSP - 530
- If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
- Case 2000
- If H - QCSP < 1080 Then M3 = H - QCSP - 530
- If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
- Case 2050
- If H - QCSP < 1105 Then M3 = H - QCSP - 530
- If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
- Case 2100
- If H - QCSP < 1130 Then M3 = H - QCSP - 530
- If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
- Case Else
- MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
- End Select
- End If
- Else
- R01 = ""
- R02 = ""
- End If
- '************************************************
- R03 = R03 & T_RECT1(-SCS, M2, -SCS, 26.6)
- R03 = R03 & T_RECT1(-SCS, M2, L - 16.6, L + SCS)
- R03 = R03 & T_RECT1(H - 70, H + SCS, L - 16.6, L + SCS)
- R03 = R03 & T_RECT1(H - 345, H - 290, L - 17.5, L - 12.5)
- R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), L - 17.5, L - 12.5)
- If CD_SP = "50522" Or CD_SP = "50523" Or CD_SP = "50524" Then
- R03 = R03 & T_RECT1(H - (345 + M3 + M10), H - (290 + M3 + M10), L - 17.5, L - 12.5)
- Else
- R03 = R03 & T_RECT1(H - (345 + 2 * M3), H - (290 + 2 * M3), L - 17.5, L - 12.5)
- End If
- R03 = R03 & T_RECT1(M2 + M16, M2 + 75, L - 17.5, L - 12.5)
- R03 = R03 & T_SLOT(H - 25, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
- R03 = R03 & T_SLOT(H - 55, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
- 'R03 = R03 & T_CIRC(20, L - (DF / 2 + 15 - 2.4), 7.2)
- 'R03 = R03 & T_CIRC(20 + M1, L - (DF / 2 + 15 - 2.4), 7.2)
- 'R03 = R03 & T_CIRC(20, DF / 2 + 25 - 2.4, 7.2)
- 'R03 = R03 & T_CIRC(20 + M1, DF / 2 + 25 - 2.4, 7.2)
- R03 = R03 & T_CIRC(M13, L - (DF / 2 + 15 - 2.4), 7.2)
- R03 = R03 & T_CIRC(M13 + M1, L - (DF / 2 + 15 - 2.4), 7.2)
- R03 = R03 & T_CIRC(M13, DF / 2 + 25 - 2.4, 7.2)
- R03 = R03 & T_CIRC(M13 + M1, DF / 2 + 25 - 2.4, 7.2)
- If M14 > 0 Then
- R03 = R03 & T_CIRC(M13 + M1 / 2, L - (DF / 2 + 25 - 2.4), 20.2)
- End If
- R03 = R03 & T_SLOT(H - 25, 9.5, 8, 5, 90)
- R03 = R03 & T_SLOT(H - 55, 9.5, 8, 5, 90)
- R03 = R03 & T_CIRC(H - 283, 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34), 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + M3), 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + M3), 10, 8.5)
- If CD_SP = "50522" Or CD_SP = "50523" Or CD_SP = "50524" Then
- R03 = R03 & T_CIRC(H - (283 + M3 + M10), 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + M3 + M10), 10, 8.5)
- Else
- R03 = R03 & T_CIRC(H - (283 + 2 * M3), 10, 8.5)
- R03 = R03 & T_CIRC(H - (283 + 34 + 2 * M3), 10, 8.5)
- End If
- R03 = R03 & T_CIRC(M2 + M17 + 34, 10, 8.5)
- R03 = R03 & T_CIRC(M2 + M17 + 34 - 34, 10, 8.5)
- If M6 > 0 Then R04 = T_CIRC(H - 1500, L - (15 + M6 - 2.4), 22) Else R04 = ""
- 'SMUSSI
- R05 = T_RAD(0 - OFSS, L - (15 + 4 - 2.4) + OFSS, 2)
- R05 = R05 & T_RAD(M2 - OFSS, L + OFSS, 2)
- R05 = R05 & T_RAD(0 - OFSS, 25 + 4 - 2.4 - OFSS, 3)
- R05 = R05 & T_RAD(M2 - OFSS, 0 - OFSS, 3)
- R05 = R05 & T_RAD(H - 70 + OFSS, L + OFSS, 1)
- R05 = R05 & T_RAD(H + OFSS, L - (15 + 4 - 2.4) + OFSS, 1)
- R05 = R05 & T_RAD(H + OFSS, 0 - OFSS, 4)
- 'Print #NF, T_BLQ(H - 1000, 5.65, H - 1000 - 5.65, 0, 0, 1)
- 'Print #NF, T_BLQ(H - 1000 + 5.65, 0, H - 1000, 5.65, 1, 0)
- R06 = T_SMUS(H - 1000, -0.2)
- 'Print #NF, T_CIRC(H - 1000, 0, 3.3)
- R11 = T_DATAMATRIX(ODP, H - 100 - 40, L - 15 - 4 - 17.5, "O")
- R12 = ""
- If M7 > 0 Then
- R12 = T_HEX(H - M7, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M7 - 859, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M7 - 859 - 398, L - (15 + 28.5 - 2.4), 11)
- End If
- If M8 > 0 Then
- R12 = R12 & T_HEX(H - M8 - 1257, L - (15 + 28.5 - 2.4), 11) & T_HEX(H - M8, L - (15 + 28.5 - 2.4), 11)
- End If
- If M9 > 0 Then
- R12 = R12 & T_HEX(H - M9, L - (15 + 28.5 - 2.4), 11)
- End If
- Case Else
- MsgBox "ERRORE VALORE VV " & ACT_MOD, vbCritical
- End Select
- fn = R01 & R02 & R03 & R04 & R05 & R06 & R11 & R12
- P1 = 250
- P2 = H - 400
- MVAL = 500
- STRINGA = R000(NHD, NND, SPS, H, L, P1, P2, MVAL) & fn
- Call SAVE_SUB(NND, STRINGA)
- POSINTAB = def_posintab(NND)
- Call CUT_END_S(H, L, "0", POSINTAB)
- Call FVTPT(3, NND, "")
- Call CUT_END_S(H, L, "B", POSINTAB)
- Call FVTPT(3, NND, "B")
- Call CUT_END_S(H, L, "C", POSINTAB)
- Call FVTPT(3, NND, "C")
- End Sub
- Sub S_1007098D(ByVal NND As Integer)
- ACT_MOD = "1007098"
- L = INPUT_NUM(NND, "L", L, ACT_MOD)
- H = INPUT_NUM(NND, "H", H, ACT_MOD)
- SPS = INPUT_NUM(NND, "SPS", SPS, ACT_MOD) / 10
- 'M1 = INPUT_NUM(NND, "M1", M1, ACT_MOD)
- M2 = INPUT_NUM(NND, "M2", M2, ACT_MOD)
- M3 = INPUT_NUM(NND, "M3", M3, ACT_MOD)
- CD_SP = INPUT_NUM(NND, "SPC.", CD_SP, ACT_MOD)
- VV = INPUT_STR(NND, "VER.", VV, ACT_MOD)
- BNB = INPUT_NUM(NND, "BNB", BNB, ACT_MOD)
- ODP = INFO_DAT(NND, 0, 5)
- VV = Replace(VV, "P", "")
- 'If VV <> 1 And VV <> 2 Then MsgBox "ERRORE VERSIONE SU " & ACT_MOD, vbCritical
- If VV > 4 Then MsgBox "ERRORE VERSIONE SU " & ACT_MOD, vbCritical
- SCS = 6
- LH = H - 22
- If CD_SP <> "0" Then
- QCSP = DEFINE_QCSP(COD_SPC, NND, H)
- If QCSP <> 0 Then QCSP = H - QCSP
- If QCSP = 0 Then QCSP = InputBox("INSERIRE QUOTA CENTRO SPACCO DA PAVIMENTO" & Chr(13) & "**USARE LA , E NON IL .**", "COMMESSA " & INFO_DAT(NND, 0, 2))
- Else
- QCSP = 0
- End If
- QCSP = Int(QCSP)
- Select Case LH
- Case 1900
- If QCSP < 1030 Then M1 = QCSP - 530
- If QCSP > 1080 Then M1 = QCSP / 2 - 40
- If (QCSP >= 1030 And QCSP <= 1080) Then M1 = 500
- If QCSP = 0 Then M1 = 500
- Case 1950
- If QCSP < 1055 Then M1 = QCSP - 530
- If QCSP > 1130 Then M1 = QCSP / 2 - 40
- If (QCSP >= 1055 And QCSP <= 1130) Then M1 = 525
- If QCSP = 0 Then M1 = 525
- Case 2000
- If QCSP < 1080 Then M1 = QCSP - 530
- If QCSP > 1180 Then M1 = QCSP / 2 - 40
- If (QCSP >= 1080 And QCSP <= 1180) Then M1 = 550
- If QCSP = 0 Then M1 = 550
- Case 2050
- If QCSP < 1105 Then M1 = QCSP - 530
- If QCSP > 1230 Then M1 = QCSP / 2 - 40
- If (QCSP >= 1105 And QCSP <= 1230) Then M1 = 575
- If QCSP = 0 Then M1 = 575
- Case 2100
- If QCSP < 1130 Then M1 = QCSP - 530
- If QCSP > 1280 Then M1 = QCSP / 2 - 40
- If (QCSP >= 1130 And QCSP <= 1280) Then M1 = 600
- If QCSP = 0 Then M1 = 600
- Case Else
- MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
- End Select
- If CD_SP = "W50522" Or CD_SP = "W50523" Or CD_SP = "W50524" Then MsgBox ("SPACCHI ORONA, CONTROLLARE FORATURA SU LATO BATTUTA " & ACT_MOD)
- Select Case VV
- Case 2, 4
- 'R01 = T_CIRC(25, L - 10 - 1.5, 12) & T_CIRC(25, L - 10 + 1.5, 12) & T_CIRC(25, L - 10, 12)
- 'R01 = R01 & T_CIRC(25 + 30, L - 10 - 1.5, 12) & T_CIRC(25 + 30, L - 10 + 1.5, 12) & T_CIRC(25 + 30, L - 10, 12)
- R01 = T_RECT1(19, 19 + 22, L - 27 + 6, L - 27 + 6 + 17) & T_RECT1(19 + 22 + 8, 19 + 22 + 8 + 22, L - 27 + 6, L - 27 + 6 + 17)
- R02 = T_SLOT(283, L - 12, 15, 5, 90)
- R02 = R02 & T_SLOT(283 + 34, L - 12, 15, 5, 90)
- R02 = R02 & T_SLOT(283 + M1, L - 12, 15, 5, 90)
- R02 = R02 & T_SLOT(283 + 34 + M1, L - 12, 15, 5, 90)
- R02 = R02 & T_SLOT(283 + (2 * M1), L - 12, 15, 5, 90)
- R02 = R02 & T_SLOT(283 + 34 + (2 * M1), L - 12, 15, 5, 90)
- 'Print #NF, T_SLOT(283 + (3 * M1), L - 10, 10, 5, 90) ' se necessario attivare la lavorazione
- 'Print #NF, T_SLOT(283 + 34 + (3 * M1), L - 10, 10, 5, 90) ' se necessario attivare la lavorazione
- R02 = R02 & T_SLOT(H - 99, L - 12, 15, 5, 90)
- R02 = R02 & T_SLOT(H - 99 + 34, L - 12, 15, 5, 90)
- If M2 <> 0 Or M3 <> 0 Then
- R03 = T_CIRC(283 + 34 + M2, L - 12, 12)
- R03 = R03 & T_CIRC(283 + 34 + M2 + M3, L - 12, 12)
- R03 = R03 & T_CIRC(283 + M1 + 34 + M2, L - 12, 12)
- R03 = R03 & T_CIRC(283 + M1 + 34 + M2 + M3, L - 12, 12)
- R03 = R03 & T_CIRC(283 + 2 * M1 + 34 + M2, L - 12, 12)
- R03 = R03 & T_CIRC(283 + 2 * M1 + 34 + M2 + M3, L - 12, 12)
- Else
- R03 = ""
- End If
- R04 = T_RECT1(H - 22, H + 3, L - 20 - 27 + 3.5, L - 20)
- R04 = R04 & T_RECT1(H - 22, H - 3.5, L - 20 - 27, L - 20 - 27 + 10)
- R05 = T_DATAMATRIX(ODP, 55 + 15 + 10, L - 25 + 3 + 1.5 + 0.5, "O")
- Case 1, 3
- R04 = T_RECT1(-3, 22, L - 20 - 27 + 3.5, L - 20)
- R04 = R04 & T_RECT1(3.5, 22, L - 20 - 27, L - 20 - 27 + 10)
- 'R01 = T_CIRC(H - 25, L - 10 - 1.5, 12) & T_CIRC(H - 25, L - 10 + 1.5, 12) & T_CIRC(H - 25, L - 10, 12)
- 'R01 = R01 & T_CIRC(H - 25 - 30, L - 10 - 1.5, 12) & T_CIRC(H - 25 - 30, L - 10 + 1.5, 12) & T_CIRC(H - 25 - 30, L - 10, 12)
- R01 = T_RECT1(H - 19, H - (19 + 22), L - 27 + 6, L - 27 + 6 + 17) & T_RECT1(H - (19 + 22 + 8), H - (19 + 22 + 8 + 22), L - 27 + 6, L - 27 + 6 + 17)
- R02 = T_SLOT(99 - 34, L - 12, 15, 5, 90)
- R02 = R02 & T_SLOT(99, L - 12, 15, 5, 90)
- 'Print #NF, T_SLOT(H - 283 - 34 - 3 * M1, L - 10, 10, 5, 90) ' se necessario attivare la lavorazione
- 'Print #NF, T_SLOT(H - 283 - 3 * M1, L - 10, 10, 5, 90) ' se necessario attivare la lavorazione
- R02 = R02 & T_SLOT(H - 283 - 34 - 2 * M1, L - 12, 15, 5, 90)
- R02 = R02 & T_SLOT(H - 283 - 2 * M1, L - 12, 15, 5, 90)
- R02 = R02 & T_SLOT(H - 283 - 34 - M1, L - 12, 15, 5, 90)
- R02 = R02 & T_SLOT(H - 283 - M1, L - 12, 15, 5, 90)
- R02 = R02 & T_SLOT(H - 283, L - 12, 15, 5, 90)
- R02 = R02 & T_SLOT(H - 283 - 34, L - 12, 15, 5, 90)
- If M2 <> 0 Or M3 <> 0 Then
- R03 = T_CIRC(H - 283 - 34 - M2, L - 12, 12)
- R03 = R03 & T_CIRC(H - 283 - 34 - M2 - M3, L - 12, 12)
- R03 = R03 & T_CIRC(H - 283 - M1 - 34 - M2, L - 12, 12)
- R03 = R03 & T_CIRC(H - 283 - M1 - 34 - M2 - M3, L - 12, 12)
- R03 = R03 & T_CIRC(H - 283 - 2 * M1 - 34 - M2, L - 12, 12)
- R03 = R03 & T_CIRC(H - 283 - 2 * M1 - 34 - M2 - M3, L - 12, 12)
- End If
- R05 = T_DATAMATRIX(ODP, H - 55 - 15 - 10 - 45, L - 25 + 3 + 1.5 + 0.5, "O")
- Case Else
- MsgBox "ERRORE VALORE VV " & ACT_MOD, vbCritical
- End Select
- R06 = T_RAD(0, 0, 3) & T_RAD(H, 0, 4) & T_RAD(0, L, 2) & T_RAD(H, L, 1)
- fn = R01 & R02 & R03 & R04 & R05 & R06
- P1 = 250
- P2 = H - 400
- MVAL = 500
- STRINGA = R000(NHD, NND, SPS, H, L, P1, P2, MVAL) & fn
- Call SAVE_SUB(NND, STRINGA)
- POSINTAB = def_posintab(NND)
- Call CUT_END_S(H, L, "0", POSINTAB)
- Call FVTPT(3, NND, "")
- Call CUT_END_S(H, L, "B", POSINTAB)
- Call FVTPT(3, NND, "B")
- Call CUT_END_S(H, L, "C", POSINTAB)
- Call FVTPT(3, NND, "C")
- End Sub
- Sub S_1010304C(ByVal NND As Integer)
- ACT_MOD = "1010304"
- L = INPUT_NUM(NND, "L", L, ACT_MOD)
- H = INPUT_NUM(NND, "H", H, ACT_MOD)
- SPS = INPUT_NUM(NND, "SPS", SPS, ACT_MOD) / 10
- 'M1 = INPUT_NUM(NND, "M1", M1, ACT_MOD)
- M2 = INPUT_NUM(NND, "M2", M2, ACT_MOD)
- M3 = INPUT_NUM(NND, "M3", M3, ACT_MOD)
- CD_SP = INPUT_NUM(NND, "SPC.", CD_SP, ACT_MOD)
- VV = INPUT_STR(NND, "VER.", VV, ACT_MOD)
- BNB = INPUT_NUM(NND, "BNB", BNB, ACT_MOD)
- ODP = INFO_DAT(NND, 0, 5)
- VV = Replace(VV, "P", "")
- If VV > 4 Then MsgBox "ERRORE VERSIONE SU " & ACT_MOD, vbCritical
- SCS = 6
- LH = H - 22
- If CD_SP <> "0" Then
- QCSP = DEFINE_QCSP(COD_SPC, NND, H)
- If QCSP <> 0 Then QCSP = H - QCSP
- If QCSP = 0 Then QCSP = InputBox("INSERIRE QUOTA CENTRO SPACCO DA PAVIMENTO" & Chr(13) & "**USARE LA , E NON IL .**", "COMMESSA " & INFO_DAT(NND, 0, 2))
- Else
- QCSP = 0
- End If
- QCSP = Int(QCSP)
- Select Case LH
- Case 1900
- If QCSP < 1030 Then M1 = QCSP - 530
- If QCSP > 1080 Then M1 = QCSP / 2 - 40
- If (QCSP >= 1030 And QCSP <= 1080) Then M1 = 500
- If QCSP = 0 Then M1 = 500
- Case 1950
- If QCSP < 1055 Then M1 = QCSP - 530
- If QCSP > 1130 Then M1 = QCSP / 2 - 40
- If (QCSP >= 1055 And QCSP <= 1130) Then M1 = 525
- If QCSP = 0 Then M1 = 525
- Case 2000
- If QCSP < 1080 Then M1 = QCSP - 530
- If QCSP > 1180 Then M1 = QCSP / 2 - 40
- If (QCSP >= 1080 And QCSP <= 1180) Then M1 = 550
- If QCSP = 0 Then M1 = 550
- Case 2050
- If QCSP < 1105 Then M1 = QCSP - 530
- If QCSP > 1230 Then M1 = QCSP / 2 - 40
- If (QCSP >= 1105 And QCSP <= 1230) Then M1 = 575
- If QCSP = 0 Then M1 = 575
- Case 2100
- If QCSP < 1130 Then M1 = QCSP - 530
- If QCSP > 1280 Then M1 = QCSP / 2 - 40
- If (QCSP >= 1130 And QCSP <= 1280) Then M1 = 600
- If QCSP = 0 Then M1 = 600
- Case Else
- MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
- End Select
- If CD_SP = "W50522" Or CD_SP = "W50523" Or CD_SP = "W50524" Then MsgBox ("SPACCHI ORONA, CONTROLLARE FORATURA SU LATO BATTUTA " & ACT_MOD)
- Select Case VV
- Case 2, 4
- ''R01 = T_CIRC(25, L - 10 - 1.5, 12) & T_CIRC(25, L - 10 + 1.5, 12) & T_CIRC(25, L - 10, 12) 'T_RECT2(25, L - 10, 12, 15)
- ''R01 = R01 & T_CIRC(25 + 30, L - 10 - 1.5, 12) & T_CIRC(25 + 30, L - 10 + 1.5, 12) & T_CIRC(25 + 30, L - 10, 12) 'T_RECT2(25 + 30, L - 10, 12, 15)
- R01 = T_RECT1(19, 19 + 22, L - 21, L - 4) & T_RECT1(19 + 22 + 8, 19 + 22 + 8 + 22, L - 21, L - 4)
- R01 = R01 & T_RECT1(H - 22, H + 0.6, L - 43.3, L - 10)
- R01 = R01 & T_RECT1(H - 22, H - 3.5, L - 47.3, L - 47.3 + 10)
- R01 = R01 & T_SLOT(283, L - 12, 15, 5, 90)
- R01 = R01 & T_SLOT(283 + 34, L - 12, 15, 5, 90)
- R01 = R01 & T_SLOT(283 + M1, L - 12, 15, 5, 90)
- R01 = R01 & T_SLOT(283 + 34 + M1, L - 12, 15, 5, 90)
- R01 = R01 & T_SLOT(283 + (2 * M1), L - 12, 15, 5, 90)
- R01 = R01 & T_SLOT(283 + 34 + (2 * M1), L - 12, 15, 5, 90)
- 'Print #NF, T_SLOT(283 + (3 * M1), L - 10, 10, 5, 90) ' se necessario attivare la lavorazione
- 'Print #NF, T_SLOT(283 + 34 + (3 * M1), L - 10, 10, 5, 90) ' se necessario attivare la lavorazione
- R01 = R01 & T_SLOT(H - 99, L - 12, 15, 5, 90)
- R01 = R01 & T_SLOT(H - 99 + 34, L - 12, 15, 5, 90)
- If M2 <> 0 Or M3 <> 0 Then
- R02 = T_CIRC(283 + 34 + M2, L - 12, 12)
- R02 = R02 & T_CIRC(283 + 34 + M2 + M3, L - 12, 12)
- R02 = R02 & T_CIRC(283 + M1 + 34 + M2, L - 12, 12)
- R02 = R02 & T_CIRC(283 + M1 + 34 + M2 + M3, L - 12, 12)
- R02 = R02 & T_CIRC(283 + 2 * M1 + 34 + M2, L - 12, 12)
- R02 = R02 & T_CIRC(283 + 2 * M1 + 34 + M2 + M3, L - 12, 12)
- Else
- R02 = ""
- End If
- R05 = T_DATAMATRIX(ODP, 55 + 15 + 10, L - 25 + 3 + 2, "O")
- Case 1, 3
- R01 = T_RECT1(H - 19, H - (19 + 22), L - 21, L - 4) & T_RECT1(H - (19 + 22 + 8), H - (19 + 22 + 8 + 22), L - 21, L - 4)
- R01 = R01 & T_RECT1(-0.6, 22, L - 43.3, L - 10)
- R01 = R01 & T_RECT1(3.5, 22, L - 47.3, L - 47.3 + 10)
- 'R01 = R01 & T_CIRC(H - 25, L - 10 - 1.5, 12) & T_CIRC(H - 25, L - 10 + 1.5, 12) & T_CIRC(H - 25, L - 10, 12)
- 'R01 = R01 & T_CIRC(H - 25 - 30, L - 10 - 1.5, 12) & T_CIRC(H - 25 - 30, L - 10 + 1.5, 12) & T_CIRC(H - 25 - 30, L - 10, 12)
- R01 = R01 & T_SLOT(99 - 34, L - 12, 15, 5, 90)
- R01 = R01 & T_SLOT(99, L - 12, 15, 5, 90)
- 'Print #NF, T_SLOT(H - 283 - 34 - 3 * M1, L - 10, 10, 5, 90) ' se necessario attivare la lavorazione
- 'Print #NF, T_SLOT(H - 283 - 3 * M1, L - 10, 10, 5, 90) ' se necessario attivare la lavorazione
- R01 = R01 & T_SLOT(H - 283 - 34 - 2 * M1, L - 12, 15, 5, 90)
- R01 = R01 & T_SLOT(H - 283 - 2 * M1, L - 12, 15, 5, 90)
- R01 = R01 & T_SLOT(H - 283 - 34 - M1, L - 12, 15, 5, 90)
- R01 = R01 & T_SLOT(H - 283 - M1, L - 12, 15, 5, 90)
- R01 = R01 & T_SLOT(H - 283, L - 12, 15, 5, 90)
- R01 = R01 & T_SLOT(H - 283 - 34, L - 12, 15, 5, 90)
- If M2 <> 0 Or M3 <> 0 Then
- R02 = T_CIRC(H - 283 - 34 - M2, L - 12, 12)
- R02 = R02 & T_CIRC(H - 283 - 34 - M2 - M3, L - 12, 12)
- R02 = R02 & T_CIRC(H - 283 - M1 - 34 - M2, L - 12, 12)
- R02 = R02 & T_CIRC(H - 283 - M1 - 34 - M2 - M3, L - 12, 12)
- R02 = R02 & T_CIRC(H - 283 - 2 * M1 - 34 - M2, L - 12, 12)
- R02 = R02 & T_CIRC(H - 283 - 2 * M1 - 34 - M2 - M3, L - 12, 12)
- Else
- R02 = ""
- End If
- R05 = T_DATAMATRIX(ODP, H - 55 - 15 - 45 - 10, L - 25 + 3 + 2, "O")
- Case Else
- MsgBox "ERRORE VALORE VV " & ACT_MOD, vbCritical
- End Select
- R06 = T_RAD(0, 0, 3) & T_RAD(0, L, 2) & T_RAD(H, 0, 4) & T_RAD(H, L, 1)
- fn = R01 & R02 & R05 & R06
- P1 = 250
- P2 = H - 400
- MVAL = 500
- STRINGA = R000(NHD, NND, SPS, H, L, P1, P2, MVAL) & fn
- Call SAVE_SUB(NND, STRINGA)
- POSINTAB = def_posintab(NND)
- Call CUT_END_S(H, L, "0", POSINTAB)
- Call FVTPT(3, NND, "")
- Call CUT_END_S(H, L, "B", POSINTAB)
- Call FVTPT(3, NND, "B")
- Call CUT_END_S(H, L, "C", POSINTAB)
- Call FVTPT(3, NND, "C")
- End Sub
- Sub S_1020668B(ByVal NND As Integer)
- ACT_MOD = "1020668"
- CLAMP = 0
- L = INPUT_NUM(NND, "L", L, ACT_MOD)
- H = INPUT_NUM(NND, "H", H, ACT_MOD)
- SPS = INPUT_NUM(NND, "SPS", SPS, ACT_MOD) / 10
- M1 = INPUT_NUM(NND, "M1", M1, ACT_MOD)
- M2 = INPUT_NUM(NND, "M2", M2, ACT_MOD)
- M3 = INPUT_NUM(NND, "M3", M3, ACT_MOD)
- M4 = INPUT_NUM(NND, "M4", M4, ACT_MOD)
- M5 = INPUT_NUM(NND, "M5", M5, ACT_MOD)
- M6 = INPUT_NUM(NND, "M6", M6, ACT_MOD)
- M7 = INPUT_NUM(NND, "M7", M7, ACT_MOD)
- M8 = INPUT_NUM(NND, "M8", M8, ACT_MOD)
- M9 = INPUT_NUM(NND, "M9", M9, ACT_MOD)
- M10 = INPUT_NUM(NND, "M10", M10, ACT_MOD)
- M11 = INPUT_NUM(NND, "M11", M11, ACT_MOD)
- M12 = INPUT_NUM(NND, "M12", M12, ACT_MOD)
- M13 = INPUT_NUM(NND, "M13", M13, ACT_MOD)
- M14 = INPUT_NUM(NND, "M14", M14, ACT_MOD)
- M15 = INPUT_NUM(NND, "M15", M15, ACT_MOD)
- DF = INPUT_NUM(NND, "DF", DF, ACT_MOD)
- sf = INPUT_NUM(NND, "SF", sf, ACT_MOD)
- SB = INPUT_NUM(NND, "SB", SB, ACT_MOD)
- LH = INPUT_NUM(NND, "LH", LH, ACT_MOD)
- CD_SP = INPUT_NUM(NND, "SPC", CD_SP, ACT_MOD)
- VV = INPUT_STR(NND, "VER", VV, ACT_MOD)
- BNB = INPUT_NUM(NND, "BNB", BNB, ACT_MOD)
- ODP = INFO_DAT(NND, 0, 5)
- If Val(LH) = 0 Then
- SP = M1 + 50
- LH = H - SP
- End If
- VV = Replace(VV, "H", "")
- VV = Val(VV)
- If VV > 8 Then MsgBox "ERRORE VERSIONE SU " & ACT_MOD, vbCritical
- SCS = 6
- sf = 1 * sf '+ 1 * SB
- If sf = 0 Then
- sf = 1 * SB
- MsgBox "ERRORE DATI SB-SF IN " & ACT_MOD
- End If
- Select Case VV
- Case 2, 4, 6, 8
- '**************************************SPACCO
- If CD_SP <> "" And CD_SP <> "0" Then
- R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 2, sf, 0)
- If DF >= 40 Then M5 = DF - 25 Else M5 = 0
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R02 = T_CIRC(H - M14, L - 5.2, 5.5) & T_CIRC(H - M14 - 375.5, L - 5.2, 5.5)
- R02 = R02 & T_CIRC(H - M15, L - 5.2, 5.5) & T_CIRC(H - M15 - 275.5, L - 5.2, 5.5)
- R02 = R02 & T_SLOT(H - M14, 24.1, 8, 5, 90) & T_SLOT(H - M14, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M14 - 375.5, 24.1, 8, 5, 90) & T_SLOT(H - M14 - 375.5, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M15, 24.1, 8, 5, 90) & T_SLOT(H - M15, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M15 - 275.5, 24.1, 8, 5, 90) & T_SLOT(H - M15 - 275.5, 24.1 + M5, 8, 5, 90)
- Else
- R02 = T_CIRC(QCSP + 187.75, L - 5.2, 5.5)
- R02 = R02 & T_CIRC(QCSP - 187.75, L - 5.2, 5.5)
- R02 = R02 & T_SLOT(QCSP + 187.75, 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP + 187.75, 24.1 + M5, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, 24.1 + M5, 8, 5, 90)
- End If
- If M3 = 0 Then
- MsgBox "M3=0"
- Select Case LH
- Case 1900
- If H - QCSP < 1030 Then M3 = H - QCSP - 530
- If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
- Case 1950
- If H - QCSP < 1055 Then M3 = H - QCSP - 530
- If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
- Case 2000
- If H - QCSP < 1080 Then M3 = H - QCSP - 530
- If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
- Case 2050
- If H - QCSP < 1105 Then M3 = H - QCSP - 530
- If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
- Case 2100
- If H - QCSP < 1130 Then M3 = H - QCSP - 530
- If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
- Case Else
- MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
- End Select
- End If
- Else
- R01 = ""
- R02 = ""
- End If
- '***********************************************
- R03 = T_RECT1(-SCS, M2, L - 26.6, L + SCS)
- R03 = R03 & T_RECT1(-SCS, M2, -SCS, 16.6)
- R03 = R03 & T_RECT1(H - 70, H + SCS, -SCS, 16.6)
- R03 = R03 & T_RECT1(H - 345, H - 290, 12.5, 17.5)
- R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), 12.5, 17.5)
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R03 = R03 & T_RECT1(H - (345 + M3 + M13), H - (290 + M3 + M13), 12.5, 17.5)
- Else
- R03 = R03 & T_RECT1(H - (345 + 2 * M3), H - (290 + 2 * M3), 12.5, 17.5)
- End If
- R03 = R03 & T_RECT1(M2 + 20, M2 + 75, 12.5, 17.5)
- R03 = R03 & T_SLOT(H - 25, DF - 18 + 15 - 2.4, 8, 5, 90)
- R03 = R03 & T_SLOT(H - 55, DF - 18 + 15 - 2.4, 8, 5, 90)
- R04 = T_CIRC(30, DF / 2 + 15 - 2.4, 7.2)
- If M8 > 0 Then R05 = T_CIRC(30 + M8, DF / 2 + 15 - 2.4, 7.2) Else R05 = ""
- R06 = T_CIRC(30 + M1, DF / 2 + 15 - 2.4, 7.2)
- R06 = R06 & T_CIRC(30 + M1 - M7, DF / 2 + 15 - 2.4, 7.2)
- R06 = R06 & T_CIRC(30, L - (DF / 2 + 25 - 2.4), 7.2)
- If M8 > 0 Then R07 = T_CIRC(30 + M8, L - (DF / 2 + 25 - 2.4), 7.2) Else R07 = ""
- R08 = T_CIRC(30 + M1, L - (DF / 2 + 25 - 2.4), 7.2)
- R08 = R08 & T_CIRC(30 + M1 - M7, L - (DF / 2 + 25 - 2.4), 7.2)
- If M6 > 0 Then
- R09 = T_CIRC(M6, L - (DF - 19.2 + 25 - 2.4), 15)
- R09 = R09 & T_CIRC(M6 + 140, L - (DF - 19.2 + 25 - 2.4), 15)
- Else
- R09 = ""
- End If
- R10 = T_SLOT(H - 25, L - 9.5, 8, 5, 90)
- R10 = R10 & T_SLOT(H - 55, L - 9.5, 8, 5, 90)
- R10 = R10 & T_CIRC(H - 283, L - 10, 8.5)
- R10 = R10 & T_CIRC(H - (283 + 34), L - 10, 8.5)
- R10 = R10 & T_CIRC(H - (283 + M3), L - 10, 8.5)
- R10 = R10 & T_CIRC(H - (283 + 34 + M3), L - 10, 8.5)
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R10 = R10 & T_CIRC(H - (283 + M3 + M13), L - 10, 8.5)
- R10 = R10 & T_CIRC(H - (283 + 34 + M3 + M13), L - 10, 8.5)
- Else
- R10 = R10 & T_CIRC(H - (283 + 2 * M3), L - 10, 8.5)
- R10 = R10 & T_CIRC(H - (283 + 34 + 2 * M3), L - 10, 8.5)
- End If
- R10 = R10 & T_CIRC(M2 + 82, L - 10, 8.5)
- R10 = R10 & T_CIRC(M2 + 82 - 34, L - 10, 8.5)
- R11 = T_DATAMATRIX(ODP, H - 100 - 40, 15 + 10, "O")
- R12 = ""
- If M10 > 0 Then
- R12 = T_HEX(H - M10, 41.1, 11) & T_HEX(H - M10 - 859, 41.1, 11) & T_HEX(H - M10 - 859 - 398, 41.1, 11)
- End If
- If M11 > 0 Then
- R12 = R12 & T_HEX(H - M11, 41.1, 11) & T_HEX(H - M11 - 1257, 41.1, 11)
- End If
- If M12 > 0 Then
- R12 = R12 & T_HEX(H - M12, 41.1, 11)
- End If
- R13 = T_RAD(0, 15 + 4 - 2.4, 3)
- R13 = R13 & T_RAD(M2, 0, 3)
- R13 = R13 & T_RAD(0, L - (25 + 4 - 2.4), 2)
- R13 = R13 & T_RAD(M2, L, 2)
- R13 = R13 & T_RAD(H - 70, 0, 4)
- R13 = R13 & T_RAD(H, 15 + 4 - 2.4, 4)
- R13 = R13 & T_RAD(H, L, 1)
- Case 1, 3, 5, 7
- '***************************************SPACCO
- If CD_SP <> "" And CD_SP <> "0" Then
- R01 = SPC_PULS(NND, CD_SP, 25 + DF - 4.8, H, L, 1, sf, 0)
- If DF >= 40 Then M5 = DF - 25 Else M5 = 0
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R02 = T_CIRC(H - M14, 5.2, 5.5) & T_CIRC(H - M14 - 375.5, 5.2, 5.5)
- R02 = R02 & T_CIRC(H - M15, 5.2, 5.5) & T_CIRC(H - M15 - 275.5, 5.2, 5.5)
- R02 = R02 & T_SLOT(H - M14, L - 24.1, 8, 5, 90) & T_SLOT(H - M14, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M14 - 375.5, L - 24.1, 8, 5, 90) & T_SLOT(H - M14 - 375.5, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M15, L - 24.1, 8, 5, 90) & T_SLOT(H - M15, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(H - M15 - 275.5, L - 24.1, 8, 5, 90) & T_SLOT(H - M15 - 275.5, L - 24.1 - M5, 8, 5, 90)
- Else
- R02 = T_CIRC(QCSP + 187.75, 5.2, 5.5)
- R02 = R02 & T_CIRC(QCSP - 187.75, 5.2, 5.5)
- R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP + 187.75, L - 24.1 - M5, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1, 8, 5, 90)
- R02 = R02 & T_SLOT(QCSP - 187.75, L - 24.1 - M5, 8, 5, 90)
- End If
- If M3 = 0 Then
- Select Case LH
- Case 1900
- If H - QCSP < 1030 Then M3 = H - QCSP - 530
- If H - QCSP > 1080 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1030 And H - QCSP <= 1080) Then M3 = 500
- Case 1950
- If H - QCSP < 1055 Then M3 = H - QCSP - 530
- If H - QCSP > 1130 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1055 And H - QCSP <= 1130) Then M3 = 525
- Case 2000
- If H - QCSP < 1080 Then M3 = H - QCSP - 530
- If H - QCSP > 1180 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1080 And H - QCSP <= 1180) Then M3 = 550
- Case 2050
- If H - QCSP < 1105 Then M3 = H - QCSP - 530
- If H - QCSP > 1230 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1105 And H - QCSP <= 1230) Then M3 = 575
- Case 2100
- If H - QCSP < 1130 Then M3 = H - QCSP - 530
- If H - QCSP > 1280 Then M3 = (H - QCSP) / 2 - 40
- If (H - QCSP >= 1130 And H - QCSP <= 1280) Then M3 = 600
- Case Else
- MsgBox "ERRORE VALORE LH " & ACT_MOD, vbCritical
- End Select
- End If
- Else
- R01 = ""
- R02 = ""
- End If
- '***********************************************
- R03 = T_RECT1(-SCS, M2, -SCS, 26.6)
- R03 = R03 & T_RECT1(-SCS, M2, L - 16.6, L + SCS)
- R03 = R03 & T_RECT1(H - 70, H + SCS, L - 16.6, L + SCS)
- R03 = R03 & T_RECT1(H - 345, H - 290, L - 17.5, L - 12.5)
- R03 = R03 & T_RECT1(H - (345 + M3), H - (290 + M3), L - 17.5, L - 12.5)
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R03 = R03 & T_RECT1(H - (345 + M3 + M13), H - (290 + M3 + M13), L - 17.5, L - 12.5)
- Else
- R03 = R03 & T_RECT1(H - (345 + M3 * 2), H - (290 + M3 * 2), L - 17.5, L - 12.5)
- End If
- R03 = R03 & T_RECT1(M2 + 20, M2 + 75, L - 17.5, L - 12.5)
- R03 = R03 & T_SLOT(H - 25, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
- R03 = R03 & T_SLOT(H - 55, L - (DF - 18 + 15 - 2.4), 8, 5, 90)
- R04 = T_CIRC(30, L - (DF / 2 + 15 - 2.4), 7.2)
- If M8 > 0 Then R05 = T_CIRC(30 + M8, L - (DF / 2 + 15 - 2.4), 7.2) Else R05 = ""
- R06 = T_CIRC(30 + M1, L - (DF / 2 + 15 - 2.4), 7.2)
- R06 = R06 & T_CIRC(30 + M1 - M7, L - (DF / 2 + 15 - 2.4), 7.2)
- R06 = R06 & T_CIRC(30, DF / 2 + 25 - 2.4, 7.2)
- If M8 > 0 Then R07 = T_CIRC(30 + M8, DF / 2 + 25 - 2.4, 7.2) Else R07 = ""
- R08 = T_CIRC(30 + M1, DF / 2 + 25 - 2.4, 7.2)
- R08 = R08 & T_CIRC(30 + M1 - M7, DF / 2 + 25 - 2.4, 7.2)
- If M6 > 0 Then
- R09 = T_CIRC(M6 + 140, DF - 19.2 + 25 - 2.4, 15)
- R09 = R09 & T_CIRC(M6, DF - 19.2 + 25 - 2.4, 15)
- Else
- R09 = ""
- End If
- R10 = T_SLOT(H - 25, 9.5, 8, 5, 90)
- R10 = R10 & T_SLOT(H - 55, 9.5, 8, 5, 90)
- R10 = R10 & T_CIRC(H - 283, 10, 8.5)
- R10 = R10 & T_CIRC(H - (283 + 34), 10, 8.5)
- R10 = R10 & T_CIRC(H - (283 + M3), 10, 8.5)
- R10 = R10 & T_CIRC(H - (283 + 34 + M3), 10, 8.5)
- If CD_SP = "50522" Or CD_SP = "50522" Or CD_SP = "50522" Then
- R10 = R10 & T_CIRC(H - (283 + M13 + M3), 10, 8.5)
- R10 = R10 & T_CIRC(H - (283 + 34 + M13 + M3), 10, 8.5)
- Else
- R10 = R10 & T_CIRC(H - (283 + 2 * M3), 10, 8.5)
- R10 = R10 & T_CIRC(H - (283 + 34 + 2 * M3), 10, 8.5)
- End If
- R10 = R10 & T_CIRC(M2 + 82, 10, 8.5)
- R10 = R10 & T_CIRC(M2 + 82 - 34, 10, 8.5)
- R11 = T_DATAMATRIX(ODP, H - 100 - 40, L - 15 - 10 - 20, "O")
- R12 = ""
- If M10 > 0 Then
- R12 = T_HEX(H - M10, L - 41.1, 11) & T_HEX(H - M10 - 859, L - 41.1, 11) & T_HEX(H - M10 - 859 - 398, L - 41.1, 11)
- End If
- If M11 > 0 Then
- R12 = R12 & T_HEX(H - M11, L - 41.1, 11) & T_HEX(H - M11 - 1257, L - 41.1, 11)
- End If
- If M12 > 0 Then
- R12 = R12 & T_HEX(H - M12, L - 41.1, 11)
- End If
- R13 = T_RAD(0, L - (15 + 4 - 2.4), 2)
- R13 = R13 & T_RAD(M2, L, 2)
- R13 = R13 & T_RAD(0, 25 + 4 - 2.4, 3)
- R13 = R13 & T_RAD(M2, 0, 3)
- R13 = R13 & T_RAD(H - 70, L, 1)
- R13 = R13 & T_RAD(H, L - (15 + 4 - 2.4), 1)
- R13 = R13 & T_RAD(H, 0, 4)
- Case Else
- MsgBox "ERRORE VALORE VV " & ACT_MOD, vbCritical
- End Select
- fn = R01 & R02 & R03 & R04 & R05 & R06 & R07 & R08 & R09 & R10 & R11 & R12 & R13
- P1 = 250
- P2 = H - 400
- MVAL = 500
- STRINGA = R000(NHD, NND, SPS, H, L, P1, P2, MVAL) & fn
- Call SAVE_SUB(NND, STRINGA)
- POSINTAB = def_posintab(NND)
- Call CUT_END_S_PORT(H, L, M2, "0", POSINTAB)
- Call FVTPT(3, NND, "")
- Call CUT_END_S(H, L, "B", POSINTAB)
- Call FVTPT(3, NND, "B")
- End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement