Eplan Platform API
Eplan.EplApi.HEServices Namespace / ConnectionService3D Class / OptimizeNetAutomatically Method / OptimizeNetAutomatically(Project,Int32,Boolean) Method
Project 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 an additional connection from the first to the last connection point of the chain is generated.

In This Topic
    OptimizeNetAutomatically(Project,Int32,Boolean) Method
    In This Topic
    Automatic optimization of nets and connections from whole project are routed in them.
    Syntax
    public bool OptimizeNetAutomatically( 
       Project pProject,
       int nMinSize,
       bool bCloseDaisyChains
    )
    public:
    bool OptimizeNetAutomatically( 
       Project^ pProject,
       int nMinSize,
       bool bCloseDaisyChains
    ) 

    Parameters

    pProject
    Project 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.
    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
    Thrown if project is null.
    Thrown if project is invalid.
    Thrown when an error occurred during the optimization. Please refer to the exception message.
    See Also