Eplan Platform API
Eplan.EplApi.DataModel.Graphics Namespace / GraphicalLayerTable Class / ReplaceLayer Method / ReplaceLayer(StorableObject[],GraphicalLayer,GraphicalLayer) Method
Array of Eplan.EplApi.DataModel.StorableObject for which layer should be changed.
Only objects from elementsToReplace which have this layer used will have layer changed.
Layer which will be set.

In This Topic
    ReplaceLayer(StorableObject[],GraphicalLayer,GraphicalLayer) Method
    In This Topic
    Replace Eplan::EplApi::DataModel: for given array of objects.
    Syntax

    Parameters

    elementsToReplace
    Array of Eplan.EplApi.DataModel.StorableObject for which layer should be changed.
    oldLayer
    Only objects from elementsToReplace which have this layer used will have layer changed.
    newLayer
    Layer which will be set.
    Exceptions
    ExceptionDescription
    Errors occurred during export. See the exception message for details.
    Remarks
    This method takes also oldLayer parameter so layer will be changed only for objects which use this layer.
    See Also