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