Want to have C# program to modify DWG and save into DWG format

Want to have C# program to modify DWG and save into DWG format

vsraman85
Explorer Explorer
3,364 Views
20 Replies
Message 1 of 21

Want to have C# program to modify DWG and save into DWG format

vsraman85
Explorer
Explorer

Hi,

I have installed the trail version of AutoCAD and ObjectARX SDK. My objective is to write a C# program to read DWG file, do some modifications, and then save it as another DWG file. I referenced autodesk dll's as per documentation, but program throws a Common Language Runtime error. Can anyone please throw some light on this?I am using Visual Studio 2022. Please suggest what kid of template i need to use for this as well?

0 Likes
3,365 Views
20 Replies
Replies (20)
Message 21 of 21

Ed__Jobe
Mentor
Mentor

When you say "through back services", I presume that you mean you don't want to start a session of AutoCAD and netload your dll? @norman.yuan  mentioned that you can buy RealDwg. You can also work with Autodesk Platform Services, which is an online version of acad. This might be more economical because you pay per transaction. It's also scalable. If you only want to use your purchased software, then you MUST netload a dll.

 

Another option might be to host a single seat of AutoCAD on a server or VM and automate that installation. You can use automation to send dwgs to wherever you want. We do this. We have a 3rd party app that automates pdf publishing and sends the results to the user. As Norman mentioned, you first need to learn acad api's. With this solution, at least if you got your immediate task figured out, you could just move it to the server and expand it by connecting to other services.

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes