Skip to main content
Version: V2 (Ignition 8.1)

system.mes.material.doesMaterialClassExist

Description​

Checks if a Material Classes object with the given ID or path exists.

Permissions​

This method requires the MATERIAL.READ.GET permission.

Syntax​

system.mes.material.doesMaterialClassExist(idOrPath)

Parameters​

ParameterTypeNullableDescription
idOrPathStringFalseThe ULID or path of the material class to check.

Returns​

Returns a boolean indicating whether the material class exists.

Code Examples​

# Check whether the material class exists
materialClassExists = system.mes.material.doesMaterialClassExist('RAW/FLAV')

# Output the boolean result
print(materialClassExists)