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?
  • I know what you mean. The report can get really messy in a hurry with all the overlapping graphs. There is no easy setting I know of to show some graphs in one snapshot and not have them show up in the following snapshots.

    My method is typically to use a snapshot to show what is being graphed (typically profile scans) followed by a graphical analysis in the same orientation. It makes something that isn't too much work to set up and gives the desired information. Though, it isn't quite as nice as what you are looking for.

    There is a hack to do just what you want, but it can be a bit tedious. See this post: Turn off CAD graphs programatically - PC-DMIS User Forum (pcdmisforum.com)

    The formatting of the original post is hard to follow - the text formatting isn't displaying properly in the code window. Scroll to post #5 where I re-posted the original code as I think it was intended to be viewed.

    That example uses the older viewset commands, but it should work the same with snapshots.
  • You have to use a bunch of VIEWSETS. it's what i use.

    report profile GRAPH=ON
    create viewset
    recall viewset
    SNAPSHOT
    recall NEUTRAL VIEWSET

    rinse repeat.
  • You have to use a bunch of VIEWSETS. it's what i use.

    report profile GRAPH=ON
    create viewset
    recall viewset
    SNAPSHOT
    recall NEUTRAL VIEWSET

    rinse repeat.


    This sounds promising. I don't know what you mean by NEUTRAL VIEWSET. Is that the same as the STARTUP viewset?
  • sure, whatever viewset you choose as a neutral setup for your needs. if it's the STARTUP then so be it.

    i usually include a RECALL after because i'm generally going on to create a new dimension/viewset and now i can easily manipulate the GDW for the next one.
  • : Thank you. I look forward to trying this out.
  • dont forget your FORMFEED/ command Slight smile
  • 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/
  • The only issue that I'm currently having is that the snapshot appears above the Dimensions on the report, instead of below them. I would rather have the snapshots below the corresponding dimensions in my case.

    I'm not quite sure how to solve this.
  • Edit:

    Sorry, looks like I posted the code wrong there.

    Here is the code I am using:

    ASSIGN/COUNT=0
    L1         =LABEL/
                IF/COUNT==0
                  ASSIGN/TOGGLE1="ON"
                  ASSIGN/SWITCH1="BOTH"
                END_IF/
                IF/COUNT==1
                  ASSIGN/TOGGLE1="OFF"
                  ASSIGN/SWITCH1="NONE"
                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.0006,
                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="BOTH"
                END_IF/
                IF/COUNT2==1
                  ASSIGN/TOGGLE2="OFF"
                  ASSIGN/SWITCH2="NONE"
                END_IF/
    FCFPARL1   =GEOMETRIC_TOLERANCE/STANDARD=ASME Y14.5,SHOWEXPANDED=YES,
                UNITS=IN,OUTPUT=SWITCH2,ARROWDENSITY=100,
                SEGMENT_1,PARALLELISM,PLANAR,0.003,__,A,<dat>,
                TEXT=ON,CADGRAPH=TOGGLE2,REPORTGRAPH=OFF,MULT=1250,
                  MEASURED:
                    PARALLEL_PLN:0.0009,
                FEATURES/PARALLEL_PLN,,
                IF/COUNT2==0
    VIEWSET2     =VIEWSET/
                  RECALL/VIEWSET,VIEWSET2
    SNAPSHOT2    =SNAPSHOT/
                END_IF/
                IF/COUNT2==0
                  ASSIGN/COUNT2=COUNT2+1
                  GOTO/L2
                END_IF/​