Adds an equation at the specified index.

# .NET Syntax

Visual Basic (Declaration) | |
---|

Function Add2( _
ByVal *Index* As System.Integer, _
ByVal *Equation* As System.String, _
ByVal *Solve* As System.Boolean _
) As System.Integer |

Visual Basic (Usage) | |
---|

Dim instance As IEquationMgr
Dim Index As System.Integer
Dim Equation As System.String
Dim Solve As System.Boolean
Dim value As System.Integer
value = instance.Add2(Index, Equation, Solve) |

C++/CLI | |
---|

System.int Add2(
& System.int *Index*,
& System.String^ *Equation*,
& System.bool *Solve*
) |

#### Parameters

*Index*
- Index of the new equation (-1 places it at the end of the list)
*Equation*
- String containing the equation (see
**Remarks**) *Solve*
- True to solve the equation immediately; false otherwise (see
**Remarks**)

#### Return Value

Index of the new equation if successfully added, -1 if an error

# Example

# Remarks

# See Also

# Availability

SolidWorks 2010 FCS, Revision Number 18.0