API Documentation > CorelDRAW > 2025-v26 > Layer > IVGLayer
Layer.CreateFreeConnector method
Creates a Connector object not attached or linked to a shape
Syntax:
Function CreateFreeConnector(ByVal x1 As Double, ByVal y1 As Double, ByVal x2 As Double, ByVal y2 As Double) As Shape
Parameters:
Name Type Description
x1
Double
y1
Double
x2
Double
y2
Double
Remarks:
The CreateFreeConnector method creates, at a specified location on a layer, a connector line that is not connected to any shape. See also the Layer.CreateConnector method.
Examples:
The following VBA example creates a free connector line on the active layer in the active document.
Sub LayerConnector()
ActiveLayer.CreateFreeConnector 2, 3, 6, 7 
End Sub