| Visual Basic | |
|---|---|
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- Call IEdmBomView::GetColumns to get EdmBomColumn for this BOM cell.
- Set IVariableID with EdmBomColumn.mlVariableID.
- Set eColumn with EdmBomColumn.meType.
- S_OK: The method successfully executed.
- S_FALSE: One of the arguments is invalid.
SOLIDWORKS PDM Professional 2009