hexagon logo

Cone variable

Hi,
I'm trying to use the value "4.67499" as a variable.
Any idea ?

FRAISURE =ÉLÉM/CÔNE,CARTÉSIEN,EXT,LONG,NON
THÉO/<0,0,1.05097>,<0,0,-1>,0.91042,2.505,4.67499
RÉEL/<0,0,1.05097>,<0,0,-1>,0.91042,2.505,4.67499
CONSTR/CÔNE,INV,FRAISURE_TEST​
  • Not the most efficient way I guess but it worked :

    CON1 =ÉLÉM/CÔNE,CARTÉSIEN,EXT,LONG,NON
    THÉO/<0,0,-1.96139>,<0,0,1>,0.91042,2.505,4.67499
    RÉEL/<0,0,-1.96139>,<0,0,1>,0.91042,2.505,4.67499
    CONSTR/CÔNE,INV,FRAISURE
    CER1 =ÉLÉM/CERCLE,CARTÉSIEN,EXT,NON
    THÉO/<0,0,0>,<0,0,1>,4.675
    RÉEL/<0,0,0>,<0,0,1>,4.675
    CONSTR/CERCLE,INTDE,PLN_PLATINE_EMB_B,CON1​
  • Ok, it doesn't work because it's an inner cone...
    So :
    ASSIGN/V1=CON1.A/2
    ASSIGN/V2=CON1.R
    ASSIGN/V3=SQRT(DOT(CON1.EXYZ-CON1.SXYZ,CON1.EXYZ-CON1.SXYZ))......................length of measure along cone axis
    ASSIGN/V4=DOT(CON1.EXYZ-PL1.XYZ,PL1.IJK)......................................................................distance between end point and plane
    ASSIGN/V5=DOT(CON1.SXYZ-PL1.XYZ,PL1.IJK)......................................................................distance between start point and plane
    ASSIGN/V6=MIN(ARRAY(ABS(V4),ABS(V5))).......................................................
    ASSIGN/V7=2*(V2+(V3+V6)*TAN(DEG2RAD(V1))).....................................................................searched diameter


    Is it really simplier ???????Confused
  • The code above doesn't work in case of using "depth" and "end_offset" Disappointed
    You have to add those values :

    ASSIGN/V1=CON1.A/2
    ASSIGN/V2=CON1.R
    ASSIGN/VA=GETCOMMAND(615,"up",1)
    ASSIGN/V_DEPTH=GETTEXT(78,0,VA)
    ASSIGN/V_OFF=GETTEXT(787,0,VA)
    ASSIGN/V3=SQRT(DOT(CON1.EXYZ-CON1.SXYZ,CON1.EXYZ-CON1.SXYZ))......................length of measure along cone axis
    ASSIGN/V4=DOT(CON1.EXYZ-PL1.XYZ,PL1.IJK).................................. ....................................distance between end point and plane
    ASSIGN/V5=DOT(CON1.SXYZ-PL1.XYZ,PL1.IJK).................................. ....................................distance between start point and plane
    ASSIGN/V6=MAX(ARRAY(ABS(V4-V_DEPTH),ABS(V5+V_OFF))).................... ...................................
    ASSIGN/V7=2*(V2+(V3+V6+V_DEPTH+V_OFF)*TAN(DEG2RAD(V1)))................ .................................................. ...searched diameter


    neil.challinor ; Don Ruggieri :
    If I construct a feature set from hits of the auto cone, and then construct a cone from it, assignment values are different (length, .xyz....)
    Is it normal ?
    Depth and offset make the calculation a little complicated...

    Have a nice week-end, all !​
  • Yes - XYZ for auto feature are where it's defined.

    For a constructed cone it gives the apex/point of the cone
  • : with depth and offset, .EXYZ and .SXYZ are strange also..