hexagon logo

Multiple snapshots

Trying to show multiple snapshots in one report. CADGRAPH gets very "busy" showing the entire part profile. I've been asked to show multiple snapshots of different areas of the part on the same report. I've added several profile checks of the various areas of the part. Seems like I would have to turn each CADGRAPH on and off for each snapshot. Has anyone been able to do this?
Parents
  • I was just needing to accomplish the same task in one of my programs, and here is what I came up with, with the help of this post and couple others I found on here.

    This is currently working well for me. The code below is straight from my program however, so you will want to edit it for your purpose.

    ASSIGN/COUNT=0
    L1 =LABEL/
    IF/COUNT==0
    ASSIGN/TOGGLE1="ON"
    ASSIGN/SWITCH1="NONE"
    END_IF/
    IF/COUNT==1
    ASSIGN/TOGGLE1="OFF"
    ASSIGN/SWITCH1="BOTH"
    END_IF/
    FCFFLAT1 =GEOMETRIC_TOLERANCE/STANDARD=ASME Y14.5,SHOWEXPANDED=YES,
    UNITS=IN,OUTPUT=SWITCH1,ARROWDENSITY=100,
    SEGMENT_1,FLATNESS,0.003,TOL_ZONE_MATH=DEFAULT,
    TEXT=ON,CADGRAPH=TOGGLE1,REPORTGRAPH=OFF,MULT=1250 ,
    MEASURED:
    DATUM_A_PLN:0.0019,
    ADD
    FEATURES/DATUM_A_PLN,,
    IF/COUNT==0
    VIEWSET1 =VIEWSET/
    RECALL/VIEWSET,VIEWSET1
    SNAPSHOT1 =SNAPSHOT/
    END_IF/
    IF/COUNT==0
    ASSIGN/COUNT=COUNT+1
    GOTO/L1
    END_IF/
    ASSIGN/COUNT2=0
    L2 =LABEL/
    IF/COUNT2==0
    ASSIGN/TOGGLE2="ON"
    ASSIGN/SWITCH2="NONE"
    END_IF/
    IF/COUNT2==1
    ASSIGN/TOGGLE2="OFF"
    ASSIGN/SWITCH2="BOTH"
    END_IF/
Reply
  • I was just needing to accomplish the same task in one of my programs, and here is what I came up with, with the help of this post and couple others I found on here.

    This is currently working well for me. The code below is straight from my program however, so you will want to edit it for your purpose.

    ASSIGN/COUNT=0
    L1 =LABEL/
    IF/COUNT==0
    ASSIGN/TOGGLE1="ON"
    ASSIGN/SWITCH1="NONE"
    END_IF/
    IF/COUNT==1
    ASSIGN/TOGGLE1="OFF"
    ASSIGN/SWITCH1="BOTH"
    END_IF/
    FCFFLAT1 =GEOMETRIC_TOLERANCE/STANDARD=ASME Y14.5,SHOWEXPANDED=YES,
    UNITS=IN,OUTPUT=SWITCH1,ARROWDENSITY=100,
    SEGMENT_1,FLATNESS,0.003,TOL_ZONE_MATH=DEFAULT,
    TEXT=ON,CADGRAPH=TOGGLE1,REPORTGRAPH=OFF,MULT=1250 ,
    MEASURED:
    DATUM_A_PLN:0.0019,
    ADD
    FEATURES/DATUM_A_PLN,,
    IF/COUNT==0
    VIEWSET1 =VIEWSET/
    RECALL/VIEWSET,VIEWSET1
    SNAPSHOT1 =SNAPSHOT/
    END_IF/
    IF/COUNT==0
    ASSIGN/COUNT=COUNT+1
    GOTO/L1
    END_IF/
    ASSIGN/COUNT2=0
    L2 =LABEL/
    IF/COUNT2==0
    ASSIGN/TOGGLE2="ON"
    ASSIGN/SWITCH2="NONE"
    END_IF/
    IF/COUNT2==1
    ASSIGN/TOGGLE2="OFF"
    ASSIGN/SWITCH2="BOTH"
    END_IF/
Children