- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I did a bit of searching for this but didn't find what I was looking for.
Thanks in advance!
Short version:
I am trying to speed up a script that simply turns layers on and off, but it runs slowly or skips around as it if cant keep up with a faster delay.
I'm doing this with a *.scr file and the AutoCAD command SCRIPT
Is this just how it is? or is there some way to speed this up?
See attached example file.
Long version:
I have a drawing such as this:
And a script such as this:
-layer s 0 off * n on 01
delay 3500
REDRAW
-layer off 01 on 02
delay 3500
REDRAW
-layer off 02 on 03
delay 3500
REDRAW
-layer off 03 on 04
delay 3500
REDRAW
-layer off 04 on 05
delay 3500
REDRAW
-layer off 05 on 06
delay 3500
REDRAW
-layer off 06 on 07
delay 3500
REDRAW
rscript
This turns off the layers to move the circle from left to right, and works as expected but runs really slooooooooow...
If I try to use a shorter delay to speed things up, it still runs slow, but it skips around from 01 to 04 to 07 to 02 to 06, etc.
-layer s 0 off * n on 01
delay 1000
REDRAW
-layer off 01 on 02
delay 1000
REDRAW
-layer off 02 on 03
delay 1000
REDRAW
-layer off 03 on 04
delay 1000
REDRAW
-layer off 04 on 05
delay 1000
REDRAW
-layer off 05 on 06
delay 1000
REDRAW
-layer off 06 on 07
delay 1000
REDRAW
rscript
[ The subject line of this post has been edited for clarity by @pendean Original: Script delay issue]
Solved! Go to Solution.