1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
| Function RemplacerPlusieursElements(N°Element As Integer,
With ufDonnéesZone
For i = 0 To UBound(Zone)
'Remplacement des éléments cochés
For j = 0 To NbElementsSelectionnes - 1
If ZoneSelectionnees(j) = Zone(i).Nom Then
If .ckbHmin = True Then
Zone(i).HauteurMin = .tbHauteurMin
Zone(i).Volume = ((Zone(i).HauteurMax + Zone(i).HauteurMin) / 2) * Zone(i).surface
Zone(i).GV = Zone(i).Volume * Zone(i).CoeffG
Zone(i).Deper = Zone(i).GV * Zone(i).T°_Ambiante * T°Ext
End If
If .ckbHmax = True Then
Zone(i).HauteurMax = .tbHauteurMax
Zone(i).Volume = ((Zone(i).HauteurMax + Zone(i).HauteurMin) / 2) * Zone(i).surface
Zone(i).GV = Zone(i).Volume * Zone(i).CoeffG
Zone(i).Deper = Zone(i).GV * Zone(i).T°_Ambiante * T°Ext
End If
If .ckbDistri1 = True Then
Zone(i).DistributionPrimaire = .cbDistributionPrimaire
Zone(i).modeleDistribution = ""
Zone(i).NbModele = 0
End If
If .ckbDistri2 = True Then
Zone(i).DistributionSecondaire = .cbDistributionSecondaire
Zone(i).modeleDistribution = ""
Zone(i).NbModele = 0
End If
If .ckbIsolant = True And _
(.cbDistributionPrimaire = "Plancher Chauffant" Or _
.cbDistributionSecondaire = "Plancher Chauffant") Then _
Zone(i).modeleDistribution = .ldEpaisseurIsoPC
If .ckbIsolant = True Then _
Zone(i).modeleDistribution = .ldEpaisseurIsoPC
If .ckbCoeffG = True Then
Zone(i).CoeffG = .tbCoeffG
Zone(i).GV = Zone(i).CoeffG * Zone(i).Volume
End If
If .ckbT°Ambiante = True Then _
Zone(i).T°_Ambiante = .tbT_ambiante
End If
Next j
Next i
End With
End Function |
Partager