autocad closed file and console application using c#

autocad closed file and console application using c#

essam-salah
Advisor Advisor
1,545 Views
4 Replies
Message 1 of 5

autocad closed file and console application using c#

essam-salah
Advisor
Advisor

hi guys

how can i read something from a closed autocad file from another app (like console app using c# ).

any help will be appreciated.

0 Likes
1,546 Views
4 Replies
Replies (4)
Message 2 of 5

_gile
Consultant
Consultant

Hi,

 

You can write a custom command with C# which "read something" in the AutoCAD file.

Then you can NETLOAD it and run it in the file with the acccore console.

 

EDIT: the custom command have to be built only referencing AcDbMgd.dll and AcCore.dll (AcMgd.dll library is not supported by acccore console).



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

Message 3 of 5

essam-salah
Advisor
Advisor

@_gile

what is a accore  console ?

0 Likes
Message 4 of 5

ActivistInvestor
Mentor
Mentor

Unless you want to spend years reverse-engineering the AutoCAD DWG file format, the only other way to do it is using RealDWG or a third-party DWG file access Library.

 

RealDWG is the component of AutoCAD that is responsible for reading and writing DWG files, which you can license from Autodesk and use from Within your own application

 


@essam-salah wrote:

hi guys

how can i read something from a closed autocad file from another app (like console app using c# ).

any help will be appreciated.


 

Message 5 of 5

_gile
Consultant
Consultant

accoreconsole is a sort of AutoCAD without user interface.

You can see the following links:Getting start with ACCoreConsole

The AutoCAD 2013 Core Console

AccoreConsole introduction



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub