Autocad Script load

Autocad Script load

jonathan_petitclerc
Enthusiast Enthusiast
4,480 Views
4 Replies
Message 1 of 5

Autocad Script load

jonathan_petitclerc
Enthusiast
Enthusiast

Hi, 

I made a macro in a tool palette button to load a script :

 

^C^Cload"X:/filepath/scriptfile.scr";

But when I click on it, I receive the error; Unknown command "SCR"

 

I tried running the script directly and it works fine... So it is something that I did with the macro...

 

Thanks

0 Likes
Accepted solutions (2)
4,481 Views
4 Replies
Replies (4)
Message 2 of 5

tramber
Advisor
Advisor
Accepted solution

No LOAD but SCRIPT instead should work

LOAD is not intended for scripts.


EESignature

Message 3 of 5

paullimapa
Mentor
Mentor

The solution is in the way you ran "the script directly."  The command you used to run the script should be the same command you use and include in the macro.

 

Area Object Link | Attribute Modifier | Dwg Setup | Feet-Inch Calculator
Layer Apps | List on Steroids | VP Zoom Scales | Exchange App Store


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 4 of 5

cadffm
Consultant
Consultant
Accepted solution
No LOAD but SCRIPT..

And I am missing the ENTER after your command SCRIPT (not load)

^C^C_.SCRIPT;"X:/Path/filename.scr"

Sebastian

0 Likes
Message 5 of 5

tramber
Advisor
Advisor

Yes CADffm is right. I forgot to tell.

You can either use space :

 

^C^C_.SCRIPT "X:/Path/filename.scr"

EESignature

0 Likes