Minimize Report Window - Manual Vision Features

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Minimize Report Window - Manual Vision Features

    I run PC-DMIS in Protected Mode. Usually the report window is open. Is there a way to minimize the report window automatically with a script when the software kicks into a manual vision feature? I only have a few programs that do this.

    It would be great to add a script before those features occur to automatically minimize the report window since that sits over the top of the vision and then once those features are done, I can have a script to open the report window back up.

    Better yet, PC-DMIS should just do this automatically....

  • #2
    Originally posted by bfire85 View Post
    I run PC-DMIS in Protected Mode. Usually the report window is open. Is there a way to minimize the report window automatically with a script when the software kicks into a manual vision feature? I only have a few programs that do this.

    It would be great to add a script before those features occur to automatically minimize the report window since that sits over the top of the vision and then once those features are done, I can have a script to open the report window back up.

    Better yet, PC-DMIS should just do this automatically....
    Protected mode. I am looking at protected mode, I found there is no way to run F9 marked probes calibration ? What shall we do to run calibration in the protected mode? :?
    Thanks

    Comment


    • #3
      Originally posted by Robontario View Post

      Protected mode. I am looking at protected mode, I found there is no way to run F9 marked probes calibration ? What shall we do to run calibration in the protected mode? :?
      Thanks
      There isn't a way unless you program it in to do so at the beginning of the program.

      Comment


      • #4
        Originally posted by bfire85 View Post
        I run PC-DMIS in Protected Mode. Usually the report window is open. Is there a way to minimize the report window automatically with a script when the software kicks into a manual vision feature? I only have a few programs that do this.

        It would be great to add a script before those features occur to automatically minimize the report window since that sits over the top of the vision and then once those features are done, I can have a script to open the report window back up.

        Better yet, PC-DMIS should just do this automatically....
        What about using a double screen ?

        Comment


        • #5
          Originally posted by JEFMAN View Post

          What about using a double screen ?
          Report Window and CAD/Vision is dedicated to the same screen. Only the Edit Window can be moved to a second monitor.

          Comment


          • #6
            Blatantly stolen from the online helpfile and edited:

            Code:
            Sub Main(state as string)
            
            Dim App As Object
            Dim PartProg As Object
            Dim RepWin As Object
            Set App = CreateObject("Pcdlrn.Application")
            Set PartProg = App.ActivePartProgram
            Set RepWin = PartProg.ReportWindow
            
            if state = "show" then
            RepWin.Visible = True
            end if
            
            if state = "noshow" then
            RepWin.Visible = False
            end if
            
            if state = "" then
            if RepWin.Visible = true then
            RepWin.Visible = false
            elseif RepWin.Visible = false then
            RepWin.Visible = true
            end if
            
            End Sub
            Save it and call it from your program: "show" as argument should show the report window, "noshow" should close the report window. No argument "should" close it if open and open it if closed.
            Last edited by vpt.se; 05-10-2022, 10:24 AM.
            PC-DMIS CAD++ 2o22.1 SP2

            Comment


            • #7
              Originally posted by vpt.se View Post
              Blatantly stolen from the online helpfile and edited:

              Code:
              Sub Main(state as string)
              
              Dim App As Object
              Dim PartProg As Object
              Dim RepWin As Object
              Set App = CreateObject("Pcdlrn.Application")
              Set PartProg = App.ActivePartProgram
              Set RepWin = PartProg.ReportWindow
              
              if state = "show" then
              RepWin.Visible = True
              end if
              
              if state = "noshow" then
              RepWin.Visible = False
              end if
              
              if state = "" then
              if RepWin.Visible = true then
              RepWin.Visible = false
              elseif RepWin.Visible = false then
              RepWin.Visible = true
              end if
              
              End Sub
              Save it and call it from your program: "show" as argument should show the report window, "noshow" should close the report window. No argument "should" close it if open and open it if closed.
              So my variable with need to be labeled "state"?

              Code:
              ASSIGN/STATE="show"
              $$ NO,
              SCRIPT HERE
              ASSIGN/STATE="noshow"
              $$ NO,
              SCRIPT HERE

              Comment


              • #8
                No, you call the script with an argument: "show" for showing the report, "noshow" for closing the report.

                CS1 =SCRIPT/FILENAME= D:\MYAUTOMATIONSCRIPTS\SCRIPTNAME.BAS
                FUNCTION/Main,SHOW=YES,ARG1="show",
                Last edited by vpt.se; 05-11-2022, 02:26 AM.
                PC-DMIS CAD++ 2o22.1 SP2

                Comment

                Related Topics

                Collapse

                Working...
                X