Skip to main content
Version: V3 (Ignition 8.3)

tamaki.mes.backup.compare.flattenMaterials

Description

Lifts each material's nested propertyValues into a new top-level materialPropertyValues list, adding the owning material's path (as materialPath) to every property value. The entityLists dictionary is mutated in place. Does nothing if there are no materials.

Syntax

tamaki.mes.backup.compare.flattenMaterials(entityLists)

Parameters

ParameterTypeNullableDescription
entityListsDictFalseA mapping of entity type to a list of entity dictionaries.

Returns

This function does not return a value. It mutates entityLists in place, adding a materialPropertyValues list.

Code Examples

tamaki.mes.backup.compare.flattenMaterials(data)
print(data["materialPropertyValues"])