PDA

View Full Version : Associate a script to a button


PeeJay
16-09-2004, 11:17 AM
Hey, im kina new here and just getting into script writing. Im looking to create a custom button that call a specific script but im having real problems. Firstly is this possible? and secondly can anybody help me out.
In my button properties im putting in the following

^c^cscript

then im stuck as to how to get it to automatically run the script i want.

Sorry if this is a newbie question, but im hoping to learn loads of new stuff from these here groups.

Thanks in advance for all your help.

PeeJay.

windowsxp5
16-09-2004, 04:54 PM
careate a Folder in C:/scripts or some where..
and keep ur script in that folder. (Eg:myscript.scr)

in AutoCAD create an icon and add (copy&paste recomented)this on button properties
'_script C:/scripts/myscript.scr

PeeJay
17-09-2004, 08:37 AM
Quality,

thanks for the help, i was doing something similar but i was copying the address where my script was held straight from my explorer address bar which was

c:\projects\acad\scripts\mtscript.scr

I noticed that you used ' / ' instead of ' \ ' as soon as i changed it it worked great. Does autocad recognise ' \ ' as something else then?

Thanks again for your help mate, Top notch.

Looking foward to getting more involved in these groups.

Cheers

PeeJay