def METHOD_NAME(self, bdf_file, size=8, eids=None):
    if self.n:
        if eids is None:
            i = arange(self.n)
        else:
            i = searchsorted(self.element_id, self.eid)
        for (eid, pid, n, c) in zip(self.element_id[i], self.property_id[i], self.node_ids[i], self.components[i]):
            card = ['CELAS1', eid, pid, n[0], n[1], c[0], c[1]]
            if size == 8:
                bdf_file.write(print_card_8(card))
            else:
                bdf_file.write(print_card_16(card))