# getBusCoordinatesArray

Gets the coordinates for all buses that have a location in OpenDSS

## Contents

- Syntax
- Description
- Inputs
- Outputs
- Example

## Syntax

    [busCoordNames busCoordArray] = getBusCoordinatesArray(DSSCircObj);

## Description

Function to get the buses and their coordinates for all buses that have a location in OpenDSS.

## Inputs

- `DSSCircObj` - link to OpenDSS active circuit and command text (from DSSStartup)

## Outputs

- `busCoordNames` is the array of the bus names
- `busCoordArray` is the matrix of bus coordinates (X,Y) corresponding to the bus name in busCoordNames.

## Example

Returns the bus names and coordinates for the active circuit in OpenDSS

    [DSSCircObj, DSSText, gridpvPath] = DSSStartup;
    DSSText.command = ['Compile "' gridpvPath 'ExampleCircuit\master_Ckt24.dss"'];
    DSSText.command = 'solve';
    [busCoordNames busCoordArray] = getBusCoordinatesArray(DSSCircObj);
    size(busCoordArray)
    %

    ans =

            1347           2