gib65 Posted November 3, 2011 Posted November 3, 2011 Hello, I have absolutely no idea where this topic goes so I'm putting here. Hope that's OK. I am beginning a project in which I am to program an application in C# that will read a dxf file and then reproduce it in AutoCAD automatically. This means that the application will have to communicate with AutoCAD and issue commands to it directly (like draw line, create face, build new layer, etc.). Does anyone know how this can be done? How do I interface with AutoCAD from a C# application? Quote
BIGAL Posted November 4, 2011 Posted November 4, 2011 You can write C code for autocad just need the correct library's to be linked and can construct objects lines etc there are examples in the autocad 2011\sample\API\COM\csharp code. I dont understand why if you have a DXf why not just open it. ? Moderator maybe move to .net arx forum Quote
gib65 Posted November 4, 2011 Author Posted November 4, 2011 You can write C code for autocad just need the correct library's to be linked and can construct objects lines etc there are examples in the autocad 2011\sample\API\COM\csharp code. Thanks Bigal, but I have the 2008 version. I can go so far as C:\Program Files\AutoCAD 2008\Sample. From there, I see ActiveX, Database Connectivity, DesignCenter, Dynamic Blocks, Mechanical Sample, Sheet Sets, and VBA. I didn't see any C# code samples under any of those. I dont understand why if you have a DXf why not just open it. ? Good question! I didn't invent the project, I'm just working on it. Quote
fixo Posted November 5, 2011 Posted November 5, 2011 take look at docs online: http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html?url=WS1a9193826455f5ff2566ffd511ff6f8c7ca-4875.htm,topicNumber=d0e51 Quote
gib65 Posted November 6, 2011 Author Posted November 6, 2011 take look at docs online:http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html?url=WS1a9193826455f5ff2566ffd511ff6f8c7ca-4875.htm,topicNumber=d0e51 That is exactly what I'm looking for. Thanks! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.