Code:
Dim Zeilen As Integer = 25
Dim ZeilenAbstand As Double = 35
Dim MyArrayAng As Double = 0Dim MyUCSMatrix As Matrix3d = acDoc.Editor.CurrentUserCoordinateSystem
Dim MyUCS As CoordinateSystem3d = MyUCSMatrix.CoordinateSystem3d
Dim My2dAng As Vector2d = New Vector2d(MyUCS.Xaxis.X, MyUCS.Xaxis.Y)
MyArrayAng = MyArrayAng + My2dAng.Angle
Dim MyExts As Extents3d = LB02_3d.Bounds.GetValueOrDefault()
Dim My2dArrayBase As Point2d = New Point2d(MyExts.MinPoint.X, MyExts.MaxPoint.Y)
Dim MyObjCollCols As DBObjectCollection = New DBObjectCollection()
MyObjCollCols.Add(LB02_3d)
Dim MyAng As Double = Math.PI / 2
Dim MyObjCollLvls As DBObjectCollection = New DBObjectCollection()
For Each MyObj As DBObject In MyObjCollCols
MyObjCollLvls.Add(MyObj)
Next
For Each MyEnt As Entity In MyObjCollCols
Dim ZeilenCount As Integer = 1
While (Zeilen > ZeilenCount)
Dim LB02_3dClone As Entity = LB02_3d.Clone()
MyObjCollLvls.Add(LB02_3dClone)
Dim My2dTo As Point2d = PolarPoints(My2dArrayBase, MyArrayAng + MyAng, ZeilenAbstand * ZeilenCount)
Dim MyVec2d As Vector2d = My2dArrayBase.GetVectorTo(My2dTo)
Dim MyVec3d As Vector3d = New Vector3d(MyVec2d.X, MyVec2d.Y, 0)
LB02_3dClone.TransformBy(Matrix3d.Displacement(MyVec3d))
acBlkTblRec.AppendEntity(LB02_3dClone)
acTrans.AddNewlyCreatedDBObject(LB02_3dClone, True)
ZeilenCount = ZeilenCount + 1
End While
Next