Eplan Platform API
Eplan.EplApi.HEServices Namespace / ConnectionService Class / DeleteConnectionDefinitionPoints Method / DeleteConnectionDefinitionPoints(Project,Deletion,Boolean,Boolean,String) Method
Project in which to delete the wire designations or connection definition points.
Delete mode. Valid values are 0 and 1. See enumeration ConnectionService.Deletion.
If set to true, connection definition points indicated as 'manually set' are ignored.
If set to true, first the connections will be regenerated.
Settings scheme to be used during the operation.

In This Topic
    DeleteConnectionDefinitionPoints(Project,Deletion,Boolean,Boolean,String) Method
    In This Topic
    Delete wire designations and connection definition points. This method acts only on connection definition points associated with (i.e. returned by) a connection existing in the project
    Syntax

    Parameters

    Parameter NameDescription
    oProjectProject in which to delete the wire designations or connection definition points.
    rDeleteModeDelete mode. Valid values are 0 and 1. See enumeration ConnectionService.Deletion.
    bLeaveManualsIf set to true, connection definition points indicated as 'manually set' are ignored.
    bRegenrateConnectionsIf set to true, first the connections will be regenerated.
    strSchemaNameSettings scheme to be used during the operation.
    Exceptions
    ExceptionDescription
    Invalid parameters found.
    A required internal interface could not be created.
    An error occurred while deleting connection definition points or wire designations. Please read the exception message.e
    Thrown if the used scheme name doesn't exist.
    Remarks
    If no scheme exists under the given scheme name (strSchemaName), an ArgumentException is thrown. If strSchemaName is set to an empty string, the last-used scheme will be used which is currently set in GUI. Unlike in the GUI, connections are not always generated, but only if bRegenrateConnections is set to true. CDPs to remove are taken from Connection.ConnectionDefPoints property. This property is updated after generating connections. Some methods like Cable.Create or Cable.SetLogicalArea don't update connections and Connection.ConnectionDefPoints property is empty which causes that CDP will not be removed. Please make sure that connections are up-to-date before using this method or use it with parameter bRegenerateConnections set to true.
    See Also