hexagon logo

Scripting

Alright folks, I'm getting there but not quite. So I have a very small area, and a callout of a position and this area is a Radius. Now I took 4 Polar Radius hits, and Created Assignment Shown below


ASSIGN/V1=(PNT46.PR+PNT47.PR+PNT1.PR+PNT48.PR)/4
F1         =GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
            NOM/XYZ,<0,0,0>,$
            MEAS/XYZ,<0,0,0>,$
            NOM/IJK,<0,0,1>,$
            MEAS/IJK,<0,0,1>,$
            RADIUS/6,V1

Now my nominal is fine 0,0,0 center of the part. Can't create a constructed circle. Really crappy numbers. But I know I have have to create something based off of those points to fill in my measured results in that generic circle. need a little help here. Hope This is something easy. , ,

suggestions?
Parents
  • Alright folks, I'm getting there but not quite. So I have a very small area, and a callout of a position and this area is a Radius. Now I took 4 Polar Radius hits, and Created Assignment Shown below


    ASSIGN/V1=(PNT46.PR+PNT47.PR+PNT1.PR+PNT48.PR)/4
    F1 =GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
    NOM/XYZ,<0,0,0>,$
    MEAS/XYZ,<0,0,0>,$
    NOM/IJK,<0,0,1>,$
    MEAS/IJK,<0,0,1>,$
    RADIUS/6,V1

    Now my nominal is fine 0,0,0 center of the part. Can't create a constructed circle. Really crappy numbers. But I know I have have to create something based off of those points to fill in my measured results in that generic circle. need a little help here. Hope This is something easy. , ,

    suggestions?


    Out of those four hits, maybe construct a Fixed Radius circle using your V1 measurement as your diameter. Then your Fixed Radius X and Y measured location would be the location of F1.

    Something like this:

    PNT1       =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
                THEO/<6,0,0>,<1,0,0>
                ACTL/<6,0,0>,<1,0,0>
                TARG/<6,0,0>,<1,0,0>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=NO
    PNT2       =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
                THEO/<6,30,0>,<0.8660254,0.5,0>
                ACTL/<6,30,0>,<0.8660254,0.5,0>
                TARG/<6,30,0>,<0.8660254,0.5,0>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=NO
    PNT3       =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
                THEO/<6,60,0>,<0.5,0.8660254,0>
                ACTL/<6,60,0>,<0.5,0.8660254,0>
                TARG/<6,60,0>,<0.5,0.8660254,0>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=NO
    PNT4       =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
                THEO/<6,90,0>,<0,1,0>
                ACTL/<6,90,0>,<0,1,0>
                TARG/<6,90,0>,<0,1,0>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=NO
                ASSIGN/V1=((PNT1.PR+PNT2.PR+PNT3.PR+PNT4.PR)/4)*2
    CIR1       =FEAT/CIRCLE,CARTESIAN,IN,FIXED_RAD,YES
                THEO/<0+0,0+0,0+0>,<0,0,1>,V1
                ACTL/<0,0,0>,<0,0,1>,12
                CONSTR/CIRCLE,BF,2D,PNT1,PNT2,PNT3,PNT4,,
                OUTLIER_REMOVAL/OFF,3
                FILTER/OFF,UPR=0
    
Reply
  • Alright folks, I'm getting there but not quite. So I have a very small area, and a callout of a position and this area is a Radius. Now I took 4 Polar Radius hits, and Created Assignment Shown below


    ASSIGN/V1=(PNT46.PR+PNT47.PR+PNT1.PR+PNT48.PR)/4
    F1 =GENERIC/CIRCLE,DEPENDENT,CARTESIAN,OUT,$
    NOM/XYZ,<0,0,0>,$
    MEAS/XYZ,<0,0,0>,$
    NOM/IJK,<0,0,1>,$
    MEAS/IJK,<0,0,1>,$
    RADIUS/6,V1

    Now my nominal is fine 0,0,0 center of the part. Can't create a constructed circle. Really crappy numbers. But I know I have have to create something based off of those points to fill in my measured results in that generic circle. need a little help here. Hope This is something easy. , ,

    suggestions?


    Out of those four hits, maybe construct a Fixed Radius circle using your V1 measurement as your diameter. Then your Fixed Radius X and Y measured location would be the location of F1.

    Something like this:

    PNT1       =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
                THEO/<6,0,0>,<1,0,0>
                ACTL/<6,0,0>,<1,0,0>
                TARG/<6,0,0>,<1,0,0>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=NO
    PNT2       =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
                THEO/<6,30,0>,<0.8660254,0.5,0>
                ACTL/<6,30,0>,<0.8660254,0.5,0>
                TARG/<6,30,0>,<0.8660254,0.5,0>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=NO
    PNT3       =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
                THEO/<6,60,0>,<0.5,0.8660254,0>
                ACTL/<6,60,0>,<0.5,0.8660254,0>
                TARG/<6,60,0>,<0.5,0.8660254,0>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=NO
    PNT4       =FEAT/CONTACT/VECTOR POINT/DEFAULT,POLAR
                THEO/<6,90,0>,<0,1,0>
                ACTL/<6,90,0>,<0,1,0>
                TARG/<6,90,0>,<0,1,0>
                SHOW FEATURE PARAMETERS=NO
                SHOW CONTACT PARAMETERS=NO
                ASSIGN/V1=((PNT1.PR+PNT2.PR+PNT3.PR+PNT4.PR)/4)*2
    CIR1       =FEAT/CIRCLE,CARTESIAN,IN,FIXED_RAD,YES
                THEO/<0+0,0+0,0+0>,<0,0,1>,V1
                ACTL/<0,0,0>,<0,0,1>,12
                CONSTR/CIRCLE,BF,2D,PNT1,PNT2,PNT3,PNT4,,
                OUTLIER_REMOVAL/OFF,3
                FILTER/OFF,UPR=0
    
Children