Auto Part program close.

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

  • Auto Part program close.

    Hi All.

    Is it possible to auto close a part program once it has finished ? Do I need a script ?

    Thanks.

    Stuart.

  • #2
    In theory it is possible with a Basic script, but I have never tried it...

    Something like:

    Code:
    Sub Main()
    
      Dim DmisApp As Object
      Dim DmisPart As Object
    
      Set DmisApp = CreateObject("PCDLRN.Application")
      Set DmisPart = DmisApp.ActivePartProgram
    
      DmisPart.Close
    
    End Sub
    AndersI
    SW support - Hexagon Metrology Nordic AB

    Comment


    • vpt.se
      vpt.se commented
      Editing a comment
      Interesting if it should work or not, especially if the part program is the instance calling the script...
      ...but I guess it is the DmisApp that is the calling instance, so it will work?

      fatpants666 - chime in with the result, will ya'?

  • #3
    I will give it a try thanks.

    Comment


    • #4
      Did it work?
      sigpicV2014mr1

      Comment


      • #5
        I tried it right now, and it *didn't* work. It seems you can't saw off the branch you're sitting on... It can definitely be done with an external program that is controlling PC-DMIS, but I don't know if it can be done by an external program started *by* PC-DMIS...
        AndersI
        SW support - Hexagon Metrology Nordic AB

        Comment

        Related Topics

        Collapse

        • Jim Stertz
          Auto Execute
          by Jim Stertz
          Does anyone know how to open and/or execute a part program at the end of a part program?

          I want to run a part program and then at the end...
          07-23-2007, 04:11 PM
        • MIKEY
          Auto Cyl
          by MIKEY
          The create button is not clickeble. wtf any1?
          09-18-2008, 12:32 PM
        • hermworm
          Auto file open
          by hermworm
          Does anyone know if I can have DMIS auto open Catia viewer? I have been working with auto save and auto file creation and it works great. Just wondering...
          10-21-2019, 10:40 AM
        • jdg021
          auto tip
          by jdg021
          I am new to programming and while I am creating new cmm points random tips are being assigned in my program. What could I be doing wrong?
          04-13-2013, 12:47 PM
        • Mansukh
          2013 MR1 auto feature
          by Mansukh
          CMM is just upgraded from V4.1 to 2013 MR1 but i could not see all auto features in Auto feature tool bar. I can see only vector point, auto line, auto...
          08-22-2014, 12:27 AM
        Working...
        X