What do I need to know about UniversalTypes?
  • 29 Jun 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light

What do I need to know about UniversalTypes?

  • Dark
    Light

Article summary

UniversalTypes are attributes for building products.

(Actually they are much more but this is probably what you as a developer only want to know ;-)


UniversalType Center

The UniversalTypeCenter is the place where buildingSMART UniversalTypes are managed.

UniversalTypes

UniversalTypes are properties that can be assigned to products. In the UniversalType Center the UniversalTypes don't yet have a value. The UniversalType code is unique, name and description are language specific.

query q1 {
  utsearch(query: "temperature") {
    content {
      code
      name
      description
    }
  }
}

UniversalTypes are of a certain type: boolean, text, numeric, range.

query q1 {
  utsearch(query: "temperature") {
    content {
      code
      name
      description
      type {
        type
        rangeMin
        rangeMax
      }
    }
  }
}

UniversalTypes are in a hierarchy with these levels: UT, MT, ST, ET.

query q2 {
  utsearch(code: "ET05-C30X") {
    content {
      code
      level
    }
  }
}

For each UniversalType you can request its parent element.

query q3 {
  utsearch(code: "ET05-C30X") {
    content {
      code
      parent {
        code
        parent {
          code
          parent {
            code
          }
        }
      }
    }
  }
}

Or its children

query q4 {
  utsearch(code: "ET05-C30X") {
    content {
      code
      children {
        content {
          code
          name
          description
        }
      }
    }
  }
}

Was this article helpful?