hexagon logo

Centcir

I'm using CENTCIR to find the location of the pin within my contour. I can find the center of the circle, but how can I evaluate the distance to the end of the pin?

Attached is a print snippet. How can I evaluate the 2.7753 and 1.5175 dimensions?





Parents
  • Hello.
    What i can see on the drawing the 1.5175 distance is to the tangency point.
    I did a test om a Cad model. You must insert your own values and element names.


    CENTCIR (NAM=PROFIL, PLA=XY, DIA=100, ANG=180, SPT=4, PNT=P(1))
    CENTCIR_P (NAM=PROFIL, RES=(CENT, PNT1, PNT2), PLA=XY, DIA=100)

    !Calculate the distance to the centerpoint
    DIPNTAXI (NAM=DIS(1), CSY=CSY(1), EL1=CENT, EL2=AXI(1), CPY=DEF$DIS1)

    !Calculate the distance to the tangentpoint
    ​DIPNTAXI (NAM=DIS(2), CSY=CSY(1), EL1=PNT2, EL2=AXI(2), CPY=DEF$DIS1)

    !Add the radius off the centering ball
    XY=DIS(1).$A+50

    !Run DFNELE just one time
    DFNELE (NAM=DIS(3), TYP=POI, CSY=CSY(1))

    !Add the calculated realvalue to the element
    PUTVAL (OBJ=DIS(3), DSC=X, TYP=ELE, VAL=XY)

    !Evaluate
    AddEva (NAM=DIS(3), EDT=N)


    Hope this helps
Reply
  • Hello.
    What i can see on the drawing the 1.5175 distance is to the tangency point.
    I did a test om a Cad model. You must insert your own values and element names.


    CENTCIR (NAM=PROFIL, PLA=XY, DIA=100, ANG=180, SPT=4, PNT=P(1))
    CENTCIR_P (NAM=PROFIL, RES=(CENT, PNT1, PNT2), PLA=XY, DIA=100)

    !Calculate the distance to the centerpoint
    DIPNTAXI (NAM=DIS(1), CSY=CSY(1), EL1=CENT, EL2=AXI(1), CPY=DEF$DIS1)

    !Calculate the distance to the tangentpoint
    ​DIPNTAXI (NAM=DIS(2), CSY=CSY(1), EL1=PNT2, EL2=AXI(2), CPY=DEF$DIS1)

    !Add the radius off the centering ball
    XY=DIS(1).$A+50

    !Run DFNELE just one time
    DFNELE (NAM=DIS(3), TYP=POI, CSY=CSY(1))

    !Add the calculated realvalue to the element
    PUTVAL (OBJ=DIS(3), DSC=X, TYP=ELE, VAL=XY)

    !Evaluate
    AddEva (NAM=DIS(3), EDT=N)


    Hope this helps
Children
No Data