IEstimateVersion.UpdateSets (Boolean, IEnumerable<String>, Boolean, Boolean) Method

Updates the sets in the estimate.
Function UpdateSets( _ 
ByVal entireEstimate As Boolean, _ 
Optional ByVal restrictToDatabases As IEnumerable(Of String) = Nothing, _ 
Optional ByVal dontUpdateEmptyFields As Boolean = True, _ 
Optional ByVal removeBoqReferences As Boolean = False _ 
) As IWorkbook
This language is not supported or no code example is available.
IWorkbook UpdateSets( 
bool entireEstimate
IEnumerable<string> restrictToDatabases = Nothing, 
bool dontUpdateEmptyFields = True, 
bool removeBoqReferences = False 
)
This language is not supported or no code example is available.

Parameters

entireEstimate
bool

Required. If set to true, then the sets in the entire estimate are to be updated. Otherwise, if false, the sets from the current selection in minutes are to be updated.

restrictToDatabases
IEnumerable<string>

Optional. The list of the set databases from which the sets will be updated; sets from the other databases will be skipped. The check is only made at the highest level (sets within sets are not checked). The default value is null reference (Nothing in Visual Basic).

dontUpdateEmptyFields
bool

Optional. If set to true, then empty fields will not be updated. The Quantity field is never updated. The default value is true.

removeBoqReferences
bool

Optional. If set to true, then BoQ references from the articles of the updated sets are destroyed (removed). The info about these sets is stored in the returned workbook. If set to false, then sets having BoQ references from their articles will not be updated. The info about these sets is stored in the returned workbook. The default value is false.

Return Value

IWorkbook

A workbook which contains info about all sets which are skipped. The reason of skipping is included as well. If null reference (Nothing in Visual Basic) is returned, this means that all sets were updated.

Exception type Condition

QdvApiException

A problem occurred.

Remarks
 
The sets in the estimate are in fact replaced, not updated.
Version
 
Available since QDV 7.15.556.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition