Hide Table of Contents
SetVar Method (IEdmBomCell)

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

Syntax

Visual Basic (Declaration) 
Function SetVar( _
   ByVal lVariableID As System.Integer, _
   ByVal eColumn As EdmBomColumnType, _
   ByVal oNewValue As System.Object, _
   ByVal bsConfiguration As System.String, _
   ByVal eOption As EdmBomSetVarOption, _
   ByRef pbsErrorMessage As System.String _
) As System.Boolean
C# 
System.bool SetVar( 
   System.int lVariableID,
   EdmBomColumnType eColumn,
   System.object oNewValue,
   System.string bsConfiguration,
   EdmBomSetVarOption eOption,
   out System.string pbsErrorMessage
)
C++/CLI 
System.bool SetVar( 
&   System.int lVariableID,
&   EdmBomColumnType eColumn,
&   System.Object^ oNewValue,
&   System.String^ bsConfiguration,
&   EdmBomSetVarOption eOption,
&   [Out] System.String^ pbsErrorMessage
) 

Parameters

lVariableID
ID of the variable to set (see Remarks)
eColumn
Type of column as defined in EdmBomColumnType (see Remarks)
oNewValue
New value
bsConfiguration
Name of the configuration in which to set the value of this BOM cell
eOption
Type of value to set as defined in EdmBomSetVarOption
pbsErrorMessage
Error message

Return Value

True if the value is successfully set, false if not

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:   SetVar 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.