hexagon logo

Report preview window, I don't want it!

Good morning all,

I'm attempting to make an operator dashboard using excel as the back end and driven through VBA. Pulls down a program from the server, copies it local, executes through PC-Dmis, prints pdf & hard copy... blah blah blah...

The idea behind this automation is to circumvent running through the operator mode where the floor staff has the opportunity to re-qualify probes, interrupt runs and in any other conceivable manner waste time. It's going well except for one small problem, the report preview. Ideally the only thing visible during the brief execution, aside from the pc-dmis "frame" would be the graphics display window (CadWindow). However the only thing visible instead is the report window (report preview, whatever). I've successfully hid the EditWindow and made the CadWindows visible by code, however can't find anything that controls the on screen report preview. According to the "PC-Dmis Basic Language Reference" the report mode should be controlled through the EditWindow, however hiding it only gets rid of the command window. Anyone have any insight? Perhaps a snippet of code? Many thanks!

CAD++ ver 2010 MR3
Parents
  • "Application.ActivePartProgram.ReportWindow.Visible = False" seems to work in 2015.1. No luck in 2010 MR3?

    Hiding the Report Window brought the Graphics Window up (which was closed).
    "Application.ActivePartProgram.CadWindows.Item(1). Visible = False" worked to close the Graphic Window.
    You may need a different item number if you have more than one program open.

    The Object Hierarchy Chart helps show how all the objects are nested (Help > PC-DMIS Object Library > Getting Started > Object Hierarchy Chart). I usually skip over introductions wanting to get to the meat & potatoes of whatever it is I'm after. The Object Chart is a good roadmap for reference.
Reply
  • "Application.ActivePartProgram.ReportWindow.Visible = False" seems to work in 2015.1. No luck in 2010 MR3?

    Hiding the Report Window brought the Graphics Window up (which was closed).
    "Application.ActivePartProgram.CadWindows.Item(1). Visible = False" worked to close the Graphic Window.
    You may need a different item number if you have more than one program open.

    The Object Hierarchy Chart helps show how all the objects are nested (Help > PC-DMIS Object Library > Getting Started > Object Hierarchy Chart). I usually skip over introductions wanting to get to the meat & potatoes of whatever it is I'm after. The Object Chart is a good roadmap for reference.
Children
No Data