Dou you want to draw something similar on this shape?
public void drawDMShape()
{
Document doc = Autodesk.AutoCAD.ApplicationServices.Application.DocumentManager.MdiActiveDocument;
Database db = doc.Database;
Editor ed = doc.Editor;
Line ln = new Line();
using (Transaction tr = db.TransactionManager.StartTransaction())
{
BlockTableRecord btr = (BlockTableRecord)tr.GetObject(db.CurrentSpaceId, OpenMode.ForWrite);
double[] x = new double[61];
double[] y = new double[61];
int i = 0;
int j = 0;
int k = 0;
double theta = 0;
double t = 100;
double _pi = Math.PI;
k = 15;
theta = 2 * _pi / k;
for (i = 0; i <= k; i++)
{
x[i] = t * Math.Cos(theta * (i + 1)) + 200;
y[i] = 200 - t * Math.Sin(theta * (i + 1));
}
for (i = 0; i <= k - 1; i++)
{
for (j = i + 1; j <= k; j++)
{
ln = new Line(new Point3d(x[i], y[i], 0), new Point3d(x[j], y[j], 0));
btr.AppendEntity(ln);
tr.AddNewlyCreatedDBObject(ln, true);
}
}
tr.Commit();
}
}
_____________________________________
C6309D9E0751D165D0934D0621DFF27919