Here is an example in ilogic (which is based on VB.net I think).
There are four entries requested. in the code they are marked 3 because it counts from zero.
He does not know the time that I have lost for such a tiny detail !
I attached the file to make it easier to understand.
Execute and observe rule 1.
I hope you can solve your problem. regards
Dim oDoc As DrawingDocument = ThisDoc.Document
Dim oSheet As Sheet = oDoc.ActiveSheet
Dim oSymDef As SketchedSymbolDefinition = oDoc.SketchedSymbolDefinitions.Item("Label - Door/Window")
Dim sPromptStrings(3) As String
sPromptStrings(0) = "Value A"
sPromptStrings(1) = "Value B"
sPromptStrings(2) = "Value C"
sPromptStrings(3) = "Value D"
Dim oPosition As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(10,15)
Dim oSymbol As SketchedSymbol
oSymbol = oSheet.SketchedSymbols.Add(oSymDef, oPosition,0,1,sPromptStrings)
Please accept as solution and give likes if applicable.
I am attaching my Upwork profile for specific queries.
Sergio Daniel Suarez
Mechanical Designer
| Upwork Profile | LinkedIn