.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Reply
Message 1 of 3
sdren
393 Views, 2 Replies

scripts

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
2 REPLIES 2
Message 2 of 3
chiefbraincloud
in reply to: sdren

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
Message 3 of 3
sdren
in reply to: sdren

Thanks a lot. That is exactly what i needed!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost