DIAdem Help

Method: ResetModified for UnitCatalog

  • Updated2024-09-12
  • 1 minute(s) read

Method: ResetModified for UnitCatalog

Identifies the current units catalog as unchanged.

Object.ResetModified
ObjectUnitCatalog
Object with this method

The following example adds the physical quantity NewQuantity to the units catalog, which changes the unit catalog. The ResetModified method then identifies the units catalog as unchanged.

VBScriptPython

 

If Not UnitCatalog.Quantities.Exists("NewQuantity") Then
  Call UnitCatalog.Quantities.Add("NewQuantity",1,1,1,1,1,1,1)
  Call UnitCatalog.ResetModified()
End If