Any bug attracting devices definitely need to be far enough away to help & not just draw in. The whole thought behind the various modern trap models is a gradual reduction in the number of bugs that are attracted by carbon dioxide, which in turn reduces the number in the area that can reproduce. Have used a citronell candle outside the paint building when gnats & skeeters were just horrible & it did help.
Timing, as Shine mentioned & also just plain luck with your timing has a lot to do with it, especially in an uncontrolled area. I have painted car parts under an open overhang area at work during a dusty street & city sewer project. Pulled everything out just as a light misty rain was starting in late summer afternoon. It dropped the dust in the air & the bugs didn't start coming out till the paint was tacking up good. That's what you call timing & luck. Also painted a disassembled front end under my home carport a few nights in a row starting spraying near midnight in march in n florida 5 years ago with nearly still air & bugs coming in just after paint tacking up. Not one march since then has had those conditions.
Being in touch with your particular surroundings at the moment , along with just plain luck, does have a lot to do with bugs & dust.
Now if someone could just invent an anti-static device,,,,,,,,,,,,