Hi @DeepshipEngineering
@This question is better suited on the Ilogic forum but here is a start point. See this article here on setting the printed entry of Symbol 1.
This is the ilogic code in that article.
' Set the value for the first sketched symbol
' on the current sheet
Dim oSS As SketchedSymbol
oSS = ActiveSheet.Sheet.SketchedSymbols(1)
Dim oTB As TextBox
For Each oTB In oSS.Definition.Sketch.TextBoxes
If oTB.Text = "<MyPrompt>" Then
Call oSS.SetPromptResultText(oTB, "NewValue")
End If
Next
If you want to find a specific symbol then you can directly reference the symbol object by first looping through all symbols and query the name with an if statement.
' Find the sketch symbol by name by looping through all symbols
For Each oSS As SketchedSymbol In ActiveSheet.Sheet.SketchedSymbols(1)
If oSS.Name = "FindMe" Then
MessageBox.Show(oSS.Name, “Found Symbol”)
‘Do something now with oSS object
End If
Next
If this solved a problem, please click (accept) as solution.
Or if this helped you, please, click (like)
Regards
Alan