QDVWBS.EmptyCompleteEstimate Method

NOTE: This member is now obsolete. Use Qdv.UserApi.IEstimateVersion.EmptyCompleteEstimate instead.

Removes all tasks and branches from WBS, including associated minute rows. It leaves only one parent node (001000000000000000000000) and one blank sub-task (001001000000000000000000).
[Obsolete("Use Qdv.UserApi.IEstimateVersion.EmptyCompleteEstimate instead.")] 
public int EmptyCompleteEstimate( 
bool EmptyDatabaseOfTheEstimate = False, 
bool EmptyOverheadCostsTask = False, 
ref string ErrorMessage = "" 
)
This language is not supported or no code example is available.

Parameters

EmptyDatabaseOfTheEstimate
bool

Optional. The default value is False. If set to true then all rows from database of estimate are deleted; otherwise they are kept.

EmptyOverheadCostsTask
bool

Optional. The default value is False. If set to true then all rows from overhead costs task are removed; otherwise they are kept.

ErrorMessage
string

Optional. Returns the error message if any. Returns empty string when no errors.

Return Value

int

The function returns an error number. 0 means no error.

Remarks
 
The function neither rebuild WBS nor minutes. You must call QDVEstimate.Check_And_Repaint method after any change brought by the function.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition