Macro alteration commands

<< Click to Display Table of Contents >>

Navigation:  Macros > Macro commands and parameters >

Macro alteration commands

Using an alteration command, it is possible to:

•Assign a value to a variable

•Assign a value to an attribute associated with a particular object

•Assign a value to an attribute, as associated with all selected objects of a particular type

 

Alteration commands are used with the most common attributes: switch positions, tap positions and powers. A list of the attributes of the various components using the macro language is given in a table.

 

The alteration options are:

•SetPQS: define whether the power attributes are respresented in kW/kvar/kVA or in MW/Mvar/MVA

•Set: set a variable or an attribute to a particular value

•Add: increase the value of a variable or an attribute by a certain amount

•Subtract: decrease the value of a variable or an attribute by a certain amount

•Multiply: multiply the value of a variable or an attribute by a value

•Divide: divide the value of a variable or an attribute by a value

 

It is also possible to use a command to alter a parameter, as associated with all components of a Selection. The alteration options are then:

•SetSelection: set an attribute of all components within a Selection to a particular value

•AddSelection: increase the value of an attribute of all components within a Selection by a certain amount

•SubtractSelection: decrease the value of an attribute of all components within a Selection by a certain amount

•MultiplySelection: multiply the value of an attribute of all components within a Selection by a value

•DivideSelection: divide the value of an attribute of all components within a Selection by a value

 

•Arrays: defined to store a large amount of calculated values

 

•Trace: select objects in a trace, starting at Node, in direction of Branch.

 

See also:

•Arithmetic functions: functions for rounding, square, logarithm an goniometry

•Procedures: user defined procedures

•Conditional actions: executing or skipping parts of a macro, depending on a value

•Loops: repeatedly executing or skipping parts of a macro, depending on a value

•Calculation: determining results

•Reporting: entering data into Excel cells or formatting them

•Input: reading from spreadsheets for a macro execution

•Network actions: saving networks modified by the macro

 

Back to Commands and Parameters.