- Download and install from here: AutoIt Downloads - AutoIt
Download attached file ArrivedFiles.zip (1.0 KB) ArrivedFiles.zip (979 Bytes) ArrivedFiles.zip
2.Install Autoit → Scite with option Edit Script !!! !!! not Run Script
3.On your desktop create directory named IGS_Files
4.Put there few IGS files (For first test small files !!!)
5.Start Rhino
-
Unzip ArrivedFiles.zip, open Scite Editor and load extracted file ArrivedFiles.au3 (Source code)
-
Press F5 or run script from scite menu → Tools → Go
What happens ?
External program is started
Every 20 minutes is checked whether new files arrived in folder IGS_Files
Files older than 20 minutes are ignored !!!
If new file arrived, command is executed, in my example, command Import IGS is used
If sixteen(16) clock is reached, script quit automatically
Exit script manual with RMB over Icon in systray
If everything works test your script
Give your script a command alias and change line like this
$r.Command("YourAlias", False)
Edit:
Or Pythonscript: Make that Your Pythonscript is on search patch and add this as command
$r.Command("-_RunPythonScript (Samples.MyPythonScript.py)") ;;;Not tested
At the end of your script → do not forget to delete all objects from document !!!
If everything works
You can compile this script as exe file. Ctrl + F7 or menu → Tools → Compile
Do not use Obfuscator ore UPX, otherwise your antivirus program will explode
Finally,
use at your own risk, I do not give liability
Quick tested in Rhino4,
I do not know if LastCommandResult() returns a value when used aliased script
So finito end midday meal…