Auto Part program close.

  • 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 ?



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

    Something like:

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


    • 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.


    Related Topics


    • 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