Message 1 of 6
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, is it possible to assign a different property in a text box in a header with iLogic?
Dim oTG As TransientGeometry oTG = ThisApplication.TransientGeometry Dim oDoc As DrawingDocument oDoc = ThisApplication.ActiveDocument Dim oSheet As Sheet oSheet = oDoc.ActiveSheet Dim oTB As TitleBlock oTB = oSheet.TitleBlock Dim oDef As TitleBlockDefinition oDef = oTB.Definition Dim referencedDocument As Document referencedDocument = oDoc.ReferencedDocuments.Item(1) Dim oSketch As DrawingSketch Call oDef.Edit(oSketch) Dim oTextBoxes As TextBoxes oTextBoxes = oSketch.TextBoxes Dim oBox As Inventor.TextBox For Each oBox In oTextBoxes If oBox.Text = "<Dokumentenart>" Then 'The text parameter you want to change Call oDef.Edit(oSketch) oBox.Text= "????" End If Next Call oDef.ExitEdit(True) InventorVb.DocumentUpdate()
This is my code so far, but with this I'm only able to assign text and not the mentoined paramters or properties.
Thanks in advance
Regards Darrell
Solved! Go to Solution.