hexagon logo

Tip object

Hi,

I am trying to get A angle of tip for script.

From help:
"Tip.A
Returns the A angle of the tip. Read-only Double."

I have no clue how to retrieve data. How I can A angle of current tip?
Parents
  • Here you go:

    LOADPROBE/LSPX1_3X50
    TIP/T1A0B0, SHANKIJK=0, 0, 1, ANGLE=0
    TIP/T1A-90B0, SHANKIJK=0, -1, 0, ANGLE=0
    ASSIGN/A_ANGLE=PROBEDATA("A")
    ASSIGN/B_ANGLE=PROBEDATA("B")
    
  • This is for pc dmis itself. At the moment I do have:
    [If Cmd.Type = SET_ACTIVE_TIP Then
    ProbeAngle1 = right(left(Cmd.GetText (ID, 0),instr(1,Cmd.GetText (ID, 0),"B")-1),(len(left(Cmd.GetText (ID, 0),instr(1,Cmd.GetText (ID, 0),"B")-1))-instr(1,left(Cmd.GetText (ID, 0),instr(1,Cmd.GetText (ID, 0),"B")-1),"A")))
    ...]

    It doing job but if I could replace this "right(left(Cmd.GetText (ID, 0),instr(1,Cmd.GetText (ID, 0),"B")-1),(len(left(Cmd.GetText (ID, 0),instr(1,Cmd.GetText (ID, 0),"B")-1))-instr(1,left(Cmd.GetText (ID, 0),instr(1,Cmd.GetText (ID, 0),"B")-1),"A")))" by one command it would be easier to reed.
Reply
  • This is for pc dmis itself. At the moment I do have:
    [If Cmd.Type = SET_ACTIVE_TIP Then
    ProbeAngle1 = right(left(Cmd.GetText (ID, 0),instr(1,Cmd.GetText (ID, 0),"B")-1),(len(left(Cmd.GetText (ID, 0),instr(1,Cmd.GetText (ID, 0),"B")-1))-instr(1,left(Cmd.GetText (ID, 0),instr(1,Cmd.GetText (ID, 0),"B")-1),"A")))
    ...]

    It doing job but if I could replace this "right(left(Cmd.GetText (ID, 0),instr(1,Cmd.GetText (ID, 0),"B")-1),(len(left(Cmd.GetText (ID, 0),instr(1,Cmd.GetText (ID, 0),"B")-1))-instr(1,left(Cmd.GetText (ID, 0),instr(1,Cmd.GetText (ID, 0),"B")-1),"A")))" by one command it would be easier to reed.
Children
No Data