|
<< Click to Display Table of Contents >> CreateBusEx Method
|
![]() ![]()
|
![]()
function CreateBusEx(
const Name, Number: WideString;
Voltage, Substation, AreaCode: WideString;
Latitude, Longitude: WideString;
X, Y, W, H: Integer
): WideString;
![]()
Creates a Bus Bar with the parameters passed to the function. Should there be a name conflict, it returns the actual name of the Bus Bar.
![]()
Parameter |
Usage |
Name |
Unique Name. If not unique, it will be changed and the new name returned by the method. |
Number |
Unique Number |
Voltage |
The voltage of the Bus Bar can be specified for example as either 88000 or 88kV |
Substation |
The name of the substation upstream from this bus. |
AreaCode |
The area code of the substation upstream from this bus. |
Latitude |
Latitude of the bus bar can either be specified in degrees or degrees minutes seconds as follows: degrees : -30.5535 d m s : -30 33 12.6 |
Longitude |
Longitude of the Bus Bar can either be specified in degrees or degrees minutes seconds as follows: degrees : -30.5535 d m s : -30 33 12.6 |
X |
X position of the Bus Bar. (Centre of the Bus Bar) |
Y |
Y position of the Bus Bar. (Centre of the Bus Bar) |
W |
Horizontal Width of the Bus Bar. |
H |
Vertical Height of the Bus Bar. |
![]()
Unique Bus Bar Name.
![]()
NewName := PowaMasterObj.CreateBusEx( Name, Number, Voltage, Substation, AreaCode, Latitude, Longitude, X, Y, W, H);
if CompareText(NewName, OldName) <> 0 then ShowMessage('The Name has been changed');
![]()
![]()