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
  • Thanks for your reply LostL. (Does that mean you were a "LOST" fan (T.V. show)??
    I sure was.

    Anyway, when I created the script a while back, that's what I did.
    I was so happy it worked fairly well, I didn't try to fine tune it to get exactly what I
    wanted.
    Just to make sure, I created a vector point with diminfo and exported to .bas file again yesterday.
    This is what I got. Same as what I use except for the retval.

    Set DmisCommand = DmisCommands.Add(DIMENSION_INFORMATION, TRUE)
    DmisCommand.Marked = TRUE
    ' Set Reference Id = LOC592
    retval = DmisCommand.PutText ("LOC592", REF_ID, 0)
    ' Set Show Ids Item 1 =
    retval = DmisCommand.SetToggleString (6, SHOW_IDS, 1)
    ' Set Show Ids Item 2 =
    retval = DmisCommand.SetToggleString (6, SHOW_IDS, 2)
    ' Set Show Headings =
    retval = DmisCommand.SetToggleString (1, SHOW_HEADINGS, 0)
    ' Set Graph Option =
    retval = DmisCommand.SetToggleString (1, GRAPH_OPTION, 0)
    ' Set Dimension Info Order Item 1 = DEV
    retval = DmisCommand.SetToggleString (4, DIM_INFO_ORDER, 1)
    ' Set Dimension Info Location Item 1 = T
    retval = DmisCommand.SetToggleString (14, DIM_INFO_LOC, 1)

    End Sub

    Sub Main

    Part1
    Part2
    Part3
    Part4
    Part5

    DmisPart.RefreshPart
    End Sub


    One interesting thing, is that when I run the script and as it is
    finding the out of tolerance vector points, the code that is generated
    is "red". When the program is finished, the diminfo commands turn
    green and are slightly different than when they are red.
    Don't know what that means.

    Another thought, normally a value of 1 is true and 0 is false.
    I'm gonna try changing some values in for example the SHOW_HEADINGS
    and see what happens.
    Don't have a clue as to what the 14 means in the DIM_INFO_LOC command.

    Thanks for your suggestion.
Reply
  • Thanks for your reply LostL. (Does that mean you were a "LOST" fan (T.V. show)??
    I sure was.

    Anyway, when I created the script a while back, that's what I did.
    I was so happy it worked fairly well, I didn't try to fine tune it to get exactly what I
    wanted.
    Just to make sure, I created a vector point with diminfo and exported to .bas file again yesterday.
    This is what I got. Same as what I use except for the retval.

    Set DmisCommand = DmisCommands.Add(DIMENSION_INFORMATION, TRUE)
    DmisCommand.Marked = TRUE
    ' Set Reference Id = LOC592
    retval = DmisCommand.PutText ("LOC592", REF_ID, 0)
    ' Set Show Ids Item 1 =
    retval = DmisCommand.SetToggleString (6, SHOW_IDS, 1)
    ' Set Show Ids Item 2 =
    retval = DmisCommand.SetToggleString (6, SHOW_IDS, 2)
    ' Set Show Headings =
    retval = DmisCommand.SetToggleString (1, SHOW_HEADINGS, 0)
    ' Set Graph Option =
    retval = DmisCommand.SetToggleString (1, GRAPH_OPTION, 0)
    ' Set Dimension Info Order Item 1 = DEV
    retval = DmisCommand.SetToggleString (4, DIM_INFO_ORDER, 1)
    ' Set Dimension Info Location Item 1 = T
    retval = DmisCommand.SetToggleString (14, DIM_INFO_LOC, 1)

    End Sub

    Sub Main

    Part1
    Part2
    Part3
    Part4
    Part5

    DmisPart.RefreshPart
    End Sub


    One interesting thing, is that when I run the script and as it is
    finding the out of tolerance vector points, the code that is generated
    is "red". When the program is finished, the diminfo commands turn
    green and are slightly different than when they are red.
    Don't know what that means.

    Another thought, normally a value of 1 is true and 0 is false.
    I'm gonna try changing some values in for example the SHOW_HEADINGS
    and see what happens.
    Don't have a clue as to what the 14 means in the DIM_INFO_LOC command.

    Thanks for your suggestion.
Children
No Data