I want to make a text editor, to edit the text in a sketch in paperspace of a .dwg.
For i = 1 To oSketch.TextBoxes.Count
oSketch.TextBoxes.Item(i).Text = ""
oSketch.TextBoxes.Item(i).Delete
Next
At this point in the code, I have retrieved the text from the textbox, and now want to clear the text, and replace it with new text. The other option is to delete the textbox and replace it with a new textbox at the same position.
I get an Invalid procedure call or argument error with both oSketch.TextBoxes.Item(i).Text = "" and oSketch.TextBoxes.Item(i).Delete.
What changes do I need to make to get this to work?
Thanks!
Mike Eck
Master Drafter/ CAD Programmer
Using Inventor 2018