Message 1 of 5
Changing A text box within a drawing sketch (Inventor 2021, iLogic)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am trying to change the contents of a text box using Ilogic. I can't get the reference to the sketch working. The sketch is located inside view1 of my drawing. There I want to loop through each textbox, search its contents in order to know what to place, and then continue to the next textbox.
Here is my code which is currently not working, gives out no errors but also does not change anything:
Dim oSketches As DrawingSketches = ThisDrawing.Document.ActiveSheet.Sketches Dim oSketch As DrawingSketch Dim oTBox As TextBox For Each oTBox In ThisDrawing.Document.ActiveSheet.Sketches If oTBox.Contains("N5") oSketch.Edit oTBox = oSketch.TextBoxes.Item("Test N5") End If Next