[MicroStation V8i SS3 VBA] Why the macro execution speed depends on the zoom in the drawing?

Hello, whenever I have a macro with a loop that scans the fence, when the zoom in the drawing is large, the program works slowly and when the zoom is small, the program works quickly?

same task:

time for big zoom

time for small zoom

Parents
  • HI Mateusz,

    at first, please read and follow the forum best practices: How an discussion can be started when you do not provide even basic information like used product, its version (build number) and what API / language is used?

    whenever I have a macro with a loop that scans the fence

    Nobody can answer your question when the code is not known.

    when the zoom in the drawing is large, the program works slowly and when the zoom is small, the program works quickly?

    How the fence is defined? Is is the same in both cases, so in "small zoom" (because this term is not clear, I would prefer to say e.g. "large extent") it's e.g. created from a view and in "large zoom" it's much bigger than the view extent and the view displays only small portion of the fence?

    Or the fence is always created e.g. from view?

    Regards,

      Jan

Reply
  • HI Mateusz,

    at first, please read and follow the forum best practices: How an discussion can be started when you do not provide even basic information like used product, its version (build number) and what API / language is used?

    whenever I have a macro with a loop that scans the fence

    Nobody can answer your question when the code is not known.

    when the zoom in the drawing is large, the program works slowly and when the zoom is small, the program works quickly?

    How the fence is defined? Is is the same in both cases, so in "small zoom" (because this term is not clear, I would prefer to say e.g. "large extent") it's e.g. created from a view and in "large zoom" it's much bigger than the view extent and the view displays only small portion of the fence?

    Or the fence is always created e.g. from view?

    Regards,

      Jan

Children