Jump to content

programming a C# app to interface with AutoCAD


Recommended Posts

Posted

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?

Posted

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

Posted
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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...