DIAdem Help

Method: RemoveAll for AssignmentList <Data>

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

Method: RemoveAll for AssignmentList <Data>

Deletes all assignments of an assignment channel in the script interface for internal data.

Object.RemoveAll()
ObjectAssignmentList <Data>
Object with this method

The following example generates an assignment channel with three assignments and then deletes all assignments:

VBScriptPython

 

Dim oMyGrp, oMyAssignChn, oMyAssgnList
Set oMyGrp = Data.Root.ChannelGroups(1)
Set oMyAssignChn = oMyGrp.Channels.AddAssignmentChannel("MyAssignmentChn","Default Value")
Set oMyAssgnList = oMyAssignChn.AssignmentList
Call oMyAssignChn.AssignmentList.Add("text1",Array(0,1))
Call oMyAssignChn.AssignmentList.Add("text2",Array(2,3))
Call oMyAssignChn.AssignmentList.Add("text3",Array(4,5))
Call oMyAssgnList.RemoveAll()