SOLIDWORKS PDM Professional API Help Send Feedback
SetVar Method (IEdmBatchUpdate2)
See Also 
EPDM.Interop.epdm Namespace > IEdmBatchUpdate2 Interface : SetVar Method (IEdmBatchUpdate2)


lFileID
ID of file to which to write the file card variable
lVariableID
ID of file card variable to update
poValue
New value of the file card variable
bsConfiguration
Name of configuration to which to write the file card variable; ignored if lEdmBatchFlags contains EdmBatchFlags.EdmBatch_AllConfigs
lEdmBatchFlags
Combination of EdmBatchFlags bits
Adds a file card variable to the batch of variables to update.

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 file card variable
lVariableID
ID of file card variable to update
poValue
New value of the file card variable
bsConfiguration
Name of configuration to which to write the file card variable; ignored if lEdmBatchFlags contains EdmBatchFlags.EdmBatch_AllConfigs
lEdmBatchFlags
Combination of EdmBatchFlags bits

Example

See the IEdmBatchUpdate2 examples.

Remarks

Return codes:

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

See Also

Availability

SOLIDWORKS PDM Professional Version 6.3