<< Click to Display Table of Contents >> Navigation: Macros > Macro commands and parameters > Macro alteration commands > Macro command AddSelection |
Purpose:
Adds a value to an attribute of all components within a Selection.
General notation:
AddSelection( Object( SelectionName ).Attribute , value )
Examples:
Increase all transformer tap changers within selection with name 'MySelection' with 1 position:
AddSelection( Transformer( 'MySelection' ).Tap , 1 )
AddSelection( SpecialTransformer( 'MySelection' ).Tap , 1 )
AddSelection( 3WTransformer( 'MySelection' ).TapControl , 1 )
Increase all loads within selection with name 'MySelection' with 100 kW:
AddSelection( Load( 'MySelection' ).Pl , 0.1 )