<< Click to Display Table of Contents >> Navigation: Macros > Macro attributes |
All objects have attributes. These are, on the one hand, the input data, as they are fillable (in the forms) in Vision by the user.
On the other hand, there are the calculated output data, as viewable after a calculation in the network diagram or in the detail screen.
Almost all objects also have the attribute 'Result'. This is a text that has the value 'NO' if no calculation results are available. After performing a calculation, this variable has the value below:
'LF': loadflow results available
'IEC': IEC 60909 results available
'FA': Fault analysis results available
'REL': result reliability calculation available
'PROT': result security calculation available
'SEL': result selectivity calculation available
'RIP': result tone frequency calculation available.
By default, the object variable named 'Network' is present. This contains the current network. Of this variable, the attribute 'Result' can be retrieved via: Network.Result. This can be used to test whether the results are available for the entire network.
All network results within the macro expire if the network is changed by a command. If some results must remain available later in the macro, those values must be stored in variables.
The attributes that can be accessed and edited within a macro are listed in a table. All these attributes can be edited and printed with the commands from the macro language. Here the value is rounded in case a broken real number is assigned to an attribute of integer type. All attributes belong to specific objects. There is a table, which shows for all objects which attributes are available.
An attribute cannot be used in isolation – it must always be associated with an object. The object name is given first, immediately followed by a full stop, then the attribute name. The general notation is:
Object( ObjectName ).Attribute
Examples:
Cable( 'MyCable' ).P1
or
SynMot( 'MyMotor' ).Pref