Click or drag to resize

IVariables Interface

Provides access to project variables.

Namespace:  EMInvent.InventSim.COMServer
Assembly:  InventSim (in InventSim.exe) Version: 5.1.12.6+develop
Syntax
public interface IVariables

The IVariables type exposes the following members.

Properties
  NameDescription
Public propertyCount
Returns the number of variables in the project.
Top
Methods
  NameDescription
Public methodCode exampleAdd
Adds new variable to the project. Once the variable is added, Expression is evaluated to calculate variable DoubleValue. If equation is specified as the Expression, variables used in the equation must be already present in the project. Mathematical function, e.g. sin(), exp() etc., can also be used in Expression.
Public methodGet
Returns a varialbe with the given name. If no variable is found, ArgumentException is thrown.
Public methodGetByIndex
Returns a varialbe with the given index. If no variable is found, ArgumentException is thrown.
Public methodGetOptimizableVariableValues
Return all optimizable variables values as an array of doubles.
Public methodRemove
Removes variable from the project.
Public methodRemoveAll
Removes all variables from the project.
Public methodSetOptimizableVariableValues
Sets all optimizable variables values at once.
Top
See Also