Getting the indices of MAX and MIN from an FCF Profile...

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

  • Getting the indices of MAX and MIN from an FCF Profile...

    As a spinoff of the "Getting the original name of items in a set" (https://www.pcdmisforum.com/forum/pc...items-in-a-set) I found out how to get the indices of MAX and MIN in the Summary table. See https://www.pcdmisforum.com/forum/pc...714#post439714
    AndersI
    SW support - Hexagon Metrology Nordic AB

  • #2
    Another variation for a solution.

    Go up and find first FCF of linear profile type (eg. FCFLOC1)
    Get the name of the feature being evaluated (eg. SCN1)

    Initialize COUNT
    Get T_A_VALUE (min or max)
    Get T_A_DEV

    Get name of individual feature in SCN1 (e.g. scn1[1] = APNT1
    If T_A_Value is either min or max, output it with deviation

    In the edit screen.......
    Code:
    ASSIGN/COMMAND_NAME=GETCOMMAND(“FCF line profile”,”up”,1)
    ASSIGN/FEAT_NAME=GETTEXT(657,1,{COMMAND_NAME})
    ASSIGN/V1=GETTEXT(“Reference Id”,COUNT,{FEAT_NAME})
    ASSIGN/COUNT=0
    
    DO/
    ASSIGN/COUNT=COUNT+1
    ASSIGN/TEXT_ANALYSIS_VALUE=GETTEXT(762,COUNT,{COMMAND_NAME})
    ASSIGN/TEXT_ANALYSIS_DEVIATION=GETTEXT(761,COUNT,{COMMAND_NAME})
    
    IF/TEXT_ANALYSIS_VALUE==“MIN” OR TEXT_ANALYSIS_VALUE==“MAX”
    COMMENT/REPT,””+FEAT_NAME + “[“+COUNT+“]“+”{“+V1+”}  “+”=  “+TEXT_ANALYSIS_DEVIATION+”   “ +TEXT_ANALYSIS_VALUE
    END_IF/
    
    UNTIL/COUNT>FEAT_NAME.NUMHITS-1
    Last edited by dph51; 12-03-2018, 12:07 PM.

    B&S CHAMELEON/PCDMIS CAD++ V2011

    There are no bugs, only "UNDOCUMENTED ENHANCEMENTS!"

    sigpic

    Comment


    • JEFMAN
      JEFMAN commented
      Editing a comment
      I always prefer assignments than scripts...
      Maybe because I'm too bad in scripting

Related Topics

Collapse

Working...
X