PfsModellBreak

 

Remarks Properties Methods Samples

ED
avaliable
RT
avaliable

Remarks:Top

The ModellBreak object is a break within a shift in a time model. During the defined period of time the production should be interrupted. The breaks consist of an unique name and an unique period of time.

Properties:Top

EndTime Guid KeyNote
Name Notes Parent
Session StartTime  

Methods:Top

Rename    

Samples:Top




''''''''''''''''''''''''''''''''''''''''''''''
'''''''''''''Creating a break'''''''''''''''''
''''''''and reading out all breaks''''''''''''
''''''''''''''''''''''''''''''''''''''''''''''
Sub holidaytest()

Dim mypfs As PfsEngine
Set mypfs = MyWorkspace.ActiveDocument.PFS
Dim i As Double
Dim o As Double

	mypfs.Groups.Item(0).TimeModells.Item(0).Shifts.Item(0).Breaks.CreateBreak ("testbreak1")

	For i = 0 To mypfs.Groups.Item(0).TimeModells.Item(0).Shifts.Count - 1
			Debug.Print "---" & mypfs.Groups.Item(0).TimeModells.Item(0).Shifts.Item(i).Name

				For o = 0 To mypfs.Groups.Item(0).TimeModells.Item(0).Shifts.Item(0).Breaks.Count - 1
					Debug.Print mypfs.Groups.Item(0).TimeModells.Item(0).Shifts.Item(0).Breaks.Item(o).Name
				Next o
	Next i

End Sub