I am using the API to hide or show certain sketches and hide all components in a drawing. My basic logic is to select the component, hide it, check all sketches in the component and hide or show them. I do this for each component in the view. I recursively traverse the feature tree if this is an assembly to make sure I catch all components (parts or assemblies). The code is too long to post.
The basic logic is to select each entity I want to hide or show, hide or show it and then unselect.
My question. The display flashes like it is getting repainted every time I do this. I don't know for sure if it is rebuilding the model every time or if it is redrawing the view or something else.
What is this behavior?
Is there a way to suppress this behavior until I an finished?