Hide Table of Contents
GetVar Method (IEdmBomCell)

Gets the value of the specified cell in this BOM row.

Syntax

Visual Basic (Declaration) 
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 Enterprise PDM 2009


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   GetVar Method (IEdmBomCell)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2015 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.