Loading Script when starting QCad

Post here to ask questions about or get help with the scripting module of QCAD 2.1/2.2.

Moderator: andrew

Loading Script when starting QCad

Postby Mschmidt » Fri Jun 06, 2008 4:41 pm

Is there any way to automatically load script into the IDE when you first start the program. I feel it's a pain to have to load every time.
Mschmidt
Newbie Member
 
Posts: 5
Joined: Fri Jun 06, 2008 4:37 pm
Location: Calgary, Alberta, Canada

Postby andrew » Fri Jun 06, 2008 10:25 pm

On startup, QCad launches function "main" of the script <your home directory>/.qcad/autostart.qs, e.g. "/home/andrew/.qcad/autostart.qs". If you're under Windows, you might have to try some different directories since the home directory depends on your Windows flavor.
User avatar
andrew
Site Admin
 
Posts: 2548
Joined: Fri Mar 30, 2007 6:07 am

Postby Mschmidt » Fri Jun 06, 2008 10:39 pm

andrew wrote:On startup, QCad launches function "main" of the script <your home directory>/.qcad/autostart.qs, e.g. "/home/andrew/.qcad/autostart.qs". If you're under Windows, you might have to try some different directories since the home directory depends on your Windows flavor.


Hmmm...I should have mentioned that I'm running Mac OS X Leopard. This is an office computer, so I may not have too many admin. privileges. I have tried placing autostart.qs to different folders in the uncompressed Qcad folder (which comes from the download). Nothing seems to work.

It does however load when running from the IDE.
Mschmidt
Newbie Member
 
Posts: 5
Joined: Fri Jun 06, 2008 4:37 pm
Location: Calgary, Alberta, Canada

Postby andrew » Fri Jun 06, 2008 11:17 pm

For OS X that's /Users/yourlogin/.qcad/autostart.qs, where "yourlogin" is your login name.
User avatar
andrew
Site Admin
 
Posts: 2548
Joined: Fri Mar 30, 2007 6:07 am

Postby Mschmidt » Fri Jun 06, 2008 11:41 pm

Oh yes...thank you. I'm new to Mac so please excuse me.

I only now learned how to view system folders.

Thank you for your help.

Love the Program.
Mschmidt
Newbie Member
 
Posts: 5
Joined: Fri Jun 06, 2008 4:37 pm
Location: Calgary, Alberta, Canada


Return to QCAD 2.1/2.2 Developers

Who is online

Users browsing this forum: No registered users and 1 guest