Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / CableDrawing Class / RemoveSources Method
Sources to remove from this drawing. (Drawing must contain all of them - EPLAN.Harness.API.Exceptions.ArgumentException is thrown otherwise.) Call the Drawing2D.GetSources to obtain a list of current sources of this drawing.
In This Topic
    RemoveSources Method (CableDrawing)
    In This Topic
    Remove given source(s) from this drawing.
    Syntax
    public override void RemoveSources( 
       IEnumerable<DerivationSource> sources
    )

    Parameters

    sources
    Sources to remove from this drawing. (Drawing must contain all of them - EPLAN.Harness.API.Exceptions.ArgumentException is thrown otherwise.) Call the Drawing2D.GetSources to obtain a list of current sources of this drawing.
    Exceptions
    ExceptionDescription
    The object is in invalid state. Obtain a new one.

    Internal error of HpD or HpD API.

    IMPORTANT: Throwing this exception changes HpD Api's state to Failed.

    This file is not opened.
    You can not perform this action on a document opened as read only.
    Argument is null.
    Argument is invalid. The exception is thrown when a wrong argument is passed to the method or the setter of property.
    Remarks
    Removing a source automatically triggers drawing update.
    See Also