code: def getrefnames(idf, objname):
      
      iddinfo = idf.idd_info
      dtls = idf.model.dtls
      index = dtls.index(objname)
      fieldidds = iddinfo[index]
      for fieldidd in fieldidds:
          if 'field' in fieldidd:
              if fieldidd['field'][0].endswith('Name'):
                  if 'reference' in fieldidd:
                      return fieldidd['reference']
                  else:
                      return []
docs: get the reference names for this object