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.
Solved! Go to Solution.
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.
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!
Just so you know if a drawing is open accoreconsole will open it and just sit there so you might want to first try to open a filestream with noshare, but once closed still coud get opened before accoreconsole opens it.
The previous example probably not a good example to look at it and was more for producing the side effects
This woud be better
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.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.