<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
SetRevisionCounters Method (IEdmRevisionMgr)
See Also Example

Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: Visual Basic Language Filter: C# Language Filter: C++/CLI

EPDM.Interop.epdm Namespace > IEdmRevisionMgr Interface : SetRevisionCounters Method (IEdmRevisionMgr)

Visual Basic
C#
C++/CLI

lFileID
  ID of file in which to set counters

poCounters
  Array of EdmRevCounter structures; one structure for each revision component

Sets the revision number component counters to specified values.

# Syntax

Visual Basic |
--- | ---

    Sub SetRevisionCounters( _
       ByVal lFileID As System.Integer, _
       ByVal poCounters() As EdmRevCounter _
    )

C# |
--- | ---

    void SetRevisionCounters(
       System.int lFileID,
       EdmRevCounter[] poCounters
    )

C++/CLI |
--- | ---

    void SetRevisionCounters(
    &   System.int lFileID,
    &   array<EdmRevCounter>^ poCounters
    )

#### Parameters

lFileID
  ID of file in which to set counters
poCounters
  Array of EdmRevCounter structures; one structure for each revision component

# Example

Set Initial Revision (VB.NET)
Set Initial Revision (C#)

# Remarks

This method only adds the new counters to this batch. After calling this method, you must call IEdmRevisionMgr::Commit to commit the changes to the database.

This method only sets the revision component counters. It does not generate new revision numbers using any of the revision number generators that may be using the components. To create a new revision number for the file, you must also call IEdmRevisionMgr::IncrementRevision.

The order of calls to this method and IEdmRevisionMgr::IncrementRevision does not matter. Calls to IRevisionMgr::IncrementRevision are always processed after calls to this method.

Return codes:

- S_OK: The method successfully executed.

# See Also

####

IEdmRevisionMgr Interface
IEdmRevisionMgr Members

# Availability

SOLIDWORKS PDM Professional 2007