How to track drawing nodes VBA

I need your help in macros creation which will include two things:

1. PEN appears to be an active instrument in case of actuation

2. This instrument follows up my actions and in case I enter an 3 nodes some action activates. (and I need to get coordinates of nodes)

Sorry for my english

Parents
No Data
Reply
  • If you run this macro after you had drawn a curve with the 'Pen Tool' and selected it, do you get what you want?

    Sub Test()

    Dim CurSh As Shape, i As Integer

    Set CurSh = ActiveShape

    For i = 1 To CurSh.Curve.Nodes.Count
       MsgBox Format(CurSh.Curve.Nodes(i).PositionX, "0.00") + " " + Format(CurSh.Curve.Nodes(i).PositionY, "0.00")
    Next i

    End Sub

Children