Harness proD API Help
EPLAN.Harness.API.Projects.Documents Namespace / CableDrawing Class / AddSources Method
Cable units to add to this Cable drawing.
In This Topic
    AddSources Method (CableDrawing)
    In This Topic
    Add given cable unit(s) to this Cable drawing's sources.
    Syntax
    public void AddSources( 
       IEnumerable<CableUnitInfo> sources
    )

    Parameters

    sources
    Cable units to add to this Cable 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.
    The operation was not successful.
    Remarks
    Adding a source automatically triggers Cable drawing update.
    See Also