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


  • This indicates a 64 bit python on my system. I could try to install the 32 bit python instead.

    {"alt":"Click image for larger version Name:\tPython 3.6 64bit.PNG Views:\t1 Size:\t21.8 KB ID:\t424684","data-align":"none","data-attachmentid":"424684","data-size":"full","title":"Python 3.6 64bit.PNG"}

    Thank you for the additional info (WIP)


    You could just go ahead and install the same version I'm running. https://www.python.org/downloads/release/python-351/
    pywin32-220.win32-py3.5

    Running the newest version of Python before libraries have been updated can create headaches.

    If it's something enough people would be interested in, I could write a tutorial on setting up everything from scratch too.
Reply


  • This indicates a 64 bit python on my system. I could try to install the 32 bit python instead.

    {"alt":"Click image for larger version Name:\tPython 3.6 64bit.PNG Views:\t1 Size:\t21.8 KB ID:\t424684","data-align":"none","data-attachmentid":"424684","data-size":"full","title":"Python 3.6 64bit.PNG"}

    Thank you for the additional info (WIP)


    You could just go ahead and install the same version I'm running. https://www.python.org/downloads/release/python-351/
    pywin32-220.win32-py3.5

    Running the newest version of Python before libraries have been updated can create headaches.

    If it's something enough people would be interested in, I could write a tutorial on setting up everything from scratch too.
Children