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


  • Chances are you actually have the 32bit version of python installed even though it's a 64bit OS. Open cmd and type 'Python"
    It should show you what version you're running. I prefer running 32 bit, personally. Less headaches.

    {"data-align":"none","data-size":"full","data-attachmentid":424674}


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



    Thank you for the additional info (WIP)
Reply


  • Chances are you actually have the 32bit version of python installed even though it's a 64bit OS. Open cmd and type 'Python"
    It should show you what version you're running. I prefer running 32 bit, personally. Less headaches.

    {"data-align":"none","data-size":"full","data-attachmentid":424674}


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



    Thank you for the additional info (WIP)
Children
No Data