Message 1 of 12
Updating block ref graphics in middle of iteration (psuedo animation)

Not applicable
11-16-2007
11:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
So what I'm trying to do is to create a psuedo animation of a block reference undergoing a transformation.
Step (0): open the ref for write
Step (1): erase the ref's old block record and make a new one
Step (2): somehow flush graphics so that the ref with its updated block record is drawn on the model space
Step (3): Sleep() for a small period of time
Step (4): repeat first three steps n times, with a transformation between each iteration
Step (2) is what eludes me. I've tried various things like draw() and assertWriteEnabled(), but to no avail.
I know that creating new block records after each iteration doesn't seem necessary, but for rather more complicated reasons, this must be done.
Thanks for any input!
Step (0): open the ref for write
Step (1): erase the ref's old block record and make a new one
Step (2): somehow flush graphics so that the ref with its updated block record is drawn on the model space
Step (3): Sleep() for a small period of time
Step (4): repeat first three steps n times, with a transformation between each iteration
Step (2) is what eludes me. I've tried various things like draw() and assertWriteEnabled(), but to no avail.
I know that creating new block records after each iteration doesn't seem necessary, but for rather more complicated reasons, this must be done.
Thanks for any input!