ArrayRectangular methode

ArrayRectangular methode

Anonymous
Not applicable
269 Views
0 Replies
Message 1 of 1

ArrayRectangular methode

Anonymous
Not applicable
I want to draw 5 arrows on a fictif line at 45°. Therefore I draw 1 arrow that will be copied with ArrayRectangular methode using following explanation in the AutoCAD Developper's Help :

"AutoCAD builds the rectangular array along a baseline defined by the current snap rotation angle. This angle is zero by default, so the rows and columns of a rectangular array are orthogonal with respect to the X and Y drawing axes. You can change this angle and create a rotated array by setting the snap rotation angle to a nonzero value."

But my program doesn't make this rotation :

Private Sub test()
Dim vertis
Dim util As Object
Set util = ThisDrawing.Utility
util.CreateTypedArray vertis, vbDouble, 0, 0, 200, 0
ThisDrawing.SetVariable "SNAPANG", CDbl(3.1415927 / 4)
ThisDrawing.SetVariable "SNAPMODE", CBool(True)
ThisDrawing.Regen acActiveViewport
With ThisDrawing.ModelSpace.AddLightWeightPolyline(vertis)
.SetWidth 0, 0, 75
.ArrayRectangular 1, 5, 1, 0, 1000, 0
End With
End Sub

What is wrong ?
Thank you.
0 Likes
270 Views
0 Replies
Replies (0)