1 Answers
A:
You can absolutely do that, Nishan — here's a VBA/iLogic-style approach to batch-replace leader text in a drawing with a user-defined string like test 123.
Sub ReplaceLeaderText()
Dim oDoc As DrawingDocument
Set oDoc = ThisApplication.ActiveDocument
Dim oLeaderNote As LeaderNote
Dim newText As String
newText = InputBox("Enter new leader text:", "Replace Leader Text", "test 123")
Dim i As Integer
For i = 1 To oDoc.SelectSet.Count
If TypeOf oDoc.SelectSet.Item(i) Is LeaderNote Then
Set oLeaderNote = oDoc.SelectSet.Item(i)
oLeaderNote.Text = newText
End If
Next
End Sub
Autodesk Inventor
AutodeskHelp the community
Be the First to Answer these questions
Disclaimer
Techjockey’s software industry experts offer advice for educational and informational purposes only. A category or product query or issue posted, created, or compiled by Techjockey is not meant to replace your independent judgment.
20,000+ Software Listed
Best
Price Guaranteed
Free Expert
Consultation
2M+
Happy Customers