# Object_ParamMath

## Using of command

Function calculates derived values from object parameter. It can be used mathematic oparation between objects or between object and constant and result is stored to one 10 derived parameters or to system variables. If you use system variable for strore result use it only if only one object wiht given name can be found. If there are more than one object with same object name system variable result will be calculated only from one of them.

## Commands parameters

Command has 6 parameters:

1. Object name: You need write object name,which parameters will be calculated
2. Parameter A: Type of object parameter which will be as a operand 1.
3. Operator: Mathematical operator, which will execute mat operation between operand 1 and operand 2
4. Parameter B: Type of object parameter which will be as a operand 2. It can be used olso option Constant number. In this case Constant from the next line will be used as a operand2
5. Parameter B constant. Constant number if option 'Constant number ' was selected in previous step
6. Result to: Select where result from calculation will be stored. It can be select Derived parameter or system variable. If there is expected more than 1 objects with same name derived parameter store specific value for each object. System variable store value only from one object if there is more objects with same name.

## Error codes

1. Error code -11:Error get parameter A.
2. Error code -12:Error get parameter B.
3. Error code -13:Bad operator type.
4. Error code -14:Bad vector size of parameter. A and B can not have same dimension.
5. Error code -15:Bad result variable.
6. Error code -16:Bad result vector size.