Message 1 of 7
DOTNETARX
Not applicable
06-17-2005
06:38 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I just ran across several DOTNETARX posts. Based on what's being advertised,
why doesn't Autodesk provide a user-friendly tool like this. I am not a
software developer. When someone creates a tool like this to make my job, as
a programmer, easier all I can say is thanks!
Here's a snippet from a previous post:
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.ForW
rite,false);
btr.AppendEntity(ent);
tm.AddNewlyCreatedDBObject(ent,true);
trans.Commit();
}
With DOTNETARX,the codes can be simplified like this:
Entity ent...
Tools.AddEntity(ent);
why doesn't Autodesk provide a user-friendly tool like this. I am not a
software developer. When someone creates a tool like this to make my job, as
a programmer, easier all I can say is thanks!
Here's a snippet from a previous post:
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.ForW
rite,false);
btr.AppendEntity(ent);
tm.AddNewlyCreatedDBObject(ent,true);
trans.Commit();
}
With DOTNETARX,the codes can be simplified like this:
Entity ent...
Tools.AddEntity(ent);