Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
rfink
464 Views, 4 Replies

Trying to relocate nodes and text on Chamfer Note Object; text moves, nodes dont

I am trying to automatically relocate text and leader nodes on a Chamfer Note Object when view scales and model sizes change.

 

I can get the text position to move, but the I can't get the leader nodes. Here's the code:

 

   Set oDimensions = oSheet.DrawingNotes.ChamferNotes
       
            For Each oChamferNote In oDimensions
          
            For Each oLeaderNode In oChamferNote.Leader.AllNodes
            oLeaderNode.Position.x = oLeaderNode.Position.x - 5
            oLeaderNode.Position.Y = oLeaderNode.Position.Y + 5
            Next
           
            Next