dimention command problem

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • dimention command problem

    Dear guys,

    when i use "dimention" command to evaluate a measured point automatically by code,what i get is as follows:
    ------------------------------------------------
    DIM LOC27
    T 0.000
    END OF DIMENSION LOC27
    DIMINFO/LOC15;ICON, , ,VERT,HORIZ, ,$
    , ;DEV, , , , , , , , ,$
    T, , , , , , , , , , , , , , , , ,
    ------------------------------------------------
    then, how can i make the "icon"/"vert"/"horiz" as null,jusy like bellow.any adviceļ¼Ÿ
    ------------------------------------------------
    DIM LOC27
    T 0.000
    END OF DIMENSION LOC27
    DIMINFO/LOC15; , , , , , ,$
    , ;DEV, , , , , , , , ,$
    T, , , , , , , , , , , , , , , , ,
    -----------------------------------------------

    my code is as follows:
    -----------------------------------------------
    ......

    LocationCmd4.PutText("LOC"+locationIndex.ToString( ), 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();
    -----------------------------------------------


    thank you all!

  • #2
    anyone?help!

    Comment


    • #3
      Hi, could you please be more specific, what exactly you trying to achieve? Expression "automatically by code" mean output script to program or what?
      Last edited by Darius11; 06-01-2020, 06:56 AM.

      Comment


      • quentin66
        quentin66 commented
        Editing a comment
        many thanks for your reply.
        i am trying to write PRG line by line using c#.and the problem is as what i mentioned before.
        i have no ideas about this

      • LostL
        LostL commented
        Editing a comment
        Why would you do that? Not to be discouraging but I have a hard time seeing cases where that would be a good idea. There are bugs in the automation interface, and when doing something that complicated it's a very real possibility that you will encounter critical errors that can't be worked around.

    • #4
      The ToggleStrings are controlling this. Check the different ENUMS (GRAPH_OPTION, DIM_INFO_ORDER, etc) for more information.

      Create a LOC in a program that has nothing selected and export that program as BASIC to see how to setup the command.
      PC-DMIS CAD++ 2o19 R1 SP11

      Comment


      • quentin66
        quentin66 commented
        Editing a comment
        i did this,and i got the same bas commands.and that's why i am here

    • #5
      +1 vpt.se

      B&S CHAMELEON/PCDMIS CAD++ V2011

      There are no bugs, only "UNDOCUMENTED ENHANCEMENTS!"

      sigpic

      Comment


      • quentin66
        quentin66 commented
        Editing a comment
        i did this,and i got the same bas commands.and that's why i am here

    Related Topics

    Collapse

    Working...
    X