def addJointsQuant(self,price): '''Add dilatation-joint quantities to the price defined as parameter :ivar price: instance of object UnitPriceQuantities ''' if self.JointLateral1.lower()[0]=='y': H=self.maxHeight price.quantities.append(MeasurementRecord(self.textComment,self.nUnits,None,None,H)) if self.JointLateral2.lower()[0]=='y': H=round(self.maxHeight-self.Length*self.SlopeTopFace,2) price.quantities.append(MeasurementRecord(self.textComment,self.nUnits,None,None,H))
def addReinforcementQuant(self,price,percLosses): '''Add reinforcement quantities to the price defined as parameter :ivar price: instance of object UnitPriceQuantities (if 0-> no quantitie is added) :ivar percLosses: percentage to add for cutting losses (if 0-> no loss) ''' if self.reinfQuant>0: price.quantities.append(MeasurementRecord(self.textComment + ' s/med. aux.',1, self.reinfQuant, None, None)) if percLosses>0: price.quantities.append(MeasurementRecord(self.textComment +' '+ str(percLosses) + '% despuntes y despieces',1, round(percLosses/100.*self.reinfQuant,2), None, None))
def addHiddenWallFormworkQuant(self, price): '''Add hidden-wall formwork quantities to the price defined as parameter :price: instance of object UnitPriceQuantities ''' if self.LhiddFormwork > 0.0: price.quantities.append( MeasurementRecord(self.textComment, self.nUnits, self.LdeckUnifSect, self.LhiddFormwork, None)) if self.nLateralFormwork > 0: price.quantities.append( MeasurementRecord(self.textComment, self.nLateralFormwork * self.AreaUnifSect, None, None, None))
def addExcavationQuant(self, price): '''Add excavation quantities to the price defined as parameter :ivar price: instance of object UnitPriceQuantities ''' if self.excavHeight > 0: price.quantities.append( MeasurementRecord(self.textComment, self.nUnits, self.mnLength, self.mnWidth, self.excavHeight)) if self.Lexcav > 0: price.quantities.append( MeasurementRecord( self.textComment, 0.5, self.Lexcav, round(self.excavHeight * self.excavSlope, 2), self.excavHeight))
def addHiddenWallFormworkQuant(self,price): '''Add hidden-wall formwork quantities to the price defined as parameter :ivar price: instance of object UnitPriceQuantities ''' formWidth=round(self.meanHeight*math.sqrt(1+self.SlopeBackFace**2),2) price.quantities.append(MeasurementRecord(self.textComment,self.nUnits,self.Length,formWidth,None)) if self.FormworkLateral1.lower()[0]=='y': H=self.maxHeight B1=self.Thickness B2=self.Thickness+H*self.SlopeFrontFace+H*self.SlopeBackFace price.quantities.append(MeasurementRecord(self.textComment,self.nUnits,None,round((B1+B2)/2.,2),H)) if self.FormworkLateral2.lower()[0]=='y': H=round(self.maxHeight-self.Length*self.SlopeTopFace,2) B1=self.Thickness B2=self.Thickness+H*self.SlopeFrontFace+H*self.SlopeBackFace price.quantities.append(MeasurementRecord(self.textComment,self.nUnits,None,round((B1+B2)/2.,2),H))
def addFillingQuant(self, price): '''Add filling material quantities to the price defined as parameter :ivar price: instance of object UnitPriceQuantities ''' if self.fillingHeight > (self.Hfooting + self.ThickLeanConcr): price.quantities.append( MeasurementRecord( self.textComment, self.nUnits, self.mnLength, self.mnWidth, self.fillingHeight - self.Hfooting - self.ThickLeanConcr)) if self.Lexcav > 0 and self.fillingHeight > 0: price.quantities.append( MeasurementRecord( self.textComment, self.nUnits * 0.5, self.Lexcav, round(self.fillingHeight * self.excavSlope, 2), self.fillingHeight))
def addFormworkQuant(self, price): '''Add formwork quantities to he price defined as parameter :param price: instance of object UnitPriceQuantities ''' price.quantities.append( MeasurementRecord(self.textComment, self.nShafts, self.Hcolumn, round(math.pi * self.DiamColumn, 3), None))
def addPileDrillingQuant(self, price): '''Add quantities of pile drilling to he price defined as parameter :param price: instance of object UnitPriceQuantities ''' price.quantities.append( MeasurementRecord(self.textComment, self.nShafts, self.Hcolumn, None, None))
def addReinfConcreteQuant(self, price): '''Add reinforcing concrete quantities to he price defined as parameter :param price: instance of object UnitPriceQuantities ''' price.quantities.append( MeasurementRecord(self.textComment, self.nShafts, self.Hcolumn, round(math.pi * self.DiamColumn**2 / 4., 3), None))
def addFormworkQuant(self, price): '''Add formwork quantities to the price defined as parameter :ivar price: instance of object UnitPriceQuantities ''' if self.Lformwork > 0: price.quantities.append( MeasurementRecord(self.textComment, self.nUnits, self.Lformwork, None, self.Hfooting))
def addExposedWallFormworkQuant(self, price): '''Add exposed-wall formwork quantities to the price defined as parameter :price: instance of object UnitPriceQuantities ''' if self.LexposFormwork > 0: price.quantities.append( MeasurementRecord(self.textComment, self.nUnits, self.LdeckUnifSect, self.LexposFormwork, None))
def addLeanConcreteQuant(self, price): '''Add lean concrete quantities to the price defined as parameter :ivar price: instance of object UnitPriceQuantities ''' if self.ThickLeanConcr > 0: price.quantities.append( MeasurementRecord(self.textComment, self.nUnits, self.mnLength, self.mnWidth, self.ThickLeanConcr))
def addGenericQuant(price, textComment, nUnits, length, width, height): '''Add generic quantities to the price defined as parameter :ivar price: instance of object UnitPriceQuantities :ivar textComment: string to comment each measuremt line generated :ivar nUnits: number of units :ivar length, width, height: dimensions ''' price.quantities.append( MeasurementRecord(textComment, nUnits, length, width, height))
def addNeopreneBearingPadQuant(price, textComment, nUnits, length, width, height): '''Add neoprene bearing pad quantities to the price defined as parameter :ivar price: instance of object UnitPriceQuantities :ivar textComment: string to comment each measuremt line generated :ivar nUnits: number of units :ivar length, width, height: dimensions of the neoprene pad (usually in dm) ''' price.quantities.append( MeasurementRecord(textComment, nUnits, length, width, height))
def addExposedWallFormworkQuant(self,price): '''Add exposed-wall formwork quantities to the price defined as parameter :ivar price: instance of object UnitPriceQuantities ''' formWidth=round(self.meanHeight*math.sqrt(1+self.SlopeFrontFace**2),2) price.quantities.append(MeasurementRecord(self.textComment,self.nUnits,self.Length,formWidth,None))
def addDrainageTubeQuant(self,price): '''Add drainage tube quantities to the price defined as parameter :ivar price: instance of object UnitPriceQuantities ''' price.quantities.append(MeasurementRecord(self.textComment,self.nUnits,self.Length,None,None))
def addReinfConcreteQuant(self, price): '''Add reinforcing concrete quantities to be added to a pyCost project ''' price.quantities.append( MeasurementRecord(self.textComment, self.nUnits, self.LdeckUnifSect, self.AreaUnifSect, None))
def addReinfConcreteQuant(self,price): '''Add reinforcing concrete quantities to be added to a pyCost project ''' price.quantities.append(MeasurementRecord(self.textComment,self.nUnits, self.Length, self.meanThickness, self.meanHeight))
def addWaterproofingPrimerQuant(self,price): '''Add waterproofing primer quantities to the price defined as parameter :ivar price: instance of object UnitPriceQuantities ''' watproofWidth=round(self.meanHeight*math.sqrt(1+self.SlopeBackFace**2),2) price.quantities.append(MeasurementRecord(self.textComment,self.nUnits,self.Length,watproofWidth,None))
def addReinfConcreteQuant(self, price): '''Add reinforcing concrete quantities to be added to a pyCost project ''' price.quantities.append( MeasurementRecord(self.textComment, self.nUnits, self.mnLength, self.mnWidth, self.Hfooting))