def METHOD_NAME(self, bdf_file, size=8):
    for comp, nodes in self.components.items():
        nodes = np.array(nodes, dtype='int32')
        nodes = np.unique(nodes)
        dnid = nodes.max() - nodes.min() + 1
        nnodes = len(nodes)
        #print('dnid=%s nnodes=%s' % (dnid, nnodes))
        if dnid == len(nodes):
            card = ['SPC1', self.constraint_id, comp, nodes.min(), 'THRU', nodes.max()]
        else:
            card = ['SPC1', self.constraint_id, comp] + list(nodes)
        if size == 8:
            bdf_file.write(print_card_8(card))
        else:
            bdf_file.write(print_card_16(card))