def add2model(self, model):
        self.model = model
        model.coorddict[self.id] = self
        if  self.idb <> None\
        and self.g1b <> None and self.g2b <> None and self.g3b <> None:
            if self.__class__.__name__.find('CoordR') > -1:
                newcsys = CoordR( int(self.idb), None, None, None, None )
            if self.__class__.__name__.find('CoordC') > -1:
                newcsys = CoordC( int(self.idb), None, None, None, None )
            if self.__class__.__name__.find('CoordS') > -1:
                newcsys = CoordS( int(self.idb), None, None, None, None )
            newcsys.ida   = self.idb
            newcsys.id    = self.idb
            newcsys.rcid  = self.rcid
            newcsys.rcobj = self.rcobj
            newcsys.card  = self.card
            newcsys.entryclass = self.entryclass
            newcsys.g1a   = self.g1b
            newcsys.g2a   = self.g2b
            newcsys.g3a   = self.g3b
            newcsys.model = model
            model.coorddict[newcsys.id] = newcsys
            self.idb      = None
            self.g1b      = None
            self.g2b      = None
            self.g3b      = None
dataset/ETHPy150Open saullocastro/mapy/mapy/model/coords.py/Coord.add2model/original