Eplan Platform API
Eplan.EplApi.HEServices Namespace / ConnectionService3D Class / OptimizeNetAutomatically Method / OptimizeNetAutomatically(IEnumerable<Connection3D>,Int32,Boolean,Boolean) Method
Collection of 3d connections for which net optimalization will be done. Can't be null.
Specifies the number of connections per net that is to trigger an optimization. The minimum number is 2.
If true then all nets included in collection completely or partially are optimized.
If true then an additional connection from the first to the last connection point of the chain is generated.

In This Topic
    OptimizeNetAutomatically(IEnumerable<Connection3D>,Int32,Boolean,Boolean) Method
    In This Topic
    Automatic optimization of nets and connections routed in them.
    Syntax

    Parameters

    colConnections3D
    Collection of 3d connections for which net optimalization will be done. Can't be null.
    nMinSize
    Specifies the number of connections per net that is to trigger an optimization. The minimum number is 2.
    bPartiallySelected
    If true then all nets included in collection completely or partially are optimized.
    bCloseDaisyChains
    If true then an additional connection from the first to the last connection point of the chain is generated.

    Return Value

    True if operation has been finished without problems. If false then check system messages for more information about problem.
    Exceptions
    ExceptionDescription
    Null was passed to as parameter or one of element in collection is null.
    One of element in collection is invalid.
    Thrown when an error occurred during the optimization. Please refer to the exception message.
    See Also