Traditonal .net programs is like the following:
Entity ent……;
Database db= Application.DocumentManager.MdiActiveDocument.Database;
DBTransMan tm=db.TransactionManager;
using(Transaction trans=tm.StartTransaction())
{ BlockTable bt=(BlockTable)tm.GetObject(db.BlockTableId,OpenMode. ForRead,false); BlockTableRecord btr=
(BlockTableRecord)tm.GetObject(bt[BlockTableRecord.ModelSpace],OpenMode.ForWrite,false);
btr.AppendEntity(ent);
tm.AddNewlyCreatedDBObject(ent,true);
trans.Commit();
}
With DOTNETARX,the codes can be simplified like this:
Entity ent…….
Tools.AddEntity(ent);
For the details ,please read the following article:
http://www.codeproject.com/useritems/dotnetarx.asp