PfsSchedules

 

Remarks Properties Methods Samples

ED
avaliable
RT
avaliable

Remarks:Top

The Schedules collection contains the existing schedules of an equipment or a parent schedule. The single schedules contain the execution times and a pool of links, e.g. variables/functions. The times are linked to any number of switching points, that execute switching operations.

With the Item method combined with the Count property you can iterate through the existing schedules.

Properties:Top

Count Parent Session

Methods:Top

CreateSchedule DeleteSchedule Item

Samples:Top



''''''''''''''''''''''''''''''''''''''''''''''
''''''''Reading out Count of schedules''''''''
''''''Creating and Deleting of Schedules''''''
''''''''''''''''''''''''''''''''''''''''''''''

Private Sub shifttest()

	Dim mypfs As PfsEngine
	Set mypfs = MyWorkspace.ActiveDocument.pfs
  
	Debug.Print mypfs.Groups.Item(0).Schedules.Count

	mypfs.Groups.Item(0).Schedules.CreateSchedule ("myschedule1")
	mypfs.Groups.Item(0).Schedules.CreateSchedule ("myschedule2")
	mypfs.Groups.Item(0).Schedules.CreateSchedule ("myschedule3")

	Debug.Print mypfs.Groups.Item(0).Schedules.Count

	mypfs.Groups.Item(0).Schedules.DeleteSchedule ("myschedule1")
	mypfs.Groups.Item(0).Schedules.DeleteSchedule ("myschedule2")
	mypfs.Groups.Item(0).Schedules.DeleteSchedule ("myschedule3")

	Debug.Print mypfs.Groups.Item(0).Schedules.Count
  
End Sub