I am trying to use acCoreConsole.exe of AutoCAD 2013 and create a C# app to process drawing files in the background (with the AutoCAD interface not visible) and read and write attributes of the drawings.
I did a similar program using Inventor Apprentice, but I can’t see what technique to use with acCoreConsole.exe. Most of the examples I see use acCoreConsole.exe to process a script, which is not the approach that I was trying to take, but I guess I could if I had to. I was trying to create a drawing object in C# and read and write attribute values of that drawing object.
Is that possible?
The only comment I can offer you regarding Core Console (AcCoreMgd.dll) is that it is somewhat limited in what it can do, and how you can do that.
However, have you already looked into ReadDwgFile() method?
If not, this thread may be of use to you... I'm sure you can find myriad other materials in a Google search for 'AutoCAD .NET ReadDwgFile Attribute'.
You can implement you own command in a .net / arx module and invoke the command from a script file.
That way, your script is only an entry point into your custom dll.
The DevTV sample has an example of that :
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register