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
  • For the icon on use this

    ' Set Show Ids Item 1 = ICON
    retval = DmisCommand.SetToggleString (1, SHOW_IDS, 1)


    For the icon off use this

    ' Set Show Ids Item 1 =
    retval = DmisCommand.SetToggleString (6, SHOW_IDS, 1)


    Why it's '6' I have no idea.


    Handy little trick for this type thing btw.

    1) Get notepad++ (if you haven't yet)
    2) From plugins menu select Plugins Admin and search for and install 'Compare'
    3) From PCDMIS export the .bas with the option in question set one way, and then the other
    4) Open both files in notepad++ and from the plugins menu select compare, then compare


    thank you very much.
    but my current code is just like you mentioned,and of cource,that does not work

    Command LocationCmd4 = pcdCommands.Add(pcdOBT.DIMENSION_INFORMATION, true);
    LocationCmd4.Marked = true;
    LocationCmd4.PutText("LOC22", pcdEFT.REF_ID, 0);
    LocationCmd4.SetToggleString(6, pcdEFT.SHOW_IDS, 1);
    LocationCmd4.SetToggleString(6, pcdEFT.SHOW_IDS, 2);
    LocationCmd4.SetToggleString(1, pcdEFT.SHOW_HEADINGS, 0);
    LocationCmd4.SetToggleString(1, pcdEFT.GRAPH_OPTION, 0);
    LocationCmd4.SetToggleString(4, pcdEFT.DIM_INFO_ORDER, 1);
    LocationCmd4.SetToggleString(14, pcdEFT.DIM_INFO_LOC, 1);
    LocationCmd4.ReDraw();
Reply Children
No Data