CreateBus Method
Declaration Description Parameters Method Result See Also Example

<< Click to Display Table of Contents >>

Navigation:  Additional Resources > OLE/COM Automation > Methods > Create >

CreateBus Method
Declaration Description Parameters Method Result See Also Example

Previous pageReturn to chapter overviewNext page

 

Section

Declaration

function CreateBus(const Name, Number, Voltage: WideString; X, Y, W, H: Integer) : WideString;

Section

Description

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.

Section

Parameters

 

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.

 

Section

Method Result

Unique Bus Bar Name.

Section

Example

NewName := PowaMasterObj.CreateBus( OldName, NumberStr, VoltageStr, X, Y, W, H);
 

if CompareText(NewName, OldName) <> 0 then ShowMessage('The Name has been changed;

Section

See Also

CreateGenerator

CreateLoad

CreateMotor

CreateInductionMotor

CreateShuntCap

CreateCoGen

CreateHarmonicSource

CreateBranch

CreateBranchSection

CreateTrfrBranch

CreateProtectionDevice

CreateSeriesCap

CreateSeriesReactor

Section