constants DefSchedulePDMEnum
The DefSchedulePDMEnum type defines options to be used by the SchedulePDM method. The DefSchedulePDM property indicates the default options to be used by the next call of the SchedulePDM method. In other words, we will recommend calling/setting the DefSchedulePDM property before calling the SchedulePDM method. 

The DefSchedulePDMEnum type defines the following values:

NameValueDescription
exPDMScheduleType0 Specifies the type of scheduling the next SchedulePDM call executes. The valid values are 0, 1, 2 as explained bellow:
  • 0, (default). exPDMScheduleDate has no effect. The start and end of the project is not fixed, so once a bar is moved the starting or ending point of the project may be variable.
  • 1, exPDMScheduleDate indicates the start of the project. If this option is set, the next call of the SchedulePDM consider this value as being the start of the project, and so all the bars starts scheduling using this date. If DefSchedulePDM(exPDMScheduleType) property is 1, the DefSchedulePDM(exPDMScheduleDate) property indicates the date to start the project.
  • 2, exPDMScheduleDate indicates the end of the project. If this option is set, the next call of the SchedulePDM consider this value as being the end of the project, and so all the bars starts scheduling using this date as the end of the project, so where the project should end. If DefSchedulePDM(exPDMScheduleType) property is 2, the DefSchedulePDM(exPDMScheduleDate) property indicates the date to end the project.

(long expression)

exPDMScheduleDate1 Specifies the date to start or end the project. This option is valid only if the exPDMScheduleType is 1 or 2. 

For instance the following sample specifies the start of the project to be 1/8/2001, 

With G2antt1
	With .Items
		.DefSchedulePDM(exPDMScheduleType) = 1
		.DefSchedulePDM(exPDMScheduleDate) = #1/8/2001#
		.SchedulePDM 0,"K1"
	End With
End With

and the following sample specifies the end of the project to be 1/8/2001

With G2antt1
	With .Items
		.DefSchedulePDM(exPDMScheduleType) = 2
		.DefSchedulePDM(exPDMScheduleDate) = #1/8/2001#
		.SchedulePDM 0,"K1"
	End With
End With

(date expression)

exPDMErrorColor2 Specifies the color to show the error nodes. This property can be used to highlight the nodes that makes the layout impossible to complete. This property is ignored if the exPDMErrorColor is 0. 

(color expression)

exPDMCycleColor3 Specifies the color to show the cycling nodes. This property can be used to highlight the nodes that makes the layout impossible to complete. This property is ignored if the exPDMCycleColor is 0. Set the exPDMCallHasCycle property on True, so the chart displays the entire cycle, not just the node that fails to be arranged in the layout.

The following screen shot shows in red the cycle that fails to layout the chart based on the links:

(color expression)

exPDMCallHasCycle4 Indicates whether the control shows the entire cycle, so the layout can not be completed. By default, the exPDMCallHasCycle property is False, which indicates that the control shows no cycles, if the layout fails to complete.  

(boolean expression)

exPDMCriticalPathBarColor5 Indicates the color to show the activities on the critical path. By default, the exPDMCriticalPathBarColor is 0. This property is ignored if the exPDMCriticalPathBarColor is 0. The exPDMCriticalPathBarColor color is applied to the node, only if it has no color associated using the Items.ItemBar(exBarColor) ( Items.ItemBar(exBarColor) property is 0 ). The Items.ItemBar(exBarCriticalPath) property on True specifies whether the bar makes part of the critical path.

The following screen shot shows in green the critical path (T1, T3, T5, T7 and T8) for the layout:

(color expression)

exPDMCriticalPathOffBarColor6 Indicates the color to show the activities off the critical path. By default, the exPDMCriticalPathOffBarColor is 0. This property is ignored if the exPDMCriticalPathOffBarColor is 0. The exPDMCriticalPathOffBarColor color is applied to the node, only if it has no color associated using the Items.ItemBar(exBarColor) ( Items.ItemBar(exBarColor) property is 0 ). The Items.ItemBar( exBarCriticalPath) property on False specifies whether the bar is off of the critical path.

(color expression)

exPDMCriticalPathLinkColor7 Indicates the color to show the links on the critical path. By default, the exPDMCriticalPathLinkColor is 0. This property is ignored if the exPDMCriticalPathLinkColor is 0. 

(color expression)

exPDMCriticalPathOffLinkColor8 Indicates the color to show the links off of the critical path. By default, the exPDMCriticalPathOffLinkColor is 0. This property is ignored if the exPDMCriticalPathOffLinkColor is 0. 

(color expression)

exPDMCriticalPathLenMethod9 Determines the way how the length of the path is computed.

(long expression)