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

Updates the sets in the estimate.
Function UpdateSets( _ 
ByVal taskID As String, _ 
ByVal fromRow As Integer, _ 
ByVal toRow As Integer, _ 
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( 
string taskID
int fromRow
int toRow
IEnumerable<string> restrictToDatabases = Nothing, 
bool dontUpdateEmptyFields = True, 
bool removeBoqReferences = False 
)
This language is not supported or no code example is available.

Parameters

taskID
string

The hex ID of the task where the sets will be updated. It can be also a branch or "All" or an empty string. If set to an empty string, the sets in the database of the estimate and the overhead task will be skipped. If set to "All", the above-mentioned sets will be also updated.

fromRow
int

The first line number of the task where sets will be updated.

toRow
int

The last line number of the task where sets will 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