API Documentation > CorelDRAW > 2025-v26 > Layer > IVGLayer
Layer.CreateSpiral method
Creates a spiral on a layer
Syntax:
Function CreateSpiral(ByVal Left As Double, ByVal Top As Double, ByVal Right As Double, ByVal Bottom As Double, ByVal NumRevolutions As Long, ByVal SpiralType As cdrSpiralType, ByVal GrowthRate As Long) As Shape
Parameters:
Name Type Description
Left
Double
Top
Double
Right
Double
Bottom
Double
NumRevolutions
Long
SpiralType
GrowthRate
Long
Remarks:
The CreateSpiral method creates a spiral at a specified location on a layer.
Examples:
The following VBA example creates a logarithmic spiral on the active layer. The spiral has four revolutions with a growth factor of 100 within each revolution.
Sub Test()
ActiveLayer.CreateSpiral 0, 0, 5, 5, 4, cdrLogarithmic, 100 
End Sub