Reporting the Average Polar Radius

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

  • Reporting the Average Polar Radius

    Hey again, it's your favorite forum member.

    I'm trying to report the average PR from an offset origin and I'm having a difficult time figuring out why I'm getting 140mm instead of the expected 89mm. If anyone wouldn't mind taking a look at the code below, that'd be helpful. Thanks in advance.

    EDIT: I got it. I had the V1 formula wrong (divided by 3 instead of 6), updated the XYZ noms/meas to 0, and reported the average as a regular radius instead of the polar radius. Is it because the generic circle I created only works with diameters/radii? I confirmed the correction by manually calculating the average, which turned out to be 89.08mm on the dot, which matches what I'm seeing in the report.

    Code:
    PROF13 =SURFACE PROFILE : RR303,RR310,RR317,...
    FEATCTRLFRAME/SHOWPARAMS=NO,SHOWEXPANDED=NO
    PRIMARY DIMENSION/PROFILE OF SURFACE,2,A, ,B,C
    NOTE/PROF13
    FEATURES/RR303,RR310,RR317,RR324,RR331,RR338,,
    DIM LOC14_1= LOCATION OF POINT RR303 UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
    PR 89.000 0.130 0.130 89.110 0.110 0.000 --------#
    END OF DIMENSION LOC14_1
    DIM LOC14_2= LOCATION OF POINT RR310 UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
    PR 89.000 0.130 0.130 89.089 0.089 0.000 -------#-
    END OF DIMENSION LOC14_2
    DIM LOC14_3= LOCATION OF POINT RR317 UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
    PR 89.000 0.130 0.130 89.097 0.097 0.000 -------#-
    END OF DIMENSION LOC14_3
    DIM LOC14_4= LOCATION OF POINT RR324 UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
    PR 89.000 0.130 0.130 89.091 0.091 0.000 -------#-
    END OF DIMENSION LOC14_4
    DIM LOC14_5= LOCATION OF POINT RR331 UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
    PR 89.000 0.130 0.130 89.047 0.047 0.000 ------#--
    END OF DIMENSION LOC14_5
    DIM LOC14_6= LOCATION OF POINT RR338 UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
    PR 89.000 0.130 0.130 89.046 0.046 0.000 ------#--
    END OF DIMENSION LOC14_6
    ASSIGN/V1=(SUM(ARRAY(LOC14_1.PR.MEAS,LOC14_2.PR.MEAS,LOC1 4_3.PR.MEAS,LOC14_4.PR.MEAS,LOC14_5.PR.MEAS,LOC14_ 6.PR.MEAS)))/3
    F1 =GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
    NOM/XYZ,<108.3,0,90.19>,$
    MEAS/XYZ,<108.3,0,90.19>,$
    NOM/IJK,<0,1,0>,$
    MEAS/IJK,<0,1,0>,$
    RADIUS/89,V1
    DIM LOC1= LOCATION OF CIRCLE F1 UNITS=MM ,$
    GRAPH=OFF TEXT=OFF MULT=10.00 OUTPUT=BOTH HALF ANGLE=NO
    AX NOMINAL +TOL -TOL MEAS DEV OUTTOL
    PR 89.000 0.130 0.130 140.937 51.937 51.807 -------->
    END OF DIMENSION LOC1
    Last edited by ALousyUser; 09-24-2020, 06:52 PM.

  • #2
    Polar Radius is a dimension (location) calculated in/from the origin. This value will differ depending on what workplane you are in at the time of evaluation.
    Radius is the half the diameter of the feature.

    Using a generic feature you can put (almost) whatever value you want, in which field you want, regardless of it's source (coordinate, radius, diameter etc.).
    You hardcode that field to contain the value you want.

    What you could do is to change the coordinate type for your generic circle from cartesian to polar and put your PR value in the PR field and report that.
    PC-DMIS CAD++ 2o19 R1 SP11

    Comment

    Related Topics

    Collapse

    Working...
    X