hexagon logo

Creating a point

As you can see from the attached marked up print, I need to measure the outside intersection point of two cylinders. Right now, I have it programmed to offset a line from the center of the cylinder to the outside of the cylinder by .5" which is the nominal radius of the tubing. The problem I run into with that method is that the dimensions apply after the part is powder coated, so the powder coating could make the radius of the part grow up to .575". So after the program is run, I go back and edit the constructed offset line by changing the offset distance to what the radius of the tube measures after the part is powder coated.

Is there an easier way to do this using code of some sort to offset the line by 1/2 of the diameter of the cylinder instead of using an exact number? That way if the cylinder grows the code will account for that in the program.

PS I am horrible at editing code, so if that is the best way please walk me through it step by step.

Greatly appreciated!

Attached Files
Parents
  • COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
    Measure diameter of tube and enter the radius for LIN4 & LIN5, and then update the line and update dimensions G.
    PNT3 =FEAT/POINT,CARTESIAN,YES
    THEO/<21.9759,12.94,0>,<0.7071068,0.7071068,0>
    ACTL/<21.9759,12.94,0>,<0.7071068,0.7071068,0>
    CONSTR/POINT,PIERCE,CYL4,PLN3
    LIN5 =FEAT/LINE,CARTESIAN,UNBOUNDED,NO
    THEO/<0,-0.5,0>,<1,0,0>
    ACTL/<0,-0.5,0>,<1,0,0>
    CONSTR/LINE,OFFSET
    SURFACE NORMAL = <0,0,1>,MULTI POINT
    ID = PNT1,PNT2,,
    OFFSET = -0.5,-0.5

    Instead of the comment, you should measure the diameter (cyl4 for example), then ASSIGN/V1=CYL4.R.
    In offset, write V1 instead of 0.5, i think that it should work like you want.
    Pwhitsa is right, you should learn a little more with Hexagon...
Reply
  • COMMENT/OPER,NO,FULL SCREEN=NO,AUTO-CONTINUE=NO,
    Measure diameter of tube and enter the radius for LIN4 & LIN5, and then update the line and update dimensions G.
    PNT3 =FEAT/POINT,CARTESIAN,YES
    THEO/<21.9759,12.94,0>,<0.7071068,0.7071068,0>
    ACTL/<21.9759,12.94,0>,<0.7071068,0.7071068,0>
    CONSTR/POINT,PIERCE,CYL4,PLN3
    LIN5 =FEAT/LINE,CARTESIAN,UNBOUNDED,NO
    THEO/<0,-0.5,0>,<1,0,0>
    ACTL/<0,-0.5,0>,<1,0,0>
    CONSTR/LINE,OFFSET
    SURFACE NORMAL = <0,0,1>,MULTI POINT
    ID = PNT1,PNT2,,
    OFFSET = -0.5,-0.5

    Instead of the comment, you should measure the diameter (cyl4 for example), then ASSIGN/V1=CYL4.R.
    In offset, write V1 instead of 0.5, i think that it should work like you want.
    Pwhitsa is right, you should learn a little more with Hexagon...
Children
No Data