scripts

scripts

Anonymous
Not applicable
600 Views
2 Replies
Message 1 of 3

scripts

Anonymous
Not applicable
Hi, all
i am trying to run a script file "c:\my new Script.scr" using the line below. but it doesn't work the way i wanted.

after accepting the command "script", autocad pauses for my selection of a script file. my question is how i can let autocad accept my scr file as specified automatically. there will no manually selection.

doc.SendStringToExecute("script" & vbCr & "c:\my new Script.scr" & vbCr, True, False, True)

Thanks
0 Likes
601 Views
2 Replies
Replies (2)
Message 2 of 3

chiefbraincloud
Collaborator
Collaborator
Set the System Variable FILEDIA = 0 first. Then make sure to set it back when you are done. (could do it in the script)
Dave O.                                                                  Sig-Logos32.png
0 Likes
Message 3 of 3

Anonymous
Not applicable
Thanks a lot. That is exactly what i needed!
0 Likes