Console Application for AutoCAD 2012

Console Application for AutoCAD 2012

Anonymous
Not applicable
943 Views
4 Replies
Message 1 of 5

Console Application for AutoCAD 2012

Anonymous
Not applicable

I have written one AutoCAD Plugin (.dll) using AutoCAD .net API which reads all the drawing from specified folder and change attributes of Title block and save again in same folder.  Check Attached CS FIle (source: through Interface blog)

 

I am running this Plugin using NETLOAD command and after that firing command to execute the code. It is working fine and updating the attributes.

 

But I want to execute this utility without NETLOAD and firing commands . It is possible to create console application which will read AutoCAD 2012 drawings from specified folder and change some specific attributes after executing console exe application ? 

0 Likes
944 Views
4 Replies
Replies (4)
Message 2 of 5

dgorsman
Consultant
Consultant

FYI - updating attribute text without graphically loading the drawing has caused justification issues in the past.

 

You don't need to netload a DLL.  There are demand-loading options through the registry as well as the newer bundle auto-loader.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes
Message 3 of 5

Anonymous
Not applicable
Hi dgorsman ,
we can use auto loading and bundle option for startup . But i don't want to load this on startup . I wan to run this plugin like task schedular . Means i want to run that on particular time in a day . Any suggestion ?

0 Likes
Message 4 of 5

dgorsman
Consultant
Consultant

You will need to load it at program start-up if you are going to run anything automatically.

 

Launching this with the Scheduled Task Manager will be the same as any other task - call the application with the appropriate arguments.  That may mean calling AutoCAD directly or using a manager EXE or script to call it.

----------------------------------
If you are going to fly by the seat of your pants, expect friction burns.
"I don't know" is the beginning of knowledge, not the end.


0 Likes
Message 5 of 5

Anonymous
Not applicable

There's a stripped-down, command-line-only version of AutoCAD called the Core Console.  It's like a copy of AutoCAD without the graphical user interface.  It can load and execute run .NET dll's, AutoLISP files, and other plugins, as well as standard AutoCAD commands.

 

Here's a pretty good starting point:

http://through-the-interface.typepad.com/through_the_interface/core-console/

0 Likes