protected override bool WorldDraw(Autodesk.AutoCAD.GraphicsInterface.WorldDraw draw)
{
Matrix3d curUCSMatrix = cad.DocumentManager.MdiActiveDocument.Editor.CurrentUserCoordinateSystem;
CoordinateSystem3d curUCS = curUCSMatrix.CoordinateSystem3d;
Vector3d vRot = m_basePoint[0].GetVectorTo(new Point3d(m_basePoint[0].X, m_basePoint[0].Y, m_basePoint[0].Z + 10));
int nBlocks = (int)Math.Floor(currentDistance / m_lBlock);
int n = 1;
do
{
Point3d jigPt = new Point3d(m_lBlock * (n - 1), 0, 0);
BlockReference inMemoryBlockInsert = new BlockReference(jigPt, _blockId);
inMemoryBlockInsert.TransformBy(Matrix3d.Rotation(currentAngle, vRot, m_basePoint[0]));
draw.SubEntityTraits.Color = 1;
draw.Geometry.Draw(inMemoryBlockInsert);
inMemoryBlockInsert.Dispose();
n++;
} while (n < nBlocks + 1);
return true;
} // WorldDraw()