Looping a report text

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

  • CORONAXRA
    replied
    It worked

    Thank you

    Leave a comment:


  • CORONAXRA
    replied
    Thank you, I will give it a try on Monday. I will let you know

    Leave a comment:


  • acgarcia
    replied
    I take it back, So deg_count=deg_count+V2 for whatever V2 calculates to be.

    Code:
    C1 =COMMENT/INPUT,NO,FULL SCREEN=NO,
    how many rotations?
    ASSIGN/COUNT=C1.INPUT
    ASSIGN/V2=360/COUNT
    ASSIGN/DEG_COUNT=0
    V1 =LOOP/START,ID=YES,NUMBER=COUNT,START=1,SKIP=,
    OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=0
    COMMENT/REPT,
    "location 2.01 thru 6.49 @ "+DEG_COUNT
    $$ NO,
    program here
    ASSIGN/DEG_COUNT=DEG_COUNT+V2
    LOOP/END

    Leave a comment:


  • acgarcia
    commented on 's reply
    put your measurement program before the assign/deg_count=deg_count+20. and dont forget to end your loop either before or after your print command. Before for 1 report containing all your parts or after for 1 part per report.
    Last edited by acgarcia; 02-21-2020, 02:45 PM.

  • acgarcia
    replied
    try this:

    Code:
    ASSIGN/DEG_COUNT=0
    V1 =LOOP/START,ID=YES,NUMBER=5,START=1,SKIP=,
    OFFSET:XAXIS=0,YAXIS=0,ZAXIS=0,ANGLE=0
    COMMENT/REPT,
    "location 2.01 thru 6.49 @ " +DEG_COUNT
    ASSIGN/DEG_COUNT=DEG_COUNT+20
    LOOP/END

    Leave a comment:


  • CORONAXRA
    started a topic Looping a report text

    Looping a report text

    Made a simple loop program, trying to get the text in the report to count as it loops

    as follows:


    C1 =comment/input,no,full screen=no,
    how many rotations?
    Assign/v1=c1.input
    assign/v2=360/c1.input
    loop1 =loop/start,id=yes,number=v1,start=1,skip=,
    offset:xaxis=0,yaxis=0,zaxis=0,angle=v2

    comment/rept, <----i want this to change rotation every 20°, 40°, 60°, etc
    ****** location 2.01 thru 6.49 @ 0° ******

    2.01 =feat/contact/vector point/default,polar
    theo/<6.8274,0,-4.47>,<-1,0,0>
    actl/<6.8274,0,-4.47>,<-1,0,0>
    targ/<6.8274,0,-4.47>,<-1,0,0>
    snap=no
    show feature parameters=no
    show contact parameters=yes
    avoidance move=no,distance=0.3937
    show hits=no
    2.02 =feat/contact/vector point/default,polar
    theo/<6.8274,0,-4.475>,<-1,0,0>
    actl/<6.8274,0,-4.475>,<-1,0,0>
    targ/<6.8274,0,-4.475>,<-1,0,0>
    snap=no
    show feature parameters=no
    show contact parameters=yes
    avoidance move=no,distance=0.3937
    show hits=no

    ----at the end of the report----


    print/report,exec mode=end,$
    to_file=on,auto=1,auto open=off,$
    to_printer=off,copies=1,$
    to_dmis_report=off,file_option=index,filename=,$
    report_theoreticals=none,report_feature_with_dimen sions=no,$
    to_excel=off,$
    previous_runs=delete_instances


Related Topics

Collapse

Working...
X