Eplan Platform API
Eplan.EplApi.DataModel Namespace / Project Class / ChangeLocationName Method
Location object.
New name of a location.

In This Topic
    ChangeLocationName Method
    In This Topic
    Changes name of the given location. After that change a location object becomes invalid, to get this object once again, use the GetLocationObjects function.
    Syntax
    public Location ChangeLocationName( 
       Location oLocation,
       string strName
    )
    public:
    Location^ ChangeLocationName( 
       Location^ oLocation,
       String^ strName
    ) 

    Parameters

    oLocation
    Location object.
    strName
    New name of a location.

    Return Value

    Location object.
    Exceptions
    ExceptionDescription
    Thrown when a location is not created.
    Thrown when a location name contains special '.' character.
    Remarks
    The project must be opened in exclusive mode.
    See Also