[Closed] Closing Import Dialog Box's
I’m working on a tool to batch import .step, .stp, and .iges files. The tool works fine except when its done importing I’m left with a bunch of open dialog boxes reporting how successful each file import was. So not to big of a deal with 3 or 4 file imports but when its 20 or more it can be quite annoying to close each one individually. I’m using quiet mode already and I used some ui access and dialog OPS stuff early on to try to suppress them with no luck. I was able to get information on the dialog back but telling them to close didn’t work.
Anyone have any experience with this or have a guess on what to try next.
I can’t post any of my client files for obvious reasons but here is a couple of basic shapes exported as .stp files.
for c in (windows.getchildrenhwnd 0) where c[5] == "Progress : STEP Importer" do UIAccessor.CloseDialog c[1]
i hope you use English localization.
Nice that works perfectly. You saved my but once again. :bowdown:
Its funny I was using UIAccessor.CloseDialog () early on but I couldn’t get it to close that particular dialog.