Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

What do you use to track progress in a completion bar?

$
0
0

In the past, when scanning a model I would use the file position. I would use dgnModel_getGraphicElmStart() and dgnModel_getEOF() to determine the starting and ending file positions, and then update my progress bar based on the current file position being scanned.

Now that Connect Edition has made the file position useless, what do we use now? For example, I have a model containing only one element - an orphan cell with 33,000 components. The file position is the same for the header and components, so the progress bar looks "stuck" for the whole of this lengthy operation. What can I use instead of file position to keep track of scanning progress?

I considered ElementID, however this is problematic due to nested headers often having an out of sequence order with the components. This would cause a completion bar to occasionally track backwards, which is confusing to the user. I also can't see any simple way to determine the lowest and highest ElementID in a model.

So what does everyone else use to track scanning progress for a completion bar in Connect? It feels like we need some sort of element sequence number we can quickly determine to track scanning progress.

Cheers.


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>