You will need error checking to test for the dxf and if the block already
exists in the active database.
[code]
Database db = Autodesk.AutoCAD.ApplicationServices.
Application.DocumentManager.MdiActiveDocument.Database;
Database ndb = new Database( false, false );
ndb.DxfIn( @"c:\temp.dxf", @"c:\log.txt" );
db.Insert("test", ndb, false);
ndb.Dispose();
//insert the block
[/code]
"GPaolo" wrote in message
news:5479704@discussion.autodesk.com...
Which is the instruction to import a dxf file with dot net Api?
Thanks in advance
Gpaolo