DIAdem Help

Method: Move for Units

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

Method: Move for Units

Changes the position of a unit in the Units collection in the units catalog. If you change the position, you also change the index of the unit.

Object.Move(FromPosition, ToPosition)
ObjectUnits
Object with this method
FromPositionLongInteger
Specifies the start position.
ToPositionLongInteger
Specifies the target position.

The following example moves the first unit of the physical quantity volume to the fourth position:

VBScriptPython

 

Call UnitCatalog.Quantities("volume").Units.Move(1,4)