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
  • I have a similar function for what is likely a similar purpose... Smiley

    In VBA:

    Function NegativeTip(name As String) As Boolean
    Dim Temp() As String
    Dim Angle As Integer
    Temp = Split(name, "A")
    Temp = Split(Temp(1), "B")
    Angle = CInt(Temp(0))
    If Angle <= 0 Then
    NegativeTip = True
    Else
    NegativeTip = False
    End If
    
    End Function
  • Paste this into your module and try calling MsgBox AngleA(Cmd.GetText (ID, 0)) . You REALLY should use functions in anything that isn´t trivial. It´s not difficult either, if you´ve failed it´s just some minor syntax error.

    Function AngleA(Name As String) As Integer
    Dim Temp() As String
    Temp = Split(Name, "A")
    Temp = Split(Temp(1), "B")
    AngleA = CInt(Temp(0))
    End Function
Reply
  • Paste this into your module and try calling MsgBox AngleA(Cmd.GetText (ID, 0)) . You REALLY should use functions in anything that isn´t trivial. It´s not difficult either, if you´ve failed it´s just some minor syntax error.

    Function AngleA(Name As String) As Integer
    Dim Temp() As String
    Temp = Split(Name, "A")
    Temp = Split(Temp(1), "B")
    AngleA = CInt(Temp(0))
    End Function
Children
No Data