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


lVariableID
ID of the variable to get (see Remarks)
eColumn
Type of column as defined in EdmBomColumnType (see Remarks)
poValue
Value in this BOM cell
poComputedValue
Computed value in this BOM cell
pbsConfiguration
Name of the configuration from which to get this BOM cell's value
pbReadOnly
True if this BOM cell cannot be updated, false if it can be updated by IEdmBomCell::SetVar
Gets the value of the specified cell in this BOM row.

Syntax

Visual Basic 
Sub GetVar( _
   ByVal lVariableID As System.Integer, _
   ByVal eColumn As EdmBomColumnType, _
   ByRef poValue As System.Object, _
   ByRef poComputedValue As System.Object, _
   ByRef pbsConfiguration As System.String, _
   ByRef pbReadOnly As System.Boolean _
) 
C# 
void GetVar( 
   System.int lVariableID,
   EdmBomColumnType eColumn,
   out System.object poValue,
   out System.object poComputedValue,
   out System.string pbsConfiguration,
   out System.bool pbReadOnly
)
C++/CLI 
void GetVar( 
&   System.int lVariableID,
&   EdmBomColumnType eColumn,
&   [Out] System.Object^ poValue,
&   [Out] System.Object^ poComputedValue,
&   [Out] System.String^ pbsConfiguration,
&   [Out] System.bool pbReadOnly
) 

Parameters

lVariableID
ID of the variable to get (see Remarks)
eColumn
Type of column as defined in EdmBomColumnType (see Remarks)
poValue
Value in this BOM cell
poComputedValue
Computed value in this BOM cell
pbsConfiguration
Name of the configuration from which to get this BOM cell's value
pbReadOnly
True if this BOM cell cannot be updated, false if it can be updated by IEdmBomCell::SetVar

Example

Remarks

  1. Call IEdmBomView::GetColumns to get EdmBomColumn for this BOM cell.
  2. Set IVariableID with EdmBomColumn.mlVariableID.
  3. Set eColumn with EdmBomColumn.meType.

Return codes:

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

See Also

Availability

SOLIDWORKS PDM Professional 2009