IEstimate.MakeVersionActive Method

Makes the specified estimate version active.
Sub MakeVersionActive( _ 
ByVal versionToActivate As Integer, _ 
Optional ByVal closingComment As String = "", _ 
Optional ByVal openingComment As String = "", _ 
Optional ByVal saveBoQ As Boolean = True, _ 
Optional ByVal saveWordTemplates As Boolean = False _ 
)
This language is not supported or no code example is available.
void MakeVersionActive( 
int versionToActivate
string closingComment = "", 
string openingComment = "", 
bool saveBoQ = True, 
bool saveWordTemplates = False 
)
This language is not supported or no code example is available.

Parameters

versionToActivate
int

The version number to be made active. The current version has always number 0. Older versions are numbered from the lowest number (usually 1) for the oldest one. Newer versions have higher number.

closingComment
string

The closing comment of the previous version/progress.

openingComment
string

The opening comment of the new version.

saveBoQ
bool

Optional. Default true. If set to true, then the BoQ if any will be copied to the old version ; otherwise, the BoQ of the current version will be used for all versions/progresses.

saveWordTemplates
bool

Optional. Default is false. If set to true, then Word templates if any will be copied to the old version; otherwise, the Word templates of the current version will be used for all versions/progresses.

Exception type Condition

QdvApiException

A problem occurred.

Remarks
 

No user events are fired.

You can get the available estimate version numbers from EstimateVersions property.

Version
 
Available since QDV 7.22.1022.

.NET Framework

Supported in: 4.8, 4.7, 4.6, 4.5.2

In this article

Definition