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

    oProject
    Project in which to delete the wire designations or connection definition points.
    rDeleteMode
    Delete mode. Valid values are 0 and 1. See enumeration ConnectionService.Deletion.
    bLeaveManuals
    If set to true, connection definition points indicated as 'manually set' are ignored.
    bRegenrateConnections
    If set to true, first the connections will be regenerated.
    strSchemaName
    Settings scheme to be used during the operation.
    Exceptions
    ExceptionDescription
    Invalid parameters found.
    An internal interface necessary for the function could not be created.
    An error occurred, while deleting connection definition points or wire designations. Please read the exception message
    An error occurs when 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