hexagon logo

python development instances for pc-dmis.

import win32com.client as w32
dmisapp = w32.Dispatch('PCDLRN.Application')
dmispart = dmisapp.ActivePartProgram
dmiscommands = dmispart.Commands

def pc_dmis_report():
    for cmd in dmiscommands:
        if cmd.IsDimension and int(cmd.DimensionCommand.OutTol)==0:
            cmd.SetToggleString(3,165,0)
        else:
            cmd.SetToggleString(4,165,0)

pc_dmis_report()
dmispart.RefreshPart()
Parents


  • Yes, that would give the ability for button customization of the hand held controller.


    This idea is quite sexy. The ability to have/create/fenaggle together a custom controller for PC-DMIS?
    Heck, a whole box!
    I've always dreamt of having a PC-DMIS 'operating system' where I've just got the controller, the software, and a GUI...
    Is Python the answer???
    Maybe. Maybe not. Would be a very cool project to play around with...
Reply


  • Yes, that would give the ability for button customization of the hand held controller.


    This idea is quite sexy. The ability to have/create/fenaggle together a custom controller for PC-DMIS?
    Heck, a whole box!
    I've always dreamt of having a PC-DMIS 'operating system' where I've just got the controller, the software, and a GUI...
    Is Python the answer???
    Maybe. Maybe not. Would be a very cool project to play around with...
Children