Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / Drawing2D 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 GetSources to obtain a list of current sources of this drawing.
In This Topic
    RemoveSources Method (Drawing2D)
    In This Topic
    Remove given source(s) from this drawing.
    Syntax
    public abstract 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 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