Vbscript polar array

i would like to perform polar array to a curve in vbscript.
which curve method or transform method should I be using please

Hi @cshea, there is no predefined method unfortunately. But you can make your own:

Option Explicit

Call PolarArray()
Sub PolarArray()
	Dim strObject, arrCenter, intCount, arrPlane, i, dblAngle, arrAxis, arrXForm
	strObject = Rhino.GetObject("Select object to array", 0, True, True)
	If IsNull(strObject) Then Exit Sub
	arrCenter = Rhino.GetPoint("Center of polar array")
	If Not IsArray(arrCenter) Then Exit Sub
	intCount = Rhino.GetInteger("Number of items", 10, 2)
	If IsNull(intCount) Then Exit Sub
	arrPlane = Rhino.ViewCPlane()
	arrAxis = Rhino.XformCPlaneToWorld(Array(0, 0, 1), arrPlane)
	For i=1 To intCount - 1		
		dblAngle = 360 / intCount * i
		arrXForm = Rhino.XformRotation(dblAngle, arrAxis, arrCenter)
		Rhino.TransformObject strObject, arrXForm, True
End Sub

Does that help ?


Thanks Clement
that works well …