hexagon logo

Settogglestring

Hello all,
Is there some documentation on the settogglestring method.
I am curious about the parameter values and how to set them
accordingly.
Thanks in advance for any help or info.
Parents Reply Children
  • I tried to turn off the icon and failed, you're right

    the toggle box for "Icon" is obviously not exported as Basic. That seems to be a bug.
    Furthermore, it is not documented with which keyword "Icon" is toggled
  • I found a solution that works in my case.

    Set PCDCommand = PCDCommands.Add(DIMENSION_INFORMATION, True)
    PCDCommand.Marked = True

    retval = PCDCommand.PutText("D1", REF_ID, 0)
    retval = PCDCommand.SetToggleString(0, SHOW_IDS, 1)
    retval = PCDCommand.SetToggleString(0, SHOW_IDS, 2)
    retval = PCDCommand.SetToggleString(6, SHOW_IDS, 3)
    retval = PCDCommand.SetToggleString(0, SHOW_IDS, 4)
    retval = PCDCommand.SetToggleString(0, SHOW_IDS, 5)
    retval = PCDCommand.SetToggleString(0, SHOW_IDS, 6)
    retval = PCDCommand.SetToggleString(1, SHOW_HEADINGS, 0)