API Help
Eplan.EplApi.DataModel Namespace / Project Class / GetLocations Method
Location hierarchy
Example

In This Topic
    GetLocations Method
    In This Topic
    Returns array of names of project's location for given hierarchy type (PLANT, LOCATION etc.)
    Syntax
    public string[] GetLocations( 
       Project.Hierarchy type
    )
    public:
    array<String^>^ GetLocations( 
       Project.Hierarchy type
    ) 

    Parameters

    type
    Location hierarchy

    Return Value

    Example
    string[] strLocations = oProject.GetLocations(Project.Hierarchy.Plant);
    Console.WriteLine(" Locations :");
    foreach(string loc in strLocations)
    Console.WriteLine("  " + loc);
    
    
    See Also