Macro command MultiplySelection

<< Click to Display Table of Contents >>

Navigation:  Macros > Macro commands and parameters > Macro alteration commands >

Macro command MultiplySelection

Purpose:

Multiplies an attribute of all components within a Selection with a value.

 

General notation:

MultiplySelection( Object( SelectionName ).Attribute , value )

 

Examples:

Increase all voltage controlled generators within selection with name 'MySelection' reference voltage with 10%:

 MultiplySelection( SynGen( 'MySelection' ).Uref , 1.1 )

Increase all loads within selection with name 'MySelection' with 5%:

 MultiplySelection( Load( 'MySelection' ).Pl , 1.05 )

 MultiplySelection( Load( 'MySelection' ).Ql , 1.05 )