Hi Everyone!
My question is kind of simple. How do I lock down an AutoCAD instance object that I created? This is so that the AutoCAD instance that I created can work in the background without responding to user if they open up another drawing. That drawing that the user open has to be opened in another AutoCAD instance.
Something similar in Excel is Application.IgnoreRemoteRequests.
Thanks,
Alex
Solved! Go to Solution.
Solved by jeff. Go to Solution.
Hi Jeff,
Thanks for the response! Accoreconsole.exe seems to be a very good solution for batch processing and for what I'm doing.
I will try to find out more about this Accoreconsole and try to work in that direction.
Did not know that something like this exists! Thanks!
At bottom of post at link below is a attachment that was for an example to run one instance for each core and start another when one finishes, to show a problem having that caused active program to lose focus whenever a new instance was started.
http://www.theswamp.org/index.php?topic=41948.msg471132#msg471132
Hi Jeff,
Thank you for your reply. I will go through the code that you posted in that forum and study it. I already have code that does multithreading on multiple AutoCAD instances (5 to be exact) and does the job independant of each other (each receives command and data from network clients to process drawings). That's why I want to lock all those instances so that user can't accidentally make one of those instances visible. Imagine running 5 instances of full AutoCAD in the background... takes up 1GB of ram even when it's not doing anything. This accoreconsole might just be what I needed as an alternative although I'm not too sure at this point that this will work or not for what I'm trying to acheive but It's worth a try. Thanks again!
The previous example probably not a good example to look at it and was more for producing the side effects
This woud be better
http://adndevblog.typepad.com/autocad/2012/04/getting-started-with-accoreconsole.html
Hi Jeff,
Thanks for the reminder. I normally finish creating the drawing first before saving it to a file, that way there's no way that the use could open that drawing which is still processing but I'll keep this in mind though.