- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
When I try to Set the objPoint2D to the new origin, it doesn't update to the new numbers 5,6. (line 14). Also, Once I do get it to update, how do I execute it. oHN.position is not a thing like it would be for a drawing view.
Dim oDDoc As DrawingDocument
Set oDDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
Set oSheet = oDDoc.ActiveSheet
Dim oHoleNotes As HoleThreadNotes
Set oHoleNotes = oSheet.DrawingNotes.HoleThreadNotes
Set objPoint2D = Nothing
Dim dPosition As Double
Dim oHN As HoleThreadNote
If oHoleNotes.count > 0 Then
For Each oHN In oHoleNotes
oHN.Text.Origin.x = 5
oHN.Text.Origin.y = 6
Set objPoint2D = ThisApplication.TransientGeometry.CreatePoint2d(oHN.Text.Origin.x, oHN.Text.Origin.y)
'move hole note text to x,y
Next
End If
Solved! Go to Solution.