Function GetObjTags

 

Function GetObjTags ( ByVal hHandle& ) As String

Purpose: Retrieve tag string for a bus, generator, load, shunt, switched shunt, transmission line, transformer, switch, phase shifter, distance relay, overcurrent relay, fuse, recloser, relay group.

Works in:      OneLiner and Power Flow.

Parameters:     

nHandle       [in] data object handle

Return value:

Object tag string.

Remarks:

 

Example:

 

   Sub main()

   If GetEquipment( TC_PICKED, ObjHnd& ) = 0 Then

     Print "Please select an object"

     Exit Sub

   End If

   If EquipmentType( ObjHnd ) = TC_RLYGROUP Then

    RelayHnd& = 0

    While GetRelay( ObjHnd, RelayHnd ) > 0

    Print GetObjTags( RelayHnd )

    Wend

   Else

    Print GetObjTags( ObjHnd )

   End If

   End Sub