<xml> </xml>

SOLIDWORKS PDM Professional API Help | Send Feedback
SetVar Method (IEdmBatchUpdate)
See Also

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 > IEdmBatchUpdate Interface : SetVar Method (IEdmBatchUpdate)

Visual Basic
C#
C++/CLI

lFileID
  ID of file to which to write the variable

lVariableID
  ID of variable to update; retrieve using IEdmVariableMgr5

poValue
  New value of the variable

bsConfiguration
  Name of the configuration to which to write the variable; empty string for files without configurations

lEdmBatchFlags
  Combination of EdmBatchFlags bits

Obsolete. Superseded by IEdmBatchUpdate2::SetVar .

# Syntax

Visual Basic |
--- | ---

    Sub SetVar( _
       ByVal lFileID As System.Integer, _
       ByVal lVariableID As System.Integer, _
       ByRef poValue As System.Object, _
       ByVal bsConfiguration As System.String, _
       Optional ByVal lEdmBatchFlags As System.Integer _
    )

C# |
--- | ---

    void SetVar(
       System.int lFileID,
       System.int lVariableID,
       ref System.object poValue,
       System.string bsConfiguration,
       System.int lEdmBatchFlags
    )

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

    void SetVar(
    &   System.int lFileID,
    &   System.int lVariableID,
    &   System.Object^% poValue,
    &   System.String^ bsConfiguration,
    &   System.int lEdmBatchFlags
    )

#### Parameters

lFileID
  ID of file to which to write the variable
lVariableID
  ID of variable to update; retrieve using IEdmVariableMgr5
poValue
  New value of the variable
bsConfiguration
  Name of the configuration to which to write the variable; empty string for files without configurations
lEdmBatchFlags
  Combination of EdmBatchFlags bits

# Remarks

See the IEdmBatchUpdate remarks for information about using this method.

Return codes:

- S_OK: The method successfully executed.
- S_FALSE: One of the arguments is invalid.

# See Also

####

IEdmBatchUpdate Interface
IEdmBatchUpdate Members

# Availability

SOLIDWORKS PDM Professional Version 6.2