.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Using DOTNETARX to write your .NET ObjectARX programms more easily

3 REPLIES 3
Reply
Message 1 of 4
tangferry
687 Views, 3 Replies

Using DOTNETARX to write your .NET ObjectARX programms more easily

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
3 REPLIES 3
Message 2 of 4
tangferry
in reply to: tangferry

The article has been moved to:
http://www.codeproject.com/dotnet/dotnetarx.asp
Message 3 of 4
Anonymous
in reply to: tangferry

Nice job with DODTNETARX!


wrote in message news:4876396@discussion.autodesk.com...
The article has been moved to:
http://www.codeproject.com/dotnet/dotnetarx.asp
Message 4 of 4
tangferry
in reply to: tangferry

I have put DOTNETARX 2.0 and a new article on using the DOTNETARX(Samples for DOTNETARX) on codeproject.
The url of DOTNETARX 2.0 and the article:
http://www.codeproject.com/useritems/dotnetarxsample.asp

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost