Autocad running while signed off

Autocad running while signed off

Anonymous
Not applicable
497 Views
8 Replies
Message 1 of 9

Autocad running while signed off

Anonymous
Not applicable

Hello community,

Does anyone have any idea how  to make Autocad keep running while i am signed off. I have a vba that i want to run as a service.

 

I have created the bat file so it can start but if i'm signed off it does not run.

 

0 Likes
498 Views
8 Replies
Replies (8)
Message 2 of 9

TheCADnoob
Mentor
Mentor

In theory you can 'convert' Autocad to a service but i have never gone through this exercise let alone for the ends you are looking to do. 

 

you can check out this link or google how to convert an exe to a service: https://stackoverflow.com/questions/3582108/create-windows-service-from-executable

 

 

CADnoob

EESignature

0 Likes
Message 3 of 9

Ed__Jobe
Mentor
Mentor

What do you mean "signed off"? e.g. logged out of windows?

Ed


Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
How to post your code.

EESignature

0 Likes
Message 4 of 9

dgorsman
Consultant
Consultant

The closest you're going to get to that is running the core console; I'm not certain if VBA will run under that.  I'm fairly certain you cannot run the program itself as a literal "service", either practically or within the EULA.

----------------------------------
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 9

Anonymous
Not applicable

I have tried core before, it is very confusing. You can write in .net which has awesome libraries, but i never found a concrete documentation on how i can develop for core. I tried for example to change something on a drawing, and it would not compile, so i had again to do it in .net as an extension and everything works, most of my work is done with .net i just automate with macro's because i find that it is the most simple way to do it.

 

If you have info on how to write for core i am all ears.

0 Likes
Message 6 of 9

Anonymous
Not applicable

yes

0 Likes
Message 7 of 9

john.vellek
Alumni
Alumni

HI @Anonymous,

 

I have never been successful running this as a service as others have suggested. Ifs  there truly a reason to logoff? Can you not just LOCK the computer for AutoCAD to run or is this terminating your VBA as well?

 

 

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes
Message 8 of 9

dgorsman
Consultant
Consultant

Running from the core console has a couple of simple rules:

  • You cannot call anything which requires a UI (dialogs, respond to prompts, etc.)
  • You cannot load any third-party ARX modules, only CRX modules
  • You should run one console application per drawing, and close it when done

Core console will accept scripts (old-school SCR files), as long as they follow the rules.  You can try a hybrid approach, doing the heavy lifting with managed dotNET DLLs wrapped in command-line command definitions, and call them from a script passed to the console EXE call along with the filename.  The script and filename arguments can be provided from an overall stand-alone application.

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


Message 9 of 9

john.vellek
Alumni
Alumni

Hi @Anonymous,

 

I am checking back to see if my post or others helped you with your problem. Please mark a post or posts as accepted solutions if they resolved the issue or give me a bit more detail on this issue so we can continue to work towards getting this solved.

 

 

 

Please hit the Accept as Solution button if a post or posts solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes