|
<< Click to Display Table of Contents >> CreateBus Method
|
![]() ![]()
|
![]()
function CreateBus(const Name, Number, Voltage: 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 |
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.CreateBus( OldName, NumberStr, VoltageStr, X, Y, W, H);
if CompareText(NewName, OldName) <> 0 then ShowMessage('The Name has been changed;
![]()
![]()