.NET

.NET

Reply
Active Contributor
michael.collins2
Posts: 43
Registered: ‎03-30-2012
Message 1 of 3 (418 Views)

Use acCoreConsole.exe to batch update drawing attributes

418 Views, 2 Replies
04-23-2013 01:05 PM

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?

 

Distinguished Mentor
BlackBox_
Posts: 785
Registered: ‎02-25-2013
Message 2 of 3 (402 Views)

Re: Use acCoreConsole.exe to batch update drawing attributes

04-23-2013 04:52 PM in reply to: michael.collins2

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



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security


AutoCAD® 2014, and Civil 3D® 2014 Certified Professional ~ Autodesk® Authorized Developer

ADN Support Specialist
Balaji_Ram
Posts: 746
Registered: ‎03-21-2011
Message 3 of 3 (347 Views)

Re: Use acCoreConsole.exe to batch update drawing attributes

05-02-2013 05:44 AM in reply to: michael.collins2

Hi Michael,

 

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 :

http://adndevblog.typepad.com/autocad/2012/04/getting-started-with-accoreconsole.html

 

 



Balaji
Developer Technical Services
Autodesk Developer Network

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.