Пример #1
0
 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))
Пример #2
0
    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))
Пример #3
0
    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))
Пример #4
0
    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))
Пример #5
0
    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))
Пример #6
0
    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))
Пример #7
0
    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))
Пример #8
0
    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))
Пример #9
0
    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))
Пример #10
0
    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))
Пример #11
0
    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))
Пример #12
0
    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))
Пример #13
0
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))
Пример #14
0
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))
Пример #15
0
    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))
Пример #16
0
    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))
Пример #17
0
 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))
Пример #18
0
 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))
Пример #19
0
    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))
Пример #20
0
 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))