You (or Acad) draw(s) "Line", not Line2d.
Line is Acad's Database residing object with such base
classes ->Curve->Entity->DBObject->Drawable-RXObject..., while Line2d is
geometric representation of a 2D line with this base class
chain ->LinearEntity2d->Curve2d->Entity2d->DisposableWrapper....
Notice Line is Drawable and DBObject, while Line2d is not.
wrote in message news:5620479@discussion.autodesk.com...
please help me iam learning stage i did make mistache below code please
correct them or else
please give some code for adding line antity and pline entity in atocad
current view
try
{
Trans = MyDb.TransactionManager.StartTransaction();
lne = new Line2d(prPointRes.Value,prPointRes1.Value);
Bt = (BlockTable)Trans.GetObject(MyDb.BlockTableId,OpenMode.ForRead);
Btr =
(BlockTableRecord)Trans.GetObject(MyDb.CurrentSpaceId,OpenMode.ForWrite);
Btr.AppendEntity(lne);
Trans.AddNewlyCreatedDBObject(lne,true);
Trans.Commit();
Trans.Dispose();
}