Skip to main content

Variant over Global Data

GLDF files describe single products and Variants thereof. That said, even though you define a single product in a GLDF file, every product consists of at least one Variant, but there is no limit to the number of Variants of a single product you can add to a GLDF file.

Some information applies to all Variants of a product. Other information applies to specific Variants only.

For this reason, we divided the GLDF product definitions into two parts. The first part is the ProductMetaData. Anything defined here will apply to all variants in the GLDF file.

The second part is the Variants part. You can define the variations of your product and apply properties to the different Variants individually instead of globally in the ProductMetaData part above.

Convention

If a property is present in ProductMetaData

  • it applies to all variants in the gldf file
  • properties can be overwritten or enhanced by the variants

This convention always prevails without having to be explicitly defined.

Example 1

Let's assume you have a standing luminaire in your product portfolio with different electrical components for other markets. You can apply all the same pictures, names, descriptions, etc., to all variants but define separate electrical properties in the electrical section of the descriptive attributes.

Example 2

You have a track-mounted luminaire that comes with different reflectors. All Luminaires will have the same name, descriptive attributes, etc. However, the 3D Model and the Light distribution would change for the other variants.

For detailed examples with XML code, see ProductMetaData ⇄ Variants